At 09:50 -0500 7/10/99, Philip Guenther wrote:
"Aaron D. Turner" <aturner(_at_)best(_dot_)com> writes:
>Not sure what I'm doing wrong, but I can't get procmail to deliver to mh
>style mail folders.
>
>My rc file:
>
>:0
>* ^From(_dot_)*aturner(_at_)linuxkb\(_dot_)org
>* ^Subject.*Test
>| /usr/lib/nmh/rcvstore +Test
>
>The log:
>
>procmail: Match on "^From(_dot_)*aturner(_at_)linuxkb\(_dot_)org"
>procmail: Match on "^Subject.*Test"
>procmail: Assigning "LASTFOLDER=/usr/lib/nmh/rcvstore +Test"
>- From aturner(_at_)linuxkb(_dot_)org Tue Jul 6 18:18:03 1999
> Subject: Test 1 2 3
> Folder: /usr/lib/nmh/rcvstore +Test 1413
>procmail: Executing "/usr/lib/nmh/rcvstore,+Test"
>rcvstore: field name "ELF" exceeds 127 bytes
>rcvstore: .mh_profile is poorly formatted
>procmail: Notified comsat: "aturner@:/usr/lib/nmh/rcvstore +Test"
Does rcvstore work when invoked from the command line? If so, the only
things that come to mind are if the HOME variable is not set to your
home directory or if the MHFD variable is being set at all.
The message ".mh_profile is poorly formatted" looks suspicious. But
why not use procmail's built-in MH-folder capability? procmailrc(5)
suggests:
--> The same as above, except now we store the mails in num-
--> bered files (MH mail folder).
-->
--> :0
--> * (^TO|^Subject:.*)TeX[^t]
--> texmail/.
So your recipe would be:
:0 :
* ^From(_dot_)*aturner(_at_)linuxkb\(_dot_)org
* ^Subject.*Test
$HOME/Mail/Test/.
I use this at work where (until recently) we used exmh. You'd
probably want to verify that $HOME is defined correctly, too.
Regards,
Scott
--
Scott Fabbri
smf(_at_)pobox(_dot_)com
Procmail spam filters enabled. Don't even bother trying. Zero tolerance.
PGP key on standard servers.