procmail
[Top] [All Lists]

Re: HTML attachments

1997-06-26 04:09:00
"Guy" == Guy Geens 
<Guy(_dot_)Geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be> writes:
(Yes, following up to my own post.)

Guy> :0Bi
Guy> * ^----*.*$^Content-Transfer-Encoding: 7bit$^Content-Type: text/html
Guy>  | perl -0777pe 's/^----*.*^Content-Transfer-Encoding: 
7bit^Content-Type:text\/html(.|\n)*\Z//m'

Guy> This should all be one line. Untested as always.

My hangover must be getting to me: I should have said: the perl script
should be one line. I also messed up a few spaces.

I should have used a continuation backslash:
| perl -0777pe 's/^----*.*^Content-Transfer-Encoding: \
7bit^Content-Type: text\/html(.|\n)*\Z//m'

-- 
Guy Geens <ggeens(_at_)iname(_dot_)com>
Home Page: http://www.elis.rug.ac.be/~ggeens
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 
"Now excuse me, I have some Daemons to fight"   -- Firkin

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