procmail
[Top] [All Lists]

strange sed bahavior

2002-10-14 12:28:48
Hello,

Since I put both lyx-user and lyx-devel emails in the same folder, I 
would like to distinguish them by adding [DEVEL] to emails from 
lyx-devel.

This seems to be a simple task but none of the

:0fhw:
* ^(To|Cc):.*lyx-devel
| sed -e "s/^Subject:/Subject: [DEVEL] /g"

:0fhw:
* ^(To|Cc):.*lyx-devel
| sed -e "s/^Subject:/Subject: \[DEVEL\] /g"

works! 

I am now using

:0fhw:
* ^(To|Cc):.*lyx-devel
| sed -e "s/^Subject:/Subject: (DEVEL) /g"

but I am wondering what is wrong with [] or \[\]. In command line, they 
both work perfectly. I tried 'perl -pe' instead of sed, same result. 
Does procmail do something to the \'s?

I am using procmail 3.11pre7 on Sparc/Solaris 2.8.

Thanks.

-- 
Bo Peng
_______________________________________________
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>