2010-07-22 * logging of spam message was wrong. Fixed it, - set.logger.info must be self.logger.info Author: Bas van der Vlies 2010-07-21 * added a new option 'ticket_permission_system'. Can be set to: - trac: Then it will check if the report has the right trac permission to create or modify a ticket. closes #202 - update_restricted_to_participants: A ticket update is allowed only if: 1) the updater is the reporter, 2) the updater is in the CC 3) the updater has trac permission to update the ticket. If the update is denied, a new ticket will be generated instead as to not loose the issue . closes #203 Authors: kris add tsampa dot org & Bas van der Vlies * Switch for logging to the python logging module and add some new options to control the behaviour inspired by the trac logging module: - log_type, default syslog - log_level, default info - log_format, email2trac - log_file, none Can be set to the same values as trac logging Author: Bas van der Vlies * removed trac 0.9 support 2010-07-12 * Do not check if notification is enabled, let Trac determine if a notfication is enabled and which interface/plugin is used, eg: announcerplugin Author: Bas van der Vlies 2010-07-06 * Fixed several errors in ticket update: - Changed the regex expression. It must end with ':'. - The email was lost if the ticket id was unknown. If ticket id is unknown a new ticket will be created. Reported by: SARA grid team Fixed by: Bas van der Vlies 2010-06-28 * Ticket update for version 0.12 did not work, closes #209 Author: mark underscore kids add yahoo dot com Applied by: Bas van der Vlies * enabled workflow and notification for trac version 0.12 Author: Bas van der Vlies 2010-06-23 * A better fix for attachments with special characters, closes #206 Reported by: karsten dot rohrbach add wibas dot de Fixed by: Bas van der Vlies 2010-06-22 * When debug is enabled email2trac chokes on non-ascii (utf8) characters in ticket fields, closes #205 Reported by: eirik dot schwenke add nsd dot uib dot no Fixed by: Bas van der Vlies * Email2trac crashes when attachment filename contains non-ascii characters, closes #206 Reported by: karsten dot rohrbach add wibas dot de Fixed by: Bas van der Vlies 2010-06-09 * Support added for trac version 0.12, closes #201 Reported by: mark_kids add yahoo dot com Fixed by: Bas van der Vlies 2010-05-25 * delete_spam still used the trac_version in email2trac.comf Fixed by: Bas van der Vlies * email2trac crashed when ticket_update_by_subject was enabled. Fixed by: Bas van der Vlies 2010-05-20 * email2trac crashed if there are '/' and '\' characters in a filename. These characters are now being replace by '_', closes #196 Reported by: jcuppen add hethooghuis dot nl Fixed by: Bas van der Vlies * Problems with attachments were not reported for ticket updates Fixed by: Bas van der Vlies * delete_spam changes: - only support trac version greater then 0.10 - added -n/--dry-run option - added -v/--verbose option Author: Bas van der Vlies * Enhancement for ticket prefixes (email2trac.conf). The ticket fields status and resolution are not forbidden any more. closes #195 Author: Konstantin Ryabitsev Applied by: Bas van der Vlies * Added a new option. It is all in the name: * ticket_update_by_subject, default value is off * ticket_update_by_subject_lookback, default 30 days When this option is enabled and there is no ticket number found in a reply mail. It will try to find a ticket summary that matches the mail subject line. If found then append the mail to this ticket, closes #188 Author: Konstantin Ryabitsev & Bas van der Vlies Applied by: Bas van der Vlies * Added DiscussionPlugin support, closes 197. For description see: - https://trac-hacks.org/wiki/DiscussionPlugin Author: ibarton add fit dot vutbr dot cz (alias Blackhex) Applied by with some modification: Bas van der Vlies * Trac version is now automatically determined. No need anymore for trac_version in /etc/email2trac.conf Author: Bas van der Vlies 2010-03-20 * Fixed a bug reporter was always set to the default value specified in trac.ini. Reported by: Jean-Paul Duyx Fixed by: Bas van der Vlies * If reported field is overriden then use it for all trac functions including notification, closes #187 Reported by: shildebrand at venturebeat dot com Fixed by: Bas van der Vlies 2010-03-24 * Added configure option '--with-install_user=', default user is 'root'. The specified user is used for installation so we can install the package as non-root user, closes #182. Reported by: shildebrand at venturebeat dot com Fixed by: Bas van der Vlies * Re-arranged some code so that we can override ticket fields in email2trac.conf, eg: - default_reporter : email2trac Will set the reporter ticket field to email2trac for all mail, closes #182 Reported by: shildebrand at venturebeat dot com Fixed by: Bas van der Vlies * Fixed a bug when there is no subject field in the message, closes #179 The fix in the 1.2.0 version did not work. Reported by: xurizaemon and John Donners (SARA) Fixed by: Bas van der Vlies * We do not write any files when dry run mode is enabled. Fixed by: Bas van der Vlies * Fixed several issues when DEBUG is enabled with printing non-ascii characters, see #184 Reported by: hju add jochenkuhl dot de Fixed by: Bas van der Vlies 2010-02-24 * Added an option to run_email2trac to set the PYTHON_EGG_CACHE environment variable (-e|--eggcache), closes #174 Author: pepl at cpan dot org Applied by: Bas van der Vlies * Ticket fields can be set inline an email: closes #171, #88 - controlled by parameter 'inline_properties', default behaviour off - see https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracParse#Updateticketfields Author: samuel at hoffstaetter dot com Applied by: Bas van der Vlies * Fixed a bug when there is no subject field in the message, closes #179 Reported by: xurizaemon Fixed by: Bas van der Vlies * Added unicode support attachment filenames, closes #177 Reported by: obwandner add concertare dot de Fixed by: Bas van der Vlies * Email to blog did not work at all. It works but it can not handle attachments. see #175. Reported by: oland dot wells add gmail.com Patches : Bas van der Vlies * Show errors when we can not include attachments in the ticket, see #165 Requested by: hju add jochenkuhl dot de and dereks add cool-st dot com Fixed by: Bas van der Vlies * Added a new option 'email_triggers_workflow'. When a ticket is closed and an update is received via email. The ticket will be reopened or triggers a ticket workflow. This action can be skipped if we set the email_triggers_workflow option to 0. The default value is 1, closes #180 Author: zac add sprackettd dot com Applied by: Bas van der Vlies 2010-01-11 * Workflow option did not work, closes #157 Reported by: thomas dot moschny at gmx dot de Fixed by: Bas van der Vlies & Thomas Moschny * When a ticket is updated via email. We must set a changelog id, closes #156 Reported by: Chris dot Nelson at SIXNET dot com Fixed by: Bas van der Vlies * Changed all 'str =' assignments to 's =' to solve conflicts with the builtin str function Fixed by: Bas van der Vlies * Python egg cache enviroment setting was ignored by email2trac. closes #163 Author: Dennis McRitchie ( dmcr at Princeton dot EDU ) Applied by: Bas van der Vlies * Disabled code so the following line will not be displayed anymore as comment in a ticket: - This message has x attachment(s) Suggested by: dereks at realloc dot net, closes ticket #165 Fixed by : Bas van der Vlies * Added a new parameter strip_content_types. So we can strip attachments based on content type, eg: - strip_content_types: application/pgp-signature, application/mac-binhex40 Will strip attachments that has these content_types. Authors: otto at bergerdata dot de and Bas van der Vlies * FIxed an error when files where added with characters that needed to be escaped. Both email2trac and trac escaped the filenames. We removed the code from email2trac an let trac handle the escaping, closes #149 Reported by: hju att jochenkuhl dot de Fixed by: Bas van der Vlies * Added a new parameter: - subject_field_separator, default value is & This is used to set tickets fields via the subject line. It used to be , .For backwards compatibility we introduced this parameter. closes #166 Suggested by: Dennis McRitchie ( dmcr at Princeton dot EDU ) Fixed by : Bas van der Vlies * Prevent mail loop. We could set the CC ticket field to the ticket email address. - For a new ticket and reply_all is set. - If the ticket CC field is updated via the subject line. Also prevent setting the reporter address to the ticket email address. closes #172 Reported by: otto at bergerdata dot de Fixed vy : Bas van der Vlies 2009-09-02 * Implemented a new feature to drop the HTML version of multipart/alternative message part. Such a message part contains the same info. The info is sent in different formats and the client can decide which version to use. closes #30 to enable in email2trac.conf: - drop_alternative_html_version: 1 Implemented by: Bas van der Vlies 2009-08-20 * updated aclocal.m4 to support python versions 2.5 and 2.6, closes #137 * use the email addres in the reporter field, closes #136 * Fixed an error in blog update function All Fixes by: Bas van der Vlies * if alternate notify template is set then also set ticket id. It will show up as ticket change, closes #142 Reported by: hju att jochenkuhl dot de Fixed by: Bas van der Vlies * Error in urllib.quote(filename) could not handle unicode filenames, closes #138 Reported by: debacle at debian dot org Applied by: Bas van der Vlies * Fixed an error when debug is on and the body message contains unicode strings, closes #144 Reported by: trumbitta at gmail dot com Applied by: Bas van der Vlies * default trac version for email2trac is now updated to 0.11 2009-04-09 * Fixed in parsing the reflow parameter, closes #123 Reported by: tomasz dot sterna at sensisoft dot com Fixed by: Bas van der Vlies * implemented workflow for tickets that are reopend, closes #70 Reported by: hju att jochenkuhl dot de Author by: Bas van der Vlies * added FullBlogPlugin support. So we can update/create the blogs via email, #116 mail with subject line: will create/update a blog entry. Authors: Bas van der Vlies & lucas dot eisenzimmer at t-systems-mms dot com * email2trac require at least python version 2.4, closes #131 Reported by: otto at bergerdata dot de Fixed by: Bas van der Vlies * We can now set ticket fields for a new ticket via the 'subject' line: - Subject: #?[,]* closes #130 Requested by: Steve Implemented by: Bas van der Vlies 2009-01-30 * applied patch exit with non-zero return code on failure, closes #117 Author: admin-egon at ikw dot uos dot de Applied by : Bas van der Vlies * Ticket update with attachments did not work, closes #120 Reported by: Alexander Verkooijen (alexander at sara dot nl) Fixed by: Bas van der Vlies * Removed obsolete code Author : Bas van der Vlies * When email address is known then the author name and email address is used from the preference tab. The match is case insensitive, closes #118 Reported by: Pusateri, Matthew (default: 0) mail_quote: (default: "> ") Author: nicolasm @ opera dot com Implemented by: Bas van der Vlies * Added patch to make notify email work with trac 0.11 dev. Author: tbaschak add ktc dot mb dot ca Author: andrei2102 add gmail dot com Implemented by: Bas van der Vlies * greedy matching in Subject line, We must stop after the first ':' else we get wrong values for ticket fields when we update a ticket via mail, closes ticket #37 Reported by: dmaziuk at bmrb dot wisc dot edu Fixed by: Bas van der Vlies * added IGNORECASE flag to regular expression for black list. This is a quick fix, still want to implement this as configuration option, closed bug #39 Reported By: jodok at lovelysystems dot com Fixed by : Bas van der Vlies * When a known user mails a ticket. We will set the Reporter to its login name, closes bug #33, #41 Also add configuration option: ignore_trac_user_settings : 0 (default value) This option will skip the email address to trac user login name mapping. Reported by: anonymous Fixed by : Bas van der Vlies * SPAM detection was only for new mails not for ticket updates, closed ticket #44 Reported by: Bas van der Vlies Fixed by : Bas van der Vlies 2007-07-18 * Implemented python_egg_cache environment variable. Some trac installations may depend on it, closes ticket #10, eg: python_egg_cache : /var/cache/eggcache Reported By: Anonymous Fixed by : Bas van der Vlies * Implemented update ticket fields via email subject line, eg: Re: [email2trac] #7?owner=bas,priority=minor: Error in parsing - Sets the owner of the ticket to: bas - Sets the priority of the ticket to: minor For some ticket fields there are only a limited number of allowed values. The supplied value will be checked against this list. If it is not vaild value the field update will be ignored. Requested by : trac at yadan dotnet, Jan Parchmann, see ticket #7 Implemented by: Bas van der Vlies * Dropped support for version trac version 0.8. Removed all 0.8 specific code. Fixed by: Bas van der Vlies * Added a new config parameter: tmpdir: /var/tmp, default is '/tmp' All functions now use this new parameter and use OS independent path functions. Implemented by: Bas van der Vlies * fixed and a creating directory problem email2trac.spec file Fixed by: artrus at netzero dot net * set_owner function is obsolete. When component is set the trac code will set the owner to the component owner. Fixed by : Bas van der Vlies * Also show email headers in a ticket update. Requested by: Ramon Bastiaans Fixed by : Bas van der Vlies * A date patch so it works with trac version 0.11 for ticket updates. Also applied for other trac versions. Thanks to: tbaschak at ktc dot mb dot ca 2007-04-27 * Added check to catch an error when attachment size is too large, bug #1153 Author: Bas van der Vlies * Wrap long line into user given length, use_textwrap: 72. Wraps lines greater then 72 chars, #1123 Author: Bas van der Vlies & Rainer Sokoll (r.sokoll at intershop dot de) * Fixed a dutch spelling, #1295 Author: Rainer Sokoll (r.sokoll at intershop dot de) * email2trac.py : blacklist (don't create ticket) mail from MAILER-DAEMON to avoid loops Author: Michel Jouvin * msg.bad.txt : add an example of message from MAILER-DAEMON Author: Michel Jouvin 2006-12-08 * email2trac.py: - Added verbatim_format option default is: 1 Added by : Bas van der Vlies - Added strip_signature option default is: 0 Added by : Bas van der Vlies - Fixed some unicode errors, thanks to japanes SPAM. If we can not unicode email message then display which charset must be installed in ticket description. Else we trac crashed with unicode errors ;-( Fixed by: Bas van der Vlies - Fixed statements: str + unicode, raises an exception if non-ascii value in unicode object. - Forgot to unicode the author. So we got an error if we use the mailto_link option in email2trac.conf. Fixed by: Bas van der Vlies * delete_spam.py: - Now works for version 0.10 with new API-functions Fixed by: Bas van der Vlies * Makefile.in - Added install-conf. Install email2trac.conf if there is none installed. Fixed by: Bas van der Vlies 2006-10-27 * run_email2trac.c. - Setgid() must be called before setuid(). Reported by: Anonymous Fixed by: Bas van der Vlies * email2trac.py, - Fixed an error in Ticket Update. When ticket does not exists, proceed as if it is a new ticket Fixed by: Bas van der Vlies - Fixed a strang bug in 0.9 version, if ticket update is enabled and email has attachment(s). We are not allowed to set the description and author field of the attachment else the comment text is lost ;-( Fixed by: Bas van der Vlies - Fixed an error if enable_syslog and drop_spam is set. We get an exception in the syslog if we use sys.exit(0), replaced by return. Fixed by: Bas van der Vlies * delete_spam.py. - Trac version 0.10 made it easier to delete tickets. Fixed by: Bas van der Vlies 2006-10-10 * Fixed race conditions in delete_spam.py and added some debug code. Fixed by : Bas van der Vlies * Added author and description field when attachment is added to ticket. This is for trac version greater than 0.8. Fixed by : Bas van der Vlies Thanks to Matthew Good for the hint * Added drop_spam option, default = 0. If set then mail marked as Spam is not accepted. Added by : Bas van der Vlies * Do not send notification if message is marked as Spam and drop_spam is not set. Fixed by : Bas van der Vlies 2006-10-02 * Fixes possible segmentation faults in run_email2trac.c Reported by: bcornec Fixed by : Bas van der Vlies * Can set DEBUG level while configuring package, eg: DEBUG=1 ./configure ( default : 0) Reported by: syd at plug dot ca Fixed By : Bas van der Vlies * delete_spam.py did not delete everything from the SQL tables Reported by: brent at rcfile dot org Fixed by : Bas van der Vlies * Do not send notification when message is marked as Spam Fixed by : Bas van der Vlies 2006-08-28 * fixes an error in the 'reply_all' setting Thanks to and Patch by: ncarlson@ibsys.com * Added RPM spec file Thanks to: Jon Topper 2006-07-14 * Use X11R5 install-sh to install email2trac components to hide native install program differences. Author: Michel Jouvin * Fixed an error in saving attachments for new tickets for trac versions greater then 0.9. Fixed by: Bas van der Vlies * When something went wrong save the offending email for debug purposes. Fixed by: Bas van der Vlies * delete_spam.py - did not clean up the attachment table. So we got nasty new mails with fake attachments. - It works now for versions higher then 0.8 * Finally understand the unicode/encode functions and hopefully fixed the errors. Fixed by: Bas van der Vlies * Remove the temporarly created attachment files. Fixed by: Bas van der Vlies 2006-07-06 * Fixed an error in already added attachments. Do not close the database connection. Fixed by: Walter de Jong en Bas van der Vlies * Added enable_syslog option. If enabled log errors to syslog instead of stderr. If enabled no errors are send back to the user. Implemented by: Bas van der Vlies * Fixed an error with updating tickets with attachments for trac versions 0.9 and 0.10. Field "id" is not known when a existing ticket is fetched (Error = KeyError: 'id') Fixed By: See tickets #258 and #449 on trac-hacks * Fixed and spell error, self.mail_addr must be self.email_addr Fixed by: Bas van der Vlies * Catch a LookupError in unicode/encode conversion in function get_body_text() Fixed by: Bas van der Vlies * Description field was always changed when updating the ticket via the web. Asked the mailing list for a solution and got one ;-) Patch/Suggestion by: Christian Boos Applied by: Bas van der Vlies * Fixed an encoding problem when email_header is set to 1 Fixed by: Bas van der Vlies * Fixed a bug in to_unicode() function. Fixed by: Bas van der Vlies * Fixed an unicodedata.normalize TypeError bug for filenames in the attachment function Fixed by: Bas van der Vlies 2006-06-02 * Added ticketing merging. To enable it there are two options for both options enable 'ticket_update' in email2trac.conf 1 - Configure trac notification, eg: * (ticket address: ticket@test.nl) [notification] smtp_enabled = true smtp_always_cc = test@test.nl smtp_server = localhost smtp_from = ticket@test.nl always_notify_reporter = true 2 - Use the mailto_cc in email2trac.conf if you want to sent an email to the user and the trac ticket email address. With both options you get the right format of the subject line. * Use the short options for the install command. So it works for MacOSx Reported by: Nathaniel Irons. * Updated inline documentation by Nathaniel Irons. 2006-05-16 * Fixed a bug when there was no plain text body. Reported by: Greg Deakyne * Fixed a small bug if default component owner is unknown. Just fill in some bogus info. * Use the short options for the install command. So it works for MacOSx Reported by: Nathaniel Irons * Messages that has X-Virus-found in header are marked as SPAM Implemented by: Walter de Jong * Some modules are changed for version 0.10, Added and made some minor changes: Patch supplied by: Markus Tacker * Ported delete_spam.py to version 0.9 and higher: Reported by: Nathaniel Irons 2006-03-08 - Fixed an bug for 0.9, there was a space in front of the ' ticket' directory. removed it. Reported by: mi-trachacks@moensolutions.com Fixed by: Bas van der Vlies * Fixed an exception error in delete_spam.py when shutil has not enough priveledges to remove the attachments it is reported Fixed by: Bas van der Vlies * email2trac.py: When you include the body tag, some mailers (like Thunderbird) will leave out the signature. Therefore this version leaves out the body tag. Fixed by: Walter de Jong * Added msg.txt for testing Fixed by: Bas van der Vlies 2006-02-01 Bas van der Vlies : * Added Tikcet notification, send email when there is a new ticket. Depends on notification setting in trac.ini. Implemented by: Kilian Cavalotti * Can use different template for ticket notification, eg: alternate_notify_template: "a_tkt.css" Implemented by: Kilian Cavalotti * Added reply_all config parameter. If set put all CC-addresses from orginal mail in ticket CC-field. Suggested by: Kilian Cavalotti * Text in ticket description is also properly UTF-8 encoded Implemented by: Kilian Cavalotti * Removed reply_address from config file. Is not necessary anymore. See Ticket notification. * Added support for known users. If email address is known then use the trac known username instead of the email-address (only for trac version > 0.9) Implemented by: Kilian Cavalotti * Fixed an error in saving attachments for version < 0.9. Sometimes we got bogus attachments. Fixed by: Walter de Jong * Added support to make an debian package Implemented by: Bas van der Vlies 2006-01-21 Bas van der Vlies : * Fixed run_email2trac.c, did not work * Added TRAC_SCRIPT_NAME to Makefile.in to solve run_email2trac problem Both errors reported by: kilian.cavalotti@lip6.fr 2006-01-20 Bas van der Vlies : * A warning error is fixed by kilian.cavalotti@lip6.fr * Several errors in make install ;-(, reported by tacker 2006-01-15 Bas van der Vlies : * Added configure script. 2006-01-10 Bas van der Vlies : * Removed project_root from source and config file * Adjust code so we can use mulitple stanza's in config file, eg: [bas] project: /data/trac/bas spam_level: 3 use option "-p|--project bas" to select the stanza 2006-01-04 Bas van der Vlies : * Fixed getopt for -f option * Added suppport for different TRAC versions (0.8 and 0.9) 2006-01-03 Michel Jouvin * email2trac.py (ReadConfig) : allow project name relative to project root in configuration file * email2trac.py (TicketEmailParser.parse): save entire email for debugging only if debug >= 2 * run_email2trac.c: pass wrapper arguments to Python script, filtering out --file * email2trac.py (TicketEmailParser.debug_attachments): set tmp file created for debugging writable by anybody (to avoid problem if the script is run with a different uid during tests) * email2trac.py (TicketEmailParser.parse): set tmp file created for debugging writable by anybody (to avoid problem if the script is run with a different uid during tests) 2005-12-22 Michel Jouvin * Makefile: add a Makefile to build and install email2trac * email2trac.py: migrate to Trac 0.9 API 2005-12-21 Michel Jouvin * run_email2trac.c: add error messages if DEBUG macro defined * run_email2trac.c: add error testing and specific return values for each error * run_email2trac.c: Move site specific paramaters to run_email2trac.h * run_email2trac.h: include file to define site specific paramaters 0.2.4 01/11/2005 Added email_header option if set then show TO/CC fields in description of the ticket. Fixed an error in the mailto URL. This was an old error that supposed to be fixed but reoccured in this version. 0.2.3 31/10/2005 Fixed a bug with base64 encoded attachments/emails Fixed by: Walter de Jong 0.2.2 10/10/2005 according to RFC 2368 (titled "the mailto URL scheme") the mailto URL can only work with short &body messages. It fails with long messages and the link won't work. Therefore the mail body is no longer copied into the mail reply. 0.2.1 10/07/2005 body of reply email looks better 0.2 10/07/2005 mailto is replaced by a html mailto to line. If you reply to the ticket via this link then an email client is started with some default values: To: Subject: Re: Body: email_comment email2trac.conf: email_comment: # (default: >)