Whitelisting via your imap folder
http://gigo.com/ftp/pub/src/find-email-in-sentmail
Scans your imap folders, returns exit code based on if the sender address is found or not. used for whilelisting rules in procmail. I use this to automatically whitelist anyone in my “sent-mail” folder, or anyone in my “whitelist” folder. This scans my imap folders at delivery time, so changes are 100% realtime and automatic. I suggest this only for efficient imap servers, like Cyrus.