procmail
[Top] [All Lists]

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

2000-11-06 08:44:23
Thank you for your reply.


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".

And so does:
SENDER=|formail -b -rtzxTo:
(it also returns "This account is currently not available").

I'm assuming this will be some (hopefully) straightforward configuration
type of error.

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). And also, yes, I will have
a condition in the final version to prevent mailloops. When this problem is
resolved, the .procmailrc will look extremely similar to the basic
autoresponder example in the procmailex man page. I've been reading procmail
faq's and man pages for a week or so (finally ending up here). Please point
me to the 'further readings on procmail' so that I might not annoy others.

Thanks again,

mike



----- Original Message -----
From: "Professional Software Engineering" 
<PSE-L(_at_)mail(_dot_)professional(_dot_)org>
To: <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Sunday, November 05, 2000 10:18 PM
Subject: Re: can't get 'From' field : "This account is currently not
available."


At 21:20 2000-11-05 -0700, mike wrote:

Problem:
I cannot seem to get the "From" field from the incoming email. I have
tried
to get it two ways:

From: or From, *OR* the appropriate address to send an autoreply to?

# contains the line, but also with trailing date/time.  This is "From "
:0
* ^From[        ]*\/[^  ].*
{
         REALSENDER=$MATCH
}

# contains the From: line, which may include non-address text
:0
* ^From:[       ]*\/[^  ].*
{
         FROM=$MATCH
}

# The generally accepted was to extract the senders RETURN address:
:0 h
SENDER=|formail -b -rtzxTo:

1.   FROM_=`formail | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
2.
FROM=`^(From[   ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?`

WTF?  Where did you get these syntaxes from?

#FROM_=`formail | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
FROM=`^(From[   ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\<)?`

What exactly do you figure this is being passed?  This isn't running as a
recipe match...


I'm not trying to be harsh here, but BEFORE you try doing autoresponses
(which most definatley will affect other people - including those on
mailing lists), you should definatley do some further readings on
procmail,
and before making the rule live, do thorough testing in a testbed
environment - one uncontrolled mailloop can ruin your sysadm's day (or
night), and potentially annoy a LOT of people on mailing lists.

---
  Please DO NOT carbon me on list replies.  I'll get my copy from the
list.

  Sean B. Straw / Professional Software Engineering
  Post Box 2395 / San Rafael, CA  94912-2395

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


_______________________________________________
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>