[Dovecot] processing Dovecot maildirs with shell scripts
Timo Sirainen
tss at iki.fi
Sun Sep 9 05:23:41 EEST 2007
On Thu, 2007-08-30 at 23:52 +0200, M. Fioretti wrote:
> Dovecot only sees the INBOX* folders. Under these constraints I'm
> safe, am I not? Also, since all the file names are created by
> procmail (there is nobody else injecting email from the outside) I can
> count on them being always unique, right?
Right.
> > mv, rm and ln are always safe. Just don't ever write to new mail files
> > in new/ or cur/ directory, because then Dovecot might read partially
> > written files. That means that "cp file new/" isn't safe, but "ln file
> > new/" is.
>
> Er.. sorry, what do you mean exactly here? where is "file" where I
> link to new?
Whatever file. :)
> What is the complete, exact sequence of Unix commands to
> safely go from:
>
> aux_maildir_1/new/some_file
>
> to, say,
>
> INBOX.one/new/some_file
If you want to move, then it's simply
mv aux_maildir_1/new/some_file INBOX.one/new/some_file
The important thing is that you don't use "cp".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070909/f1595c43/attachment.bin
More information about the dovecot
mailing list