procmail
[Top] [All Lists]

Re: getting rid of the body, keepin the header

1997-03-20 14:22:21
Era Eriksson suggested to Timothy Luoma:

| "Timothy J. Luoma" <luomat(_at_)peak(_dot_)org> wrote:
|  > I am on a certain SPAM-fighting list that generates a lot of email   
|  > All I really want or need is the SUBJECT lines from theses  
|  > messages.  The body can go to /dev/null.

| :0h:
| * Your average condition stuff here
| | grep '^Subject: ' >>subjects-file

Not so good.  If any subject header has a continuation line, grep will
miss it.

Better,

  :0h: # or :0hc: if needed
  * conditions
  | formail -cXSubject: >> subjects-file

If you don't want the word "Subject: " every time, use -czx instead of -cX.

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