[Dovecot] Moving Maildir email messages and backing things up.

Asheesh Laroia asheesh at asheesh.org
Mon Apr 21 23:40:00 EEST 2008


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.

-- Asheesh.

-- 
Invest in physics -- own a piece of Dirac!


More information about the dovecot mailing list