[imapfilter-devel]archiving with imapfilter
Martin Kaehmer
martink-ml at gmx.net
Mon Mar 3 21:43:01 EET 2003
Hi Lefteris,
--On Montag, März 03, 2003 20:13:19 +0200 Lefteris Chatzibarbas
<lefcha at hellug.gr> wrote:
> A part of the functionality you are describing, exists in the CVS version
> of imapfilter, for quite some time now.
yes, saw it - after I started coding ;o)
> On the other hand, imapfilter sends searching queries, it doesn't process
> each message exclusively, so it cannot sort messages to folders the way
> you describe (it is not impossible but difficult and inefficient, based
> on how the program exploits the IMAP4rev1 protocol's capabilities).
>
> I couldn't come up with a good way to accomplish something like this.
as you said, you have to process each message exclusively (at least I don't
care about efficiency) Take the action_move as an example:
if (destdir contains '$') {
fetch for all messages BODY.PEEK[HEADER.FIELDS (DATE)]
parse DATE
substitute $d, $m and $y in destdir
copy message to destdir
} else {
copy all messages to destdir
}
delete all messages from srcdir
I have already started coding this function, cause I want to see whether
it's feasible that way or not. Do you see anything why it shouldn't work ?
cheers,
Martin
More information about the Imapfilter-devel
mailing list