imapsync and flags

imapsync is a imap copy / sync tool based on message-id headers. It doesn’t use any state file and therefore cannot do a real two-way sync, but for just copying from one to another server its a usefull tool.

The documentation states

“All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted.”.

Unfourtunately this is not true. Imapsync always adds flags, it never removes them. The issue can also be found in last version 1.285.

The absence of a flag is quite a worthwhile information, and when doing mirroring it is essentially. But the fix is easy: Just replace the single occurence of “+FLAGS” with “FLAG”, so that imap request results in not adding but replacing the flags on the destination server.

Work related to Courier-Server

I wrote this article originally back in 2005 and updated it the last time on 2007-10-14. It was originally available at http://www.georglutz.de/wiki/CourierServer.  The information you find below might be rather outdated now and I don’t plan to work on it further, but I put it in the blog for archival purposes on this particular date – Georg in June 2011.

Continue reading “Work related to Courier-Server”

Thunderbird extension for external archival of mails

I wrote a small and rudimental extension for the thundbird email client. The intention is to be able to archive emails with an external application outside of thunderbird.

The extension does basically the following:

  1. Save the selected msg in a temporary folder in the filesystem in eml format (meaning the mail as is)
  2. call an external application (or wrapper script) from inside thunderbird with the temporary filename as parameter

Continue reading “Thunderbird extension for external archival of mails”