procmail
[Top] [All Lists]

Unwanted text placed in inbox

1997-05-18 10:20:00

Hi,

I'm using a crude system to verify subscriptions on a list I run (to
prevent spammers from signing up other people).  The version of Majordomo
run at Netcom doesn't support this feature, yet.

When I get a subscribe request, procmail sends a message back asking them
to confirm that they do indeed wish to subscribe.  The message says "just
reply to this message to subscribe".

When I receive this message back, procmail extracts the From: line and then
subscribes them to the list.  The problem is how to properly dispose of the
replied email.

Every once in a while I get the replied message placed in my inbox -- and
it only contains the BODY, and *not* the headers.  Then I can't read my
mail until I manually edit my inbox.

Can someone please help with this problem and explain why this is an
intermittent problem?  Doesn't the pipe to sendmail count as a delivered
message?

:0
* $ ^Subject:.*SUBSCRIBE request to $LIST_NAME
* $ ^From $MAJORDOMO_SERVER
* !^Subject:.*(bounce|returned mail|host unknown)
{
   FROM=`formail -zxFrom:`

   :0fhw
   | (formail -I"Subject: Autosubscribing to $LIST_NAME" \
              -I"To: $LIST_SERVER" \
              -I"From: $LIST_ADMIN" \
              -I"Reply-To:" ; \
      echo "approve $PASSWORD subscribe $LIST_NAME $FROM" ; \
      echo "end" \
    ) | $SENDMAIL -oi -t
}

PS: Any suggestions on improving this would be appreciated.  I don't like
using the subject line but I don't trust other headers to be returned to
me.  It would be nice to use a special sequence number to time-limit and
validate each subscribe request individually, but that seems like more work
than needed.




Bill Moseley
mailto:moseley(_at_)netcom(_dot_)com

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