Re: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Peter Suter

Hi,

On 06.03.2019 04:18, Jun Omae wrote:

Hi,

On Wed, Mar 6, 2019 at 3:48 AM Peter Suter  wrote:

I think this was discussed here: https://trac.edgewall.org/ticket/11002


I don't consider the ticket is related.

In 1.0.x:
  * use_public_cc option and always_notify_reporter option are enabled,
the reporter is listed in To field.
  * use_public_cc option and always_notify_owner option are enabled,
the owner is listed in To field.
  * use_public_cc option and always_notify_updater option are enabled,
the updater is listed in To field.

See:
  * 
https://trac.edgewall.org/browser/tags/trac-1.0.17/trac/ticket/notification.py?marks=126,128,130#L121
  * 
https://trac.edgewall.org/browser/tags/trac-1.0.17/trac/notification.py?marks=512#L509

In 1.2.x:
  * Never use To field even if any configurations.
* 
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=449#L410



Thanks for the summary.
(I think all/most of that was mentioned in comment:3 and comment:5 of 
#11002, no? Either way, feel free to open a new ticket if #11002 is 
insufficient.)



I cannot find the change of the behavior in
https://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.2. I think Trac
should keep the behavior after upgrading to 1.2.x.

Also, I'm using AnnouncerPlugin on Trac 1.0.x in production
environment and have the same issue. I wrote decorator component to
keep the save behavior.



From my side, I assumed this was a minor detail that nobody would care 
about and was not worth mentioning. Apparently I was wrong. :) I still 
don't understand why one would care or what exactly would be important, 
but nevermind: Great to hear you already have a component written; feel 
free to include it in Trac.


Cheers,
Peter

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Jun Omae
Hi,

On Wed, Mar 6, 2019 at 3:48 AM Peter Suter  wrote:
> I think this was discussed here: https://trac.edgewall.org/ticket/11002

I don't consider the ticket is related.

In 1.0.x:
 * use_public_cc option and always_notify_reporter option are enabled,
the reporter is listed in To field.
 * use_public_cc option and always_notify_owner option are enabled,
the owner is listed in To field.
 * use_public_cc option and always_notify_updater option are enabled,
the updater is listed in To field.

See:
 * 
https://trac.edgewall.org/browser/tags/trac-1.0.17/trac/ticket/notification.py?marks=126,128,130#L121
 * 
https://trac.edgewall.org/browser/tags/trac-1.0.17/trac/notification.py?marks=512#L509

In 1.2.x:
 * Never use To field even if any configurations.
   * 
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=449#L410

I cannot find the change of the behavior in
https://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.2. I think Trac
should keep the behavior after upgrading to 1.2.x.

Also, I'm using AnnouncerPlugin on Trac 1.0.x in production
environment and have the same issue. I wrote decorator component to
keep the save behavior.

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


RE: [Trac] Trac 1.2.3 Email Notification Issue -- Code for displaying To field

2019-03-05 Thread Patty Cottrill
Peter,

Haha!!!
Apparently, it was easier than I thought. (I feel like a Geico commercial.)
I just created a .py file using the code you provided me and placed it in the 
environment’s plugin directory and Voilà it works!!!

Thanks so much.


-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 2:28 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue -- Code for displaying 
To field


Hi Patty,

Could you elaborate a bit on why and when the current behavior is a problem for 
you?

And what exactly would have to be different? Is it just this?

from trac.core import Component, implements

from trac.notification.api import IEmailDecorator

from trac.notification.mail import set_header



class ToFieldEmailDecorator(Component):



implements(IEmailDecorator)



# IEmailDecorator methods



def decorate_message(self, event, message, charset):

set_header(message, 'To', message['Cc'], charset)



Many people seem to have all sorts of different special requirements for 
notifications, so such plugins are the only viable way how such individual 
tweaks can reasonably be supported.

Cheers,
Peter
On 05.03.2019 20:11, Patty Cottrill wrote:
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com 
 On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the 

RE: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Peter,

I think that using “undisclosed recipients” in the To field makes the email 
look suspicious and I’m concerned it might be filtered as spam.

You make it sound very easy to create a plugin, but I’m guessing you can 
probably do this in your sleep.
I reviewed the instructions, and to me it sounds a little more complicated than 
just being able to edit trac.ini.
I don’t mind using plugins that have been created by others, but I don’t feel 
comfortable having to create one myself. I just know enough python to be able 
to manage our Trac environment!
Besides, it worked fine in previous versions, why did they have to change it?

All that being said, I think I can deal with it, I just hope our development 
team, specifically their manager won’t have a problem  with it.
I will hang on to your code however, just in case I decide to get adventurous 
and create my own plugin!! Who knows, it might be fun!

Thanks,
-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 2:28 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi Patty,

Could you elaborate a bit on why and when the current behavior is a problem for 
you?

And what exactly would have to be different? Is it just this?

from trac.core import Component, implements

from trac.notification.api import IEmailDecorator

from trac.notification.mail import set_header



class ToFieldEmailDecorator(Component):



implements(IEmailDecorator)



# IEmailDecorator methods



def decorate_message(self, event, message, charset):

set_header(message, 'To', message['Cc'], charset)



Many people seem to have all sorts of different special requirements for 
notifications, so such plugins are the only viable way how such individual 
tweaks can reasonably be supported.

Cheers,
Peter
On 05.03.2019 20:11, Patty Cottrill wrote:
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com 
 On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at 

Re: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Peter Suter

Hi Patty,

Could you elaborate a bit on why and when the current behavior is a 
problem for you?


And what exactly would have to be different? Is it just this?

from  trac.core  import  Component,  implements
from  trac.notification.api  import  IEmailDecorator
from  trac.notification.mail  import  set_header

class  ToFieldEmailDecorator(Component):

implements(IEmailDecorator)

# IEmailDecorator methods

def  decorate_message(self,  event,  message,  charset):

set_header(message,  'To',  message['Cc'],  charset)

Many people seem to have all sorts of different special requirements for 
notifications, so such plugins are the only viable way how such 
individual tweaks can reasonably be supported.


Cheers,
Peter

On 05.03.2019 20:11, Patty Cottrill wrote:


Hi Peter,

Thank you for your response.

As I understand it, this is normal behavior in this new version of Trac.

The only way to change the behavior is to create a plugin; you cannot 
configure it in trac.ini.


This is unfortunate because I really don’t want to hassle with 
creating a plugin.


Really would be nice to be able to configure it in trac.ini, like it 
was in previous versions of Trac.


-- Patty

*From:*trac-users@googlegroups.com  *On 
Behalf Of *Peter Suter

*Sent:* Tuesday, March 5, 2019 1:49 PM
*To:* trac-users@googlegroups.com
*Subject:* Re: [Trac] Trac 1.2.3 Email Notification Issue

Hi,

I think this was discussed here: 
https://trac.edgewall.org/ticket/11002 



If you need to change this, you could maybe try something similar as 
discussed here: https://trac.edgewall.org/wiki/CookBook/Notification/Email


Let us know if that works for you.

Cheers,
Peter

On 05.03.2019 17:51, Patty Cottrill wrote:

Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues
with the email notifications.

The To field is blank, even though I enabled the use_public_cc
.

Once I enabled it, the address that should be in the To field is
being displayed in the CC field.

Is this normal?

I did not have this problem with Trac 0.12.

Below is my configuration:

[notification]

admit_domains =

ambiguous_char_width = single

batch_subject_template = $prefix Batch modify: $tickets_descr

email_sender = SmtpEmailSender

ignore_domains =

mime_encoding = none

sendmail_path = sendmail

smtp_always_bcc =

smtp_always_cc =

smtp_default_domain =

smtp_enabled = enabled

smtp_from = myproj...@imci.net 

smtp_from_author = disabled

smtp_from_name =

smtp_password =

smtp_port = 25

smtp_replyto = pcottr...@imci.net 

smtp_server = x.imci.net

smtp_subject_prefix = __default__

smtp_user =

ticket_subject_template = $prefix #$ticket.id: $summary

use_public_cc = enabled

use_short_addr = disabled

use_tls = enabled

Thanks in advance.

-- Patty

-- Patty

-- 
You received this message because you are subscribed to the Google

Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to trac-users+unsubscr...@googlegroups.com
.
To post to this group, send email to trac-users@googlegroups.com
.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google 
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to trac-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to trac-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google 
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to trac-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to trac-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at 

RE: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Hi Peter,

Thank you for your response.
As I understand it, this is normal behavior in this new version of Trac.
The only way to change the behavior is to create a plugin; you cannot configure 
it in trac.ini.

This is unfortunate because I really don’t want to hassle with creating a 
plugin.
Really would be nice to be able to configure it in trac.ini, like it was in 
previous versions of Trac.

-- Patty

From: trac-users@googlegroups.com  On Behalf Of 
Peter Suter
Sent: Tuesday, March 5, 2019 1:49 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Trac 1.2.3 Email Notification Issue


Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as discussed 
here: https://trac.edgewall.org/wiki/CookBook/Notification/Email

Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I’m having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Peter Suter

Hi,

I think this was discussed here: https://trac.edgewall.org/ticket/11002

If you need to change this, you could maybe try something similar as 
discussed here: https://trac.edgewall.org/wiki/CookBook/Notification/Email


Let us know if that works for you.

Cheers,
Peter


On 05.03.2019 17:51, Patty Cottrill wrote:

Hi Trac Users,
I recently deployed a new Trac 1.2.3 server and I’m having issues with 
the email notifications.
The To field is blank, even though I enabled the _use_public_cc_ 
.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.

Is this normal?
I did not have this problem with Trac 0.12.
Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = _myproject@imci.net_ 
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = _pcottrill@imci.net_ 
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled
Thanks in advance.
-- Patty
-- Patty
--
You received this message because you are subscribed to the Google 
Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to trac-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to trac-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Trac 1.2.3 Email Notification Issue

2019-03-05 Thread Patty Cottrill
Hi Trac Users,

I recently deployed a new Trac 1.2.3 server and I'm having issues with the 
email notifications.
The To field is blank, even though I enabled the 
use_public_cc.
Once I enabled it, the address that should be in the To field is being 
displayed in the CC field.
Is this normal?
I did not have this problem with Trac 0.12.

Below is my configuration:
[notification]
admit_domains =
ambiguous_char_width = single
batch_subject_template = $prefix Batch modify: $tickets_descr
email_sender = SmtpEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = sendmail
smtp_always_bcc =
smtp_always_cc =
smtp_default_domain =
smtp_enabled = enabled
smtp_from = myproj...@imci.net
smtp_from_author = disabled
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = pcottr...@imci.net
smtp_server = x.imci.net
smtp_subject_prefix = __default__
smtp_user =
ticket_subject_template = $prefix #$ticket.id: $summary
use_public_cc = enabled
use_short_addr = disabled
use_tls = enabled

Thanks in advance.

-- Patty




-- Patty



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.