Changeset 150


Ignore:
Timestamp:
03/09/07 11:29:20 (16 years ago)
Author:
bas
Message:

EmailToTracScript?
EmailtoTracScript?:

email2trac.py.in:

  • Attachment size too large exception catch
  • Use DEBUG instead of DROP_SPAM for printing
Location:
emailtotracscript/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/ChangeLog

    r149 r150  
     12007-03-09
     2
     3        * Added some primarily check to catch an error when attachment size
     4         is too large, bug #1153
     5         Author: Bas van der Vlies
     6
    172007-03-08 Michel Jouvin <jouvin@lal.in2p3.fr>
    28        * email2trac.py : blacklist (don't create ticket) mail from
    39          MAILER-DAEMON to avoid loops
    410        * msg.bad.txt : add an example of message from MAILER-DAEMON
    5 
    611
    7122006-12-08
  • emailtotracscript/trunk/email2trac.py.in

    r149 r150  
    453453                #
    454454                if self.DROP_SPAM and (tkt['component'] == 'Spam'):
    455                         if self.DROP_SPAM > 2 :
     455                        if self.DEBUG > 2 :
    456456                          print 'This message is a SPAM. Automatic ticket insertion refused (SPAM level > %d' % self.SPAM_LEVEL
    457457                        return False   
     
    773773                                        att.description = self.email_to_unicode('Added by email2trac')
    774774
    775                                 att.insert(url_filename, fd, filesize)
     775                                try:
     776                                        att.insert(url_filename, fd, filesize)
     777                                except  util.TracError, detail:
     778                                        a =  1
     779
    776780                                fd.close()
    777781
Note: See TracChangeset for help on using the changeset viewer.