procmail
[Top] [All Lists]

Re: filtering to two folders

1995-11-13 01:57:54
Why is the first Folder: line in the log empty?

        Because you put a c on the recipe.

#Eliminate all Received: lines
:0 fh
| formail -I Received:

        I think that this is a bad idea.  These can be useful at times..
But this is not the point
 
:0 H   #Decide to enter this block by looking at these header fields
* ^From.*jimo
* ^Subject: test
{
    #Clone the mail so the following recipe can use it too.
    #Pass the header and body to formail as a filter.
    :0 cf

        Here you are telling it to deliver to your pipe and then to continue

    | formail -k -X From -X From: -X Subject: -X Date: -X Message-Id:
        :0 a:   #If the previous recipe (:0 cf) suceeded, put the output
        test1   #of the filter into test1 using a local lockfile.

        It succeeds and dumps it in here.  Then it stops because you did not
tell it to do otherwise...  (the c only applies to that recipe/action)
 
From jimo(_at_)mail(_dot_)eskimo(_dot_)com  Sun Nov 12 23:04:43 1995
 Subject: test
  Folder:                                                                   0

        Here it is delivering to .....  What?

Soren

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