Changeset 392
- Timestamp:
- 07/12/10 13:17:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r390 r392 441 441 # to_list.append(e) 442 442 443 # Remove reporter email address if notification is 444 # on 445 # 446 if self.notification: 447 try: 448 cc_addrs.remove((self.author, self.email_addr)) 449 except ValueError, detail: 450 pass 443 # Always Remove reporter email address from cc-list 444 # 445 try: 446 cc_addrs.remove((self.author, self.email_addr)) 447 except ValueError, detail: 448 pass 451 449 452 450 for name,addr in cc_addrs: … … 855 853 856 854 857 if self.notification andnot spam:855 if not spam: 858 856 self.notify(tkt, False, when) 859 857 … … 1075 1073 #print tkt.get_changelog(self.db, when) 1076 1074 1077 if self.notification andnot spam:1075 if not spam: 1078 1076 self.notify(tkt, True) 1079 1077 … … 1448 1446 else: 1449 1447 spam_msg = False 1450 1451 if self.get_config('notification', 'smtp_enabled') in ['true']:1452 self.notification = 11453 else:1454 self.notification = 01455 1448 1456 1449 if not m['Subject']: … … 1938 1931 A wrapper for the TRAC notify function. So we can use templates 1939 1932 """ 1933 if self.VERBOSE: 1934 print "VB: notify()" 1935 1940 1936 if self.DRY_RUN: 1941 1937 print 'DRY_RUN: self.notify(tkt, True) reporter = %s' %tkt['reporter'] 1942 1938 return 1943 1939 try: 1940 1941 #from trac.ticket.web_ui import TicketModule 1942 #from trac.ticket.notification import TicketNotificationSystem 1943 #ticket_sys = TicketNotificationSystem(self.env) 1944 #a = TicketModule(self.env) 1945 #print a.__dict__ 1946 #tn_sys = TicketNotificationSystem(self.env) 1947 #print tn_sys 1948 #print tn_sys.__dict__ 1949 #sys.exit(0) 1950 1944 1951 # create false {abs_}href properties, to trick Notify() 1945 1952 # … … 1947 1954 self.env.abs_href = Href(self.get_config('project', 'url')) 1948 1955 self.env.href = Href(self.get_config('project', 'url')) 1956 1949 1957 1950 1958 tn = TicketNotifyEmail(self.env)
Note: See TracChangeset
for help on using the changeset viewer.