procmail
[Top] [All Lists]

Re: subject processing

1997-07-05 06:17:00
On Sat, 5 Jul 1997 14:27:10 +0200,
Martin Ramsch <ramsch(_at_)forwiss(_dot_)uni-passau(_dot_)de> wrote:
* ^Subject:\/([     ]*(re|fw|sv|antw|betr)( [[][0-9]+])?[->:])+
<...>
Wouldn't it be easier just to MATCH the real subject?
   * ^Subject:([     ]*(re|fw|sv|antw|betr)( [[][0-9]+])?[->:])+\/.*$

No, because Procmail will grab as much as possible to the right of the
\/, which in practice means the entire Subject:, inluding the 
fw: re [2]: sv> re: etc. 

Is there a more elegant way to have text with a newline added to the
logfile other than ending the quote "'" on the next line?

Not really. Misfeature IMHO.

NL="
"
LOG="This is a log message with a newline" "$NL"

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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