Timothy Legant <[EMAIL PROTECTED]> writes:
> Modified Files:
> AutoResponse.py ChangeLog
> Log Message:
> Changed AutoResponse.__init__ to re-parse the message only if
> AUTORESPONSE_INCLUDE_SENDER_COPY is 2 or greater, since that's the
> only case in which it matters.
[...]
> - rfc822part = MIMEText(Util.headers_as_raw_string(self.msgin),
> - 'rfc822-headers',
> - self.msgin.get_charsets()[0])
> + rfc822part = MIMEText(
> + self.msgin_as_string[:self.msgin_as_string.index('\n\n')+1],
> + 'rfc822-headers', self.msgin.get_charsets()[0])
This change seems to have broken TMDA when
AUTORESPONSE_INCLUDE_SENDER_COPY = 1.
Uncaught Python 2.1.3 Exception (Mon Dec 1 18:14:57 2003):
-----------------------------------------------------------
Traceback (most recent call last):
File "/Users/jasonrm/cvs/tmda/dist/bin/tmda-filter", line 53, in ?
execfile(os.path.join(execdir, 'tmda-rfilter'))
File "/Users/jasonrm/cvs/tmda/dist/bin/tmda-rfilter", line 891, in ?
main()
File "/Users/jasonrm/cvs/tmda/dist/bin/tmda-rfilter", line 863, in main
bouncegen('request')
File "/Users/jasonrm/cvs/tmda/dist/bin/tmda-rfilter", line 772, in bouncegen
send_bounce(bounce_message, mode)
File "/Users/jasonrm/cvs/tmda/dist/bin/tmda-rfilter", line 441, in send_bounce
ar.create()
File "/Users/jasonrm/cvs/tmda/dist/TMDA/AutoResponse.py", line 143, in create
rfc822part = MIMEText(
AttributeError: AutoResponse instance has no attribute 'msgin_as_string'
I don't exactly understand why this change was made either?
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers