Edgewall Software
Modify

Opened 15 years ago

Closed 14 years ago

#9368 closed enhancement (cantfix)

Modify/Create a ticket responses poorly with a slow SMTP server

Reported by: chenj@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.12b1
Severity: normal Keywords: notification
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

With SMTP notification enabled, and a slow SMTP server, operations such as modify/create tickets will response poorly.

To improve responsivity, some asynchronous mechanism may need to be employed. In such a mechanism, pending emails may reside in a queue, and the queue may be backed by a persistent storage, in case of a sudden crash, the pending emails can be resent.

Attachment is a script which will improve responsivity. It's compatible with the "SendmailEmailSender interface". To use it, you need:

  • set mailcache dir and SMTP stuffs in the script.
  • set trac.ini:
    [notification]
    email_sender = SendmailEmailSender
    sendmail_path = /path/to/mailSender.py
    smtp_enabled = true
    

Attachments (2)

mailSender.py (8.2 KB ) - added by anonymous 15 years ago.
mailSender.2.py (8.2 KB ) - added by chenj@… 15 years ago.
The second version of mailSender.py: fix mis-use of pyinotify

Download all attachments as: .zip

Change History (3)

by anonymous, 15 years ago

Attachment: mailSender.py added

by chenj@…, 15 years ago

Attachment: mailSender.2.py added

The second version of mailSender.py: fix mis-use of pyinotify

comment:1 by Christian Boos, 14 years ago

Resolution: cantfix
Status: newclosed

Thanks for your contribution. However, a ticket is not the best place to give some visibility to this. You'd better setup a "hack" on TracHacks.

(and please have a look at our TracDev/CodingStyle, while not strictly necessary to follow them for being hosted on TracHacks, following these advices can't hurt)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.