Bugfixes to key handling code in SyndicateMail