procmail
[Top] [All Lists]

Tweaking ^FROM_DAEMON?

1996-04-23 16:54:50
Hi.  I've had success running a game (in its fifth week now)
played by email, with an autoreply "bot" to take players'
moves and send responses.  This week, a new player was
suddenly causing difficulty; his moves would go to my regular
mailbox instead of the 'bot.

Here's the relevant recipe:
        # Making a move
        :0 iW: nscrab.lock
        * ^Subject:.*move.*nscrab
        * !^FROM_DAEMON
        * !^From:.*digest
        * !^From .*bitnet
        * !^X-Loop:(_dot_)*stanr(_at_)(_dot_)*tiac(_dot_)net
        * !^From:(_dot_)*stanr(_at_)(_dot_)*tiac(_dot_)net
        * !^From: Stan Ryckman .stanr
        | $BINDIR/nscrmove.sh

What happened with the new user is that his mail contained:
        From: "John Doe - Asst. System Admin" <johndoe(_at_)somewhere(_dot_)com>
and the "Admin" matches "FROM_DAEMON" (I think).

Any way around this, other than creating a whole separate recipe
for users who might be an exception?  (The actual problem
got solved on both sides; he took out the "Admin" at the same
time I made a separate recipe for him.)

Just curious whether I can solve the "general" problem cleanly.

Thanks,
Stan Ryckman (stanr(_at_)tiac(_dot_)net)

<Prev in Thread] Current Thread [Next in Thread>
  • Tweaking ^FROM_DAEMON?, Stan Ryckman <=