Opened 14 years ago
Closed 14 years ago
#164 closed setup (fixed)
Email2tracMta documentation error in Test Setup
Reported by: | Dennis McRitchie <dmcr@…> | Owned by: | bas |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | email2trac | Version: | 1.0.0 |
Keywords: | Cc: |
Description
One of the recommended tests on the Email2tracMta page Test Setup section will not work, at least with certain versions of mail, sendmail, and python.
mail tracproj < msg.txt
results in the following traceback error:
Dec 5 !22:11:24 raas01 email2trac: Traceback (most recent call last):
Dec 5 !22:11:24 raas01 email2trac: File "/usr/local/raas/email2trac-1.0.0/bin/email2trac", line 1610, in <module> tktparser.parse(sys.stdin)
Dec 5 !22:11:24 raas01 email2trac: File "/usr/local/raas/email2trac-1.0.0/bin/email2trac", line 902, in parse m.replace_header('Subject', m['Subject'].replace('\r', '').replace('\n', ''))
Dec 5 !22:11:24 raas01 email2trac: AttributeError: 'NoneType' object has no attribute 'replace'
I believe this is due to the fact that msg.txt already has mailer headers. The other test (email2trac --project=tracproj < msg.txt) works, as do normal emails sent via the 'mail' utility.
Dennis
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by bas
- Status changed from new to assigned
- Type changed from defect to setup
comment:2 Changed 14 years ago by Dennis McRitchie <dmcr@…>
I entirely agree. But the current documentation at https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracMta in the "Test Setup" section (at the bottom of the page) specifically recommends trying "mail tracproj < msg.txt".
I suggest the documentation be corrected.
Dennis
comment:3 Changed 14 years ago by bas
Good suggestion. It is a wiki ;-) Just replace the user: anonymous with another name. Else i will do it tomorrow.
comment:4 Changed 14 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
I just adjusted the info
the test message included in the package is only for testing emailtrac and not the MTA setup. To test this you have to type/send your own message.