Grep mails by subject with shell script

Andreas Winkelmann ml at awinkelmann.de
Tue Sep 12 14:14:25 EDT 2006


Am Tuesday 12 September 2006 16:03 schrieb Walter Willmertinger:

> Is there someway to grep the user's mails by subject, content of mail or
> similar?
> I just found the way to do it by going to the spool directory what is only
> allowed to root.
>
> I would like to do it e.g. in shell scripts!

Hmm, the best way would be to use an IMAP-Client. You can use a Perl-Script as 
IMAP-Client, there are Modules around. With IMAP, you can use the 
SEARCH-Command.

-- 
	Andreas


More information about the Info-cyrus mailing list