Modify

Opened 14 years ago

Closed 14 years ago

#211 closed defect (fixed)

notify when comments by email

Reported by: anonymous Owned by: bas
Priority: major Milestone:
Component: email2trac Version:
Keywords: Cc:

Description

Hello,

I've started using email2trac recently, it works as intended. However i have a problem.

trac version: 0.12 email2trac: 1.4.8

When i reply the tickets by email (comments) others dont get notified.But if i write a comment from trac's web interface, trac successfully sends mail to people.

here's my email2trac.conf:

[DEFAULT]
project: /var/lib/trac/projects
debug: 0
ticket_update: 1
umask: 022
spam_level: 5
umask: 022
email_header: 0
trac_version: 0.12
enable_syslog : 1
alternate_notify_template :
alternate_notify_template_update :
spam_level:5
drop_spam: 1
spam_header: X-Spam-Level
verbatim_format: 0
strip_signature: 0
email_quote: >
strip_quotes: 0
ignore_trac_user_settings: 0
black_list: MAILER-DAEMON@
drop_alternative_html_version: 0

and here's trac's mail settings:

[notification]
admit_domains = 
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
ignore_domains = 
mime_encoding = base64
smtp_always_bcc = 
smtp_always_cc = trac-notify@lawfirm.com
smtp_default_domain = 
smtp_enabled = true
smtp_from = trac@lawfirm.com
smtp_from_name = 
smtp_password = 
smtp_port = 25
smtp_replyto = trac@lawfirm.com
smtp_server = localhost
smtp_subject_prefix = __default__
smtp_user = 
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = False
use_short_addr = false
use_tls = false

Attachments (0)

Change History (11)

comment:1 Changed 14 years ago by bas

  • Status changed from new to assigned

Which plugins are enabled, Is it the same plug-in as #209?

comment:2 Changed 14 years ago by anonymous

I have cc_selector, tracspamfilter, tracticketdelete plugins installed.

comment:3 Changed 14 years ago by anonymous

2010-07-07 08:14:07,061 Trac[web_ui] ERROR: Timeline event provider failed: 
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/timeline/web_ui.py", line 179, in process_request
    filters) or []:
  File "/usr/lib/python2.6/site-packages/trac/ticket/web_ui.py", line 236, in get_timeline_events
    ts_start = to_utimestamp(start)
  File "/usr/lib/python2.6/site-packages/trac/util/datefmt.py", line 78, in to_utimestamp
    diff = dt - _epoc
  File "/usr/lib/python2.6/site-packages/trac/util/datefmt.py", line 384, in utcoffset
    if self._isdst(dt):
  File "/usr/lib/python2.6/site-packages/trac/util/datefmt.py", line 403, in _isdst
    stamp = time.mktime(tt)
ValueError: year out of range

I'm not sure if it's related but i have these messages (lots of, same) in trac.log

comment:4 Changed 14 years ago by bas

This can be the problem. There is nothing in the syslog? It is only with ticket_update? Can you change the following line to:

line 853
                if self.notification and not spam:
                        self.notify(tkt, False, when)

to

                if self.notification and not spam:
                        self.notify(tkt, False)

comment:5 Changed 14 years ago by anonymous

Well it partially worked(saw strange characters in messages). So i reverted the changes in email2trac. Then i removed tracspamfilter plugin and it works now.

comment:6 Changed 14 years ago by bas

  • Type changed from defect to task

thanks for reporting. email2trac has to read the whole stack and the do then do the email to ticket conversion. Some plugins interfere with email2trac

comment:7 Changed 14 years ago by anonymous

I've just tested tracdeleteticket plugin alone, it also fails with this plugin as well.

comment:8 Changed 14 years ago by bas

That is strange i have the following plugins installed without any problems:

unixgroups.* = enabled
batchmod.* = enabled
tracrpc.* = enabled
tracsearchall.* = enabled
ticketdelete.* = enabled
wikirename.* = enabled
tractags.* = enabled
newsflash.* = enabled

My trac version is : 0.11

comment:9 Changed 14 years ago by anonymous

I'm using it with 0.12.

comment:10 Changed 14 years ago by bas

I have just tested thre trunk version on trac 0.12 installation with announcerplugin and spamfilter installed and everyhing worked. The tracdeleteticket is not needed anymore. This plugin is part of the trac 0.12 opt plugins:

  • tracopt.ticket.deleter.ticketdeleter = enabled

comment:11 Changed 14 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed
  • Type changed from task to defect
  • Version 1.4.8 deleted

will close it

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.