Modify

Opened 17 years ago

Last modified 17 years ago

#1259 new enhancement

When always_notify_updater = true, person name instead of email address is used

Reported by: dkezic@… Owned by: Bas van der Vlies
Priority: normal Component: EmailtoTracScript
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

We are using email2trac 0.9 and Trac 0.10.3

I wish to notify updater when he send new ticket, or update a ticket, as response that his email is received. I don't wish to send email to this updater, when somebody else updated this ticket.

In trac.ini following settings:

[notification] always_notify_owner = false always_notify_reporter = false always_notify_updater = true mime_encoding = base64 smtp_always_bcc = smtp_always_cc = smtp_default_domain = smtp_enabled = true smtp_from = ticket@… smtp_password = smtp_port = 25 smtp_replyto = ticket@… smtp_server = localhost smtp_subject_prefix = default smtp_user = use_public_cc = false use_short_addr = false use_tls = false

In email2trac.conf: [DEFAULT] project: /var/trac/firstproject debug: 0 spam_level: 4 umask: 022 reply_all : 1 mailto_link: 0 email_comment: > email_header: 0 trac_version: 0.10 enable_syslog : 1 drop_spam : 1 verbatim_format: 0 strip_signature: 1 ticket_update: 1

[another] project: /var/trac/anotherproject

Now, when I send E-Mail, without attachment, and I am not defined as Trac user, in Trac is this ticked added as:
Reported by: Darko Kezic <dkezic@…>

And I receive a response on my email address.

But, when i send reply, to this notification email message, update on that ticket in trac is occured, and I receive no email. In trac.log is message:

INFO: Email address w/o domain: Darko Kezic
INFO: no recipient for a ticket notification

Same issue occurs when I send a email for new ticket with attachment. Then no conformation for new ticket is sent.

When I use a trac.ini parameter always_notify_reporter = true, then is used the right email address, and everything is working.

Is there a possibility, to set email2trac, to parse only email address from the email, and use it as "changed by" name in trac (and dont use email person name at all)?

Attachments (0)

Change History (6)

comment:1 Changed 17 years ago by anonymous

Owner: changed from Bas van der Vlies to anonymous
Status: newassigned

Just to make it clear for me. You want that the Reported by containts the email address insted of 'name <email_address>"

Or do you want to change the update function to use the only the email address in Changed by.

It must be a bug trac if it can not handle "Darko Kezic <dkezic@…>" in Changed by field. I must check which values we can set in the Changed by field.

comment:2 Changed 17 years ago by dkezic@…

I wish to change the update function to use only the email address in Changed by. This should solve the update ticket issue.

I' am not sure what is causing that behavior when I send an email with attachment as new ticket, not to receive a notification.
Perhaps when email address instead of "name <email_address>" is send to Reported by would solve this too?

This should be possible to adjust in email2trac.conf, perhaps separatly for Changed by and for Reported by.

My guess too is that this is actually a bug in Trac.

comment:3 Changed 17 years ago by anonymous

Oke, I will work on some new options and make some things configurable. The problem with a new ticket and an attachment and no notification is new to me. I am using the same version trac and email2trac as you and we get notifications.

When i new ticket is created from an email with attachment does it have all the information? Maybe the attachment size is too big?

comment:4 Changed 17 years ago by anonymous

When I have this in trac.ini:
always_notify_owner = false
always_notify_reporter = false
always_notify_updater = true

New ticket:
E-Mail without attachment -> OK
E-Mail with attachment (small 9KB, zip or txt) -> no email. In trac.log is written error when sending e-mail:
INFO: Email address w/o domain: Darko Kezic
INFO: no recipient for a ticket notification

Ticket update (replay to conformation e-mail for new ticket):
No email, in trac.log is diplayed error, when sending e-mail.

comment:5 Changed 17 years ago by anonymous

Thanks, no i know the problem. When we add the attachment it is a ticket update. I think a must fill in usernames or email addresses but not other formats like: Bas van der Vlies <basv@…>

comment:6 Changed 17 years ago by Bas van der Vlies

Owner: changed from anonymous to Bas van der Vlies
Status: assignednew

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Bas van der Vlies.

Add Comment


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

 
Note: See TracTickets for help on using tickets.