procmail
[Top] [All Lists]

Re: Re^2: chmod immediately?

1997-07-15 23:28:00
On Tue, 15 Jul 1997, Mitsuru Furukawa wrote:
---
IE erases, for example, "<myaddres(_at_)myhome(_dot_)com>" completely;-<
I first thought of using sed to replace with &lt; and etc,
but I gave up because it occasionally garbles 2-byte Japanese chars.
Any idea?

I'm thinking of a simple seb recipe. I'll have to play with it and see 
what I can come up with.

Below is my variation of your recipe using the <pre> tags instead of <form>. 
I'll play with it some more and keep you and the list posted. Their are a 
lot of things I would like it to do, including write it's own menu using 
the subject for headers and of course, convert the leading < into &lt; so 
browsers don't think it's an html tag and skip it. My thoughts go more 
towards appending a single html file rather than write a bunch of unique 
ones.

:0h
HEAD=|formail -X ""

:0b
BODY=|formail -I ""

UMASK=022   # set less paranoid umask to create world readable file

:0ciw:
|echo "<!Content-Type: \"text/html\">"                  >  $WEBMAIL/$FILE;\
echo "<HTML><HEAD><TITLE>EMAIL2WEB</TITLE></HEAD>"      >> $WEBMAIL/$FILE;\
echo "<BODY BGCOLOR=\"#FFFFFF\">"                       >> $WEBMAIL/$FILE;\
echo "<H3>DANGEROUS DAVE'S<BR>"                         >> $WEBMAIL/$FILE;\
echo "EMAIL2WEB INTERFACE</H3>"                         >> $WEBMAIL/$FILE;\
echo "<PRE>"                                            >> $WEBMAIL/$FILE;\
echo "$HEAD"                                            >> $WEBMAIL/$FILE;\
echo "$BODY"                                            >> $WEBMAIL/$FILE;\
echo "</PRE>"                                           >> $WEBMAIL/$FILE;\
echo "<H3>END of MAIL2WEB</H3>"                         >> $WEBMAIL/$FILE;\
echo "</BODY></HTML>"                                   >> $WEBMAIL/$FILE;\

UMASK=077    # restore the paranoid mask

Regards,

Dave/Webmaster

           Join www.cauce.org | Join Joke-L
  Hit SPAMMERS Where It Hurts | Listserv <listserv(_at_)ddave(_dot_)com>
 ```````````````` Confirmed kills and counting...
"God grant me the serenity to accept the things I cannot change, 
the courage to change the things I can, and the wisdom to hide 
the bodies of the SPAMMERS that I had to kill."

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