[Mailman-Users] Personalization in the original email
Mark Sapiro
msapiro at value.net
Tue Mar 28 19:00:26 CEST 2006
Mark Sapiro wrote:
>
> for part in msg.walk():
> if part.get_content_maintype() == 'text':
> del part['content-transfer-encoding']
> part.set_payload(DoReplacements(
> part.get_payload(decode=True)))
That probably won't work. How about
for part in msg.walk():
if part.get_content_maintype() == 'text':
sMsgToFormat = part.get_payload(decode=True)
del part['content-transfer-encoding']
part.set_payload(DoReplacements(sMsgToFormat))
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list