Opened 15 years ago
Closed 15 years ago
#77 closed enhancement (fixed)
Contributing back some customizations
Reported by: | jon.wbstr@… | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | email2trac | Version: | 0.3 |
Keywords: | Cc: |
Description
I setup email2trac on windows this month using the virtual SMTP drop folder and ran into a couple of issues.
- The drop folder accepts mail to any address @domain.com or @server.ip.address.
- Email sent from outlook contain a winmail.dat file which does not need to be on the tickets.
- Email sent containing HTML, result in 'part0001.html' attachments that also do not need to be on the tickets.
The attached diff is against trunk on 8/3/2008 and adds ignoring of winmail.dat and part0001.html attachments and the 'rcptaddress_list' parameter. Emails not sent to an address listed in rcptaddress_list is ignored.
I also revized the batch file slightly so that it deletes emails as they are processed to avoid accidently deleting an email that arrived durring processing but before the delete *.eml command is triggered.
SET MAIL_DIR=C:\Inetpub\mailroot\Drop for %%f in ("%MAIL_DIR%\*.eml") do C:\python24\python.exe D:\svn_repository\email2trac\email2trac.py -p afids < %%f & DEL %%f
Attachments (1)
Change History (6)
Changed 15 years ago by jon.wbstr@…
comment:1 Changed 15 years ago by bas
- Status changed from new to assigned
Thanks for the patch. The new parameter is useful and you can just block part001.html. Some people just send HTML mail and this can also attached as part001.html. We just have to find out if the plain text is the same as html text. If not convert the html text, see also ticket #30
comment:2 Changed 15 years ago by bas
Sory for the late response, but when i read your patch correct you filter the to-field-header. Because of the dropbox configuration?
comment:3 Changed 15 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
i have implement the recipient_list parameter in the trunk version. For blocking of certain attachment this is a duplicate request, see #68
comment:4 Changed 15 years ago by Jon Webster
- Resolution fixed deleted
- Status changed from closed to reopened
> Comment (by bas): > Sory for the late response, but when i read your patch correct you filter > the ''to-field-header''. Because of the dropbox configuration? Correct, the windows Virtual SMTP server puts all received emails in the same folder, wheather it be local delivery or just to a random address @accepteddomain.com, so I only want to process the messages sent to the trac address.
comment:5 Changed 15 years ago by bas
- Resolution set to fixed
- Status changed from reopened to closed
thanks for the clarification. The support for this feature is now in version 0.4
Patch to add discussed features