Package trac :: Package ticket :: Module notification :: Class TicketNotifyEmail

Class TicketNotifyEmail

source code

          object --+        
                   |        
 notification.Notify --+    
                       |    
notification.NotifyEmail --+
                           |
                          TicketNotifyEmail

Notification of ticket changes.
Instance Methods
 
__init__(self, env)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
notify(self, ticket, newticket=True, modtime=None)
Send ticket change notification e-mail (untranslated)
source code
 
notify_attachment(self, ticket, attachment, added=True)
Send ticket attachment notification (untranslated)
source code
 
format_props(self) source code
 
parse_cc(self, txt) source code
 
diff_cc(self, old, new) source code
 
format_hdr(self) source code
 
format_subj(self, summary, newticket=True) source code
 
get_recipients(self, tktid)
Return a pair of list of subscribers to the resource 'resid'.
source code
 
get_message_id(self, rcpt, modtime=None)
Generate a predictable, but sufficiently unique message ID.
source code
 
send(self, torcpts, ccrcpts)
Send message to recipients.
source code
 
get_text_width(self, text) source code
 
obfuscate_email(self, text)
Obfuscate text when show_email_addresses is disabled in config.
source code

Inherited from notification.NotifyEmail: add_headers, encode_header, format_header, get_smtp_address

Inherited from notification.Notify: begin_send, finish_send

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  template_name = 'ticket_notify_email.txt'
hash(x)
  from_email = 'trac+ticket@localhost'
  COLS = 75

Inherited from notification.NotifyEmail: addrsep_re, nodomaddr_re, subject

Properties

Inherited from object: __class__

Method Details

__init__(self, env)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

notify(self, ticket, newticket=True, modtime=None)

source code 
Send ticket change notification e-mail (untranslated)
Overrides: notification.Notify.notify

get_recipients(self, tktid)

source code 

Return a pair of list of subscribers to the resource 'resid'.

First list represents the direct recipients (To:), second list represents the recipients in carbon copy (Cc:).

Overrides: notification.Notify.get_recipients
(inherited documentation)

send(self, torcpts, ccrcpts)

source code 
Send message to recipients.
Overrides: notification.Notify.send
(inherited documentation)

obfuscate_email(self, text)

source code 
Obfuscate text when show_email_addresses is disabled in config. Obfuscation happens once per email, regardless of recipients, so cannot use permission-based obfuscation.