Gerardo,

> Hi all. Im wondering if amavis could be used to "force" a default encoding
> for all my emails (even better would be only those emails who does not have
> a multipar/mime type.

Not without hacking the code.

Currently there are no useful mechanisms already available within amavisd
to help substantually at such a task (except by invoking an external utility).
It is nontrivial to do it right, you need to put MIME structure apart,
examine and adjust each MIME component and reassemble it. Lots of opportunity 
so break something else in passed messages.

It is a rather straightforward small modificiation to always insert:

  MIME-Version: 1.0
  Content-Type: text/plain; charset=ISO-8859-1

when MIME-Version is missing, but that does not solve other contents
like multipart/alternative and other more comples messages with
attachments.

> The thing is, if i receive (or send) some email with acuted vocals, the
> other part receives ugly chars. Shure, it happens because im receiving some
> utf8 encoding and letters like ñ (n with tilde) is not printed correctly.
> So, im asking if amavis could do something like 'convert all those plain
> text emails to HTML emails, and define iso-8859-1 as a default', or maybe
> just 'set de default encoding to incoming and outgoing emails to
> iso-8859-1'. Im using postfix 2.2 and amavis 2.3.3

Wouldn't it be just easier to fix the sending clients? Most of the
modern mail clients (MUA) handle non-ascii characters very well,
especially the more common ones like the iso-8859-1 (or UTF-8) which is
what you need. They only need to be properly configured. What are your
MUAs that are sending messages without supplying 'charset' info in
Content-Type header fields?

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to