On Monday, March 28, 2016 at 2:14:13 PM UTC-7, Rich Alderson wrote:
>
> I installed Trac 1.0 a little over 3 years ago. It suffices for our needs, 
> but there is one little annoyance
> that I would like to correct: The e-mail notices from Trac do not wrap 
> text at the same granularity as
> Trac itself does, which makes the e-mail uglier that it needs to be.
>
> I do not see a setting for this in trac.config (not surprising), and would 
> like to modify the appropriate
> module to change from a hard setting of 75 characters per text line in 
> e-mail to something more usual
> in the modern world of wide screen displays.
>
> Would someone please be kind enough to point out to me where e-mail is 
> generated within Trac, for
> shipment to the SMTP handler?
>

It looks like the value of 75 is hard-coded here:
https://trac.edgewall.org/browser/tags/trac-1.0.10/trac/ticket/notification.py?marks=151#L146

You can probably write a small plugin that modifies this class attribute 
when it loads. The plugin could be placed in your environment "plugins" 
directory.
https://trac.edgewall.org/wiki/TracDev/PluginDevelopment

It might be as simple as (untested):

from trac.core import Component
from trac.ticket import notification 

class SetNotificationColsPlugin(Component):

    def __init__(self):
        notification.TicketNotifyEmail.COLS = 100


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to