procmail
[Top] [All Lists]

Re: can't get 'From' field : "This account is currently not available."

2000-11-06 08:45:39
"mike" <mike(_at_)coloradosurf(_dot_)com> writes:
OK, you missed the point. This IS the 'testbed'. Once the 'formail' is
working, this will not be the ruleset used. This is just a simple recipe
trying to locate the problem. All information was provided to hopefully
locate that problem. The problem is that both:
FROM_=`formail | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
FROM=`^(From[   ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?`
return "This account is currently not available".

Your problem is that your shell is set to something that doesn't really
act like a shell.  In particular, it just spits out an error message and
ignores the command passed to it.  To fix that, put
        SHELL=/bin/sh
at the top of the rcfile.


To answer your question. I found these recipes on two of the FAQ links from
the main procmail.org site (one from Timo's and the other from Era's - I
just used their regex, I then assigned variables to find the problem that
formail wasn't working the way I expected it to).

Those aren't recipes: those are variable assignments.  The former makes
sense (though I'm not sure what it's trying to do), while the later
doesn't.  You can't just move a regexp from a recipe into backquotes
and expect it to do anything sane.

The best advice I can suggest for finding problems with rcfiles is to
make sure you have LOGFILE, and then set VERBOSE to on at the top of
the rcfile.  That should put enough information into the logfile to
give a strong hint at to _where_ the problem is.  Any strange messages
from procmail in the logfile should be checked against the list at the
bottom of the procmail(1) manpage for a less concise description of
what procmail is complaining about.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>