[Dovecot] Moving Maildir email messages and backing things up.
mouss
mouss at netoyen.net
Mon Apr 21 23:54:03 EEST 2008
Asheesh Laroia wrote:
> On Mon, 21 Apr 2008, mouss wrote:
>
>> Karl Schmidt wrote:
>>> mouss wrote:
>>>>> karl wrote:
>>>>> What would happen if I ran a script that did this:
>>>>>
>>>>> mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/
>>>>>
>>>>> My hunch is it might break things.
>>>>
>>>> shouldn't break anything. if the MUA is caching "actions" (happens
>>>> with thunderbird at least), then the view in the client will be
>>>> different but this is not a big problem (at least for me).
>>>
>>> So on the server I could run something simple like:
>>>
>>> #!/bin/bash
>>> bogofilter -Ns -B /home/karl/Maildir/.s-2B-scaned_spam
>>> mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/
>>
>> you'd better use an "axuiliary" directory:
>>
>>
>> mv $dir/.Junk.Trash/cur/* $dir/.Junk.Trash/todo/
>> $learn_spam $dir/.Junk.Trash/todo/ && mv $dir/.Junk.Trash/todo/*
>> $dir/.Corpus.junk/cur/
>
> I think you could get away with using the Maildir built-in "tmp"
> directory if you wanted for this.
no, because you don't want the mv .../tmp/* while mail is being delivered.
better use your own dir. it costs nothing.
More information about the dovecot
mailing list