Unseen message hook

Dale Harris rodmur at gmail.com
Wed Mar 24 19:00:23 GMT 2010

For the spam stuff, you might want to look at imapfilter.


With that you can make rules about what to do based on contents of the

On Tue, Mar 23, 2010 at 10:48 AM, Johannes Weiss <weiss at tux4u.de> wrote:
> Hi all,
> I'm using OfflineIMAP and am happy with it :-). I'm only missing two
> things where I have no clue about how to configure them:
> - I'd like to flag('!' in mutt) all locally unseen messages in the
>  moment they arrive on my computer
> - I'd like to run a spam filter on all locally unseen messages. If the
>  spam filter recognizes them as SPAM, I'd like to delete them.
> So all I need seems to be some kind of "unseen message arrival hook".
> I could then use a shellscript which flags the messages, pipes them
> through the mailfilter and decides wheather they remain in the inbox or
> they'll be deleted.
> Is that possible using OfflineIMAP? I already checked the docs but
> couldn't find anything at all...
> --
> Regards,
>  Johannes
> Version: GnuPG v1.4.10 (GNU/Linux)
> iEYEARECAAYFAkuo1LQACgkQzU8Oa7FEsGfJ5wCcDhtGH8sylTggCT4v6/0S45Fa
> LyAAn2SuwpmCxtbebaW0XNDdXEOQKfy4
> =GDSx
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project
> OfflineIMAP homepage: http://software.complete.org/offlineimap

Dale Harris
rodmur at maybe.org
rodmur at gmail.com

More information about the OfflineIMAP-project mailing list