<<< Date Index >>>     <<< Thread Index >>>

Re: auto-copy message from IMAP to local mailbox



* On Wed, Jul 20, 2005 Eugeny N Dzhurinsky (eugenydzh@xxxxxxxxxxxx) muttered:
> I have to have some ways to automatically copy the messages from the IMAP
> folder into the local mailbox.

That depends on your definition of automaticly. You can certainly use macros
to do that. Like

macro index _some_key_ \
'<tag-pattern>$WHATEVER<tag-prefix-cond><copy-message>/some/local/folder<enter> 
<untag-pattern>.<enter>'

Combinded with a folder-hook you can automate the process somewhat.

folder-hook +foo push '_some_key_'

> Another thing - the messages should be less than some defined size,
> and match the subject/sender/recipient fields

That would be $WHATEVER above. See the Patterns section in the manual.

HTH,

Michael
-- 
Excessive login or logout messages are a sure sign of senility.

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de