[Mimedefang] proposing a patch for URL listing in boilerplate and more

Vieri Di Paola vieridipaola at yahoo.com
Wed Dec 26 05:38:24 EST 2007


--- "David F. Skoll" <dfs at roaringpenguin.com> wrote:

> > Also, could one set the message type to html in
> > action_replace_with_warning via an extra argument?
> 
> You mean change a text/plain message to a text/html
> one?  Umm.. no!
> :-) Not only do I hate HTML mail on principle, but
> safely converting a
> text/plain to text/html is pretty tricky.

I hate HTML too. But I'm referring to something else.
In my proposed patch I include extra args to the
action_replace_with_warning procedure. If you have the
time, please take a quick look at:
http://gentoo-wiki.com/HOWTO_Email_Content_Filtering_with_mimedefang
and search for "action_replace_with_warning".
You will notice the extra args:
#  msg -- warning message
#  mtype -- mime type
#  mext -- extension
#  mname -- file name
I'm using these to include a "warning message" in html
format since some webmail clients will not open the
text/plain attachment with the URL "automatically
transcribed to an HREF" (in other words, the lazy user
will not be able to "just click" on the link).
An example of such problematic mail clients is
hotmail's webmail interface.

> > Analogously, could there be something similar to
> > action_replace_with_file which would make it
> quicker
> > than having to do an action_drop +
> > MIME::Entity->build? (well, sort of quicker)
> 
> What would the semantics of action_replace_with_file
> be?

Again, if you have the time please go to 
http://gentoo-wiki.com/HOWTO_Email_Content_Filtering_with_mimedefang
and search for the second occurrence of
"action_replace_with_file".

Vieri



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the MIMEDefang mailing list