Headers in an e-mail message can only contain 7-bit ASCII characters,
so any non-ASCII characters must be encoded first before the message
is sent out.

I assume that most users who add non-English text to their template
body will probably want to do the same with the Subject header.  Is
this a valid assumption?

If it is, it might make sense to always try to encode the Subject
field of a template if the user has set `Charset:' to something other
than US-ASCII.

I'm thinking of adding a variable to the Defaults namespace to control
this.  With the above assumption, the default setting might look like:

AUTORESPONSE_ENCODE_HEADERS = ['subject']

Additional headers to be auto-encoded can be added to this list, but I
suspect most users will only be interested in Subject.

To disable header encoding, the variable can be set to an empty list
[].

How does this sound?
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to