procmail
[Top] [All Lists]

Re: log urls

2000-08-09 02:04:23
On Wed, 09 Aug 2000 10:31:25 +0200, Michael Meltzer
<michael(_dot_)meltzer(_at_)sicad(_dot_)de> wrote:
I have tried:
:0: bh
| /path/to/my/script.pl
URLs are logged, but messages disappear :(
try
:0:c bh
| /path/to/my/script.pl

The c flag is the answer to Leonid's question, but the script also
contains a syntactic problem -- the lock colon is in the wrong place.

    :0 c:
    | /path/to/my/script.pl

Also, Procmail will not be able to figure out a lock file from this,
so you need to name a lock file, or get by without locking. (This
depends on whether script.pl needs to lock whatever file it's writing
to; if it's printing the URLs to standard error, for example [in which
case they will end up in Procmail's log], no locking is necessary or
useful.)

Perhaps it would also be a good idea to run the script only if the
message contains something which looks vaguely like a valid URL.

    :0 c:script.lock
    * BH ?? ://
    | /path/to/my/script.pl

Hope this helps,

/* era */

Yeah, still here, although generally too busy to read mailing lists.

-- 
 Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
  Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition

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