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: | 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)
Change History (3)
by , 15 years ago
Attachment: | mailSender.py added |
---|
by , 15 years ago
Attachment: | mailSender.2.py added |
---|
comment:1 by , 14 years ago
Resolution: | → cantfix |
---|---|
Status: | new → closed |
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)
The second version of mailSender.py: fix mis-use of pyinotify