procmail
[Top] [All Lists]

Re: How to send the original after filter?

2003-09-03 04:22:49
On Tue, 2 Sep 2003, Ruud H.G. van Tol wrote:

Toen ik Udi Mottelo kietelde, kwam er dit uit:

Now, I have new strange problem:  If the message do not has bad
words (viagra, pills...) the user will get the message twice.
One in lynx's dump format and the second is the original message.
Why the problem is strange?  Because if I use the same procmailrc
from the command line, it works perfectly!

Please post (the relevant section of) your .procmailrc.

--------------- From the procmailrc ------------------
...
...
LOG="

"

:0 cw
* < 30000
{
        :0 bf
        |sed -n '/<[hH][tT][mM][lL]>/,$p' | lynx -stdin -dump

        :0 B
        * 1^0 ()\<viagra
        * 1^0 ()\<sars
        * 1^0 ()\<Pills?
       { EXITCODE=1 }

        :0 A:
        $JUNK/HTML.$DATE

        HOST
}

:0 e
{ HOST }

LOG="

"

:0 HB
* < 9000
*$ $M^0 (\<|_)SOBIG.[a-z]\>
...
...
-----------------------------------------------------

        According to Marhaus's question, no I do not touch the DEFAULT
        or ORGMAIL.




   :0B
   * viagra

Maybe change that into

   :0
   * B ?? viagra

        Procmail identify the strings that I ask for.  The problem
        is that it sends the copy of the message when the massage
        is clean from this strings. (do you think it's a bug?)



Have you used this proposed change:

  :0a
  { HOST }

        Yse, in this case:
        If word found?
                Then it will send the message to the junk AND to the user.
        If word doesn't found and it is from command-line?
                Then the message will be droped i.e. will be sent to junk
                or to the user.
        If word doesn't found and it is by-sendmail?
                Then the user will get TWO message! (lynx formated and
                original).

        The problem is:  By sendmail?      Ignore HOST
                         By command line?  Respect HOST.

        Another side-issue problem is that the body of the message
        do not saved when the message is sent to the junk folder
        even if I add B to the sub-recipe in the clone:

:0 BH A:
$JUNK/HTML.$DATE

        But, I want to finish one problem, first.

Bye,
 Udi



  :0E:
  $DEFAULT



--
Affijn, Ruud

_______________________________________________
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