Re: [Dovecot] Move mail in Maildir without IMAP

2008-12-21 Thread Timo Sirainen
On Sat, 2008-12-20 at 12:37 +, RW wrote: On Fri, 19 Dec 2008 07:52:58 +0200 Timo Sirainen t...@iki.fi wrote: No. But you could do something like: export MAIL=maildir:/home/user/Maildir printf 1 select src\n2 copy 1:* dest\n3 store 1:* +flags.silent \\deleted\n4 close\n | imap

Re: [Dovecot] Move mail in Maildir without IMAP

2008-12-20 Thread RW
On Fri, 19 Dec 2008 07:52:58 +0200 Timo Sirainen t...@iki.fi wrote: No. But you could do something like: export MAIL=maildir:/home/user/Maildir printf 1 select src\n2 copy 1:* dest\n3 store 1:* +flags.silent \\deleted\n4 close\n | imap That's easier than I thought. Is it possible to do

[Dovecot] Move mail in Maildir without IMAP

2008-12-18 Thread RW
I set-up some spam/ham learning folders where a crontab entry learns the mail and them moves it do a different Maildir folder. Unfortunately, since it has a different dovecot-keywords file, any imap flags get changed to unknown-0, unknown-1 etc. I tried the following, but it didn't work mv

Re: [Dovecot] Move mail in Maildir without IMAP

2008-12-18 Thread Timo Sirainen
On Fri, 2008-12-19 at 01:11 +, RW wrote: I set-up some spam/ham learning folders where a crontab entry learns the mail and them moves it do a different Maildir folder. Unfortunately, since it has a different dovecot-keywords file, any imap flags get changed to unknown-0, unknown-1 etc.