I've been trying to solve this for weeks...
My Goal is to search my inbox for the following messages:
Hello
Hi
Hey
Im using three files to do this for me. The first, a .forward file in my $HOME
"|IFS=' '&&exec usr/bin/procmail||exit 75 #username"
And these two are in my ~/.procmail directory
.procmailrc
VERBOSE=off
MAILDIR=$HOME/Mail
PMDIR=$HOME/.procmail
DEFAULT=/var/spool/mail/username
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/general.rc
#end of .procmailrc
And lastly the rule file: general.rc
:0
* ^From:.*[email protected]
* ^Subject:.*hello
$HOME/Mail/Hello
What's supposed to happen is that all three of these files work together to copy and move mail that contain the hello pattern in its subject. And to be safe it will also look for a certain persons address. Then when those patterns are matched it will stick what it found and create the specified path; if it doesn't already exist.
But its not doing that. After I'm done editing these files in emacs, vi, .. and then save it, will it work automatically? Or do I need to compile it?
If I do, the .procmailrc might require ( if not all ) the 'Shell=/bin/sh'
Not that I didn't try that...
Please help.