[sylpheed:35198] Re: [PATCH] Maildir import and export support

Hiroyuki Yamamoto hiro-y at kcn.ne.jp
Thu Apr 5 10:29:28 JST 2012


Hello,

On Wed, 4 Apr 2012 20:41:17 +0100
Steve Brokenshire <sbrokenshire at xestia.co.uk> wrote:

> Hello,
> 
> Please find below a patch to enable Sylpheed to import from and
> export to Maildir directories. Most of it was based off existing code
> in import.c/export.c for dealing with folders which contained EML
> files. :)
> 
> When importing, it treats messages in the new and tmp directories as
> unread and messages in the cur directory as read. When exporting, it
> places unread messages in the new directory and read messages in the
> cur directory.
> 
> To prevent data being overwritten on exporting, directory creation is
> attempted on each of the cur, new and tmp directories and stops if it
> can't create the directory as it already exists or something else has
> happened.

Thanks for the patch.
Other than using fixed-length buffers for constructing paths
(g_strconcat() is better), it seems good.

-- 
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


More information about the Sylpheed mailing list