procmail
[Top] [All Lists]

Re: Modifying the body of emails

2007-07-13 08:06:59
Hello, 

This will work:

----8<----------------------------------------------------------
:0fw
* ^Subject:.*\[Genius/Idiot
| sed 's|\(Posted By .*\)|<font color="gray" size="2">\1</font>|'
----8<----------------------------------------------------------

This recipe is tested and working with:

----[ 'test_msg1' ]-----------------------------------------------------
From: linux4michelle(_at_)freenet(_dot_)de
Date: Tue, 10 Jul 2007 16:40:37 +0200
Subject: [Genius/Idiot&mdash;Current Thoughts] getting

<br><br>--<br>  Posted By  Calion  to  <a 
href="http://homepage.mac.com/calion/blog/thoughts/2007/07/here-we-go.html";> 
Genius/Idiot&amp;mdash;Current Thoughts </a>  at  7/06/2007 02:10:00 PM
------------------------------------------------------------------------

----[ 'test_msg1' ]-----------------------------------------------------
From: linux4michelle(_at_)freenet(_dot_)de
Date: Tue, 10 Jul 2007 16:41:03 +0200
Subject: [Genius/Inteligence&mdash;Current Thoughts] getting

<br><br>--<br>  Posted By  Calion  to  <a 
href="http://homepage.mac.com/calion/blog/thoughts/2007/07/here-we-go.html";> 
Genius/Inteligence&amp;mdash;Current Thoughts </a>  at  7/06/2007 02:10:00 PM
------------------------------------------------------------------------


----[ '/tmp/michelle.konzack.X3tclD/procmailtest/procmailrc' ]----------
VERBOSE=on
LOGFILE=/tmp/michelle.konzack.X3tclD/procmailtest/log

MAILDIR=/tmp/michelle.konzack.X3tclD/procmailtest/
DEFAULT=${MAILDIR}
ORGMAIL=

:0fw
* ^Subject:.*\[Genius/Idiot
| sed 's|\(Posted By .*\)|<font color="gray" size="2">\1</font>|'
------------------------------------------------------------------------

----[ '/tmp/michelle.konzack.X3tclD/procmailtest/log' ]-----------------
procmail: Assigning "MAILDIR=/tmp/michelle.konzack.X3tclD/procmailtest/"
procmail: Assigning "DEFAULT=/tmp/michelle.konzack.X3tclD/procmailtest/"
procmail: Assigning "ORGMAIL="
procmail: Match on "^Subject:.*\[Genius/Idiot"
procmail: Executing " sed 's|\(Posted By .*\)|<font color="gray" 
size="2">\1</font>|'"
procmail: Assigning 
"LASTFOLDER=/tmp/michelle.konzack.X3tclD/procmailtest/new/1184078485.24663_0.michelle1.private"
 Subject: [Genius/Idiot&mdash;Current Thoughts] getting
  Folder: /tmp/michelle.konzack.X3tclD/procmailtest/new/1184078485.246      353
procmail: Assigning "MAILDIR=/tmp/michelle.konzack.X3tclD/procmailtest/"
procmail: Assigning "DEFAULT=/tmp/michelle.konzack.X3tclD/procmailtest/"
procmail: Assigning "ORGMAIL="
procmail: No match on "^Subject:.*\[Genius/Idiot"
procmail: Assigning 
"LASTFOLDER=/tmp/michelle.konzack.X3tclD/procmailtest/new/1184078485.24667_0.michelle1.private"
 Subject: [Genius/Inteligence&mdash;Current Thoughts] getting
  Folder: /tmp/michelle.konzack.X3tclD/procmailtest/new/1184078485.246      330
------------------------------------------------------------------------


Greetings and have fun
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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