[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail messages with only html



What I have over here appears to be working since the de-html-backup file already has 29 lines of text in it. So here's a little patch to be placed in the .procmailrc file above the default recipe if one exists.
Cut here:


# create backup for de-html'd email
:0 c
* ^Content-Type: text/html
de-html-backup

# de-html
:0 fbw
* ^Content-Type:[ ]*text/html
| lynx -dump -stdin -nolist \
&& echo "" \
&& echo "====================================================" \
&& echo "This HTML message has been made into text by lynx" \
&& echo "===================================================="

cut here.




Reply to: