Fix call-time pass-by-reference error
Fix regression in Calendar popup
Add remove attachment button to Emails
Fixes to Emails attachments
Merge remote branch 'upstream/master' into EmailReceipt
Remove useless code from Emails

Cleaned up some code intended to delete attachments and email when
sending the email failed. The attachments shouldn't be deleted and it
wasn't working anyway.
Merge remote branch 'upstream/master' into EmailReceipt
Sort modules in global filter search block.
code cleanup: eliminate dulpicated closing link
Merge remote branch 'upstream/master' into EmailReceipt