[imapfilter-devel]archiving with imapfilter
rnyman_imapfilter at afterburner.net
rnyman_imapfilter at afterburner.net
Mon Mar 3 04:27:01 EET 2003
Forgot to mention - I use IMAPfilter to populate the "storagefolder"
that is referenced in .fetchmailrc. IMAPfilter runs every hour -
fetchmail runs every morning.
-R...
Here's a workaround for you:
I have a script file that determines where to put the files:
#!/bin/bash
rm /home/user/storage/current
touch /home/user/storage/`date +%Y%B`
ln -s /home/user/storage/`date +%Y%B` /home/rick/storage/current
And here's my .fetchmailrc:
poll imap.whatever.com
proto imap
user username
pass password
folder storagefolder
mda "cat >> /home/user/storage/current"
fetchall
Now I just run the script, followed by fetchmail, every morning. The
only downfall is that it doesn't put the from header between messages so
I can't read them with a regular mail program. I normally use tools
like grep, sed, and less to search these archives though.
Hope this helps,
-R...
Martin Kaehmer wrote:
>Hi Lefteris,
>
>I'm using imapfilter for some time now and I'm quite happy with it. But I
>still miss some functionality. Have you ever thought about a real archiving
>function? I'd like to have a move action for something like "for all mail
>older then N days move to folder 'folder.archive.%y.%m'", where %y(ear),
>%m(onth), %w(eek) and %d(ay) are macros for the date of the current mail.
>Likewise the capital macros (%Y,%M..)for the date of today?
>
>What do you think?
>
>
>cheers,
>Martin
>
>
>_______________________________________________
>Imapfilter-devel mailing list
>Imapfilter-devel at lists.hellug.gr
>http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
>
>
More information about the Imapfilter-devel
mailing list