procmail
[Top] [All Lists]

Re: no subject (literally, "empty subjects")

2001-01-17 13:50:28
At 16:56 2001-01-17 -0200, João Paulo Andrade wrote:
I study the procmailex manual and I don't find any exemple with null Subject
I want to forward to teste mailbox(in my own domain) all e-mails without subject.

Uh, every possibly variation of the use of procmail is not going to be covered in the manpage. This is _basic_ regexp stuff.

Besides regexps, you should get familiar with the procmail FAQ and the searchable archives of the procmail list, both linked from, of all places:
        <http://www.procmail.org>

A brief search of the archives with the keywords:
                subject blank empty
returned a plethora of hits, among the top few:

<http://www.xray.mpe.mpg.de/mailing-lists/procmail/2000-11/msg00119.html>

List archives are your friend, and so are the FAQs.



Off the top of my head (because, as I said, these are _basic_ regexps):

# Subject: header not even present!
:0h
* ! ^Subject:
!fwdaddr

# subject header present, but blank (not the same as one with "no subject")
:0h
* ^Subject:[    ]*$
!fwdaddr

The abovementioned archived email contains a few variants on these (#4 being the one you might want to use if you're interested in a single regexp which should catch _most_ instances).

FTR - if you're interested in catching messages with "no subject" (a subject string sometimes used by default by some mailers if no subject is specified -- and there are a few variants of this as well), it'd probably be a good idea to _NOT_ use that same subject on a post to a mailing list asking about such things - especially one which is about mail filtering, where people might actually have filters to ditch your message since from all appearances, it didn't really include a subject...

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395

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

<Prev in Thread] Current Thread [Next in Thread>
  • no subject, João Paulo Andrade
    • Re: no subject (literally, "empty subjects"), Professional Software Engineering <=
    • Re: no subject, Pollywog