def mail_from_name(self, do_encode=True):
     addr = self.context.from_addr
     name = parseaddr(addr)[0] or addr
     if do_encode:
         return encode(name, self.getMailingList())
     else:
         return name
Example #2
0
 def mail_from_name(self, do_encode=True):
     addr = self.context.from_addr
     name = parseaddr(addr)[0] or addr
     if do_encode:
         return encode(name, self.getMailingList())
     else:
         return name
Example #3
0
 def body(self):
     # XXX: We need to make this smarter to use blockquote for quotes
     # create html links for urls, and filter out email addresses of
     # portal/list members. Do we want to filter email addresses of
     # non-members?
     return obfct_de(
         escape(encode(self.context.body, self.getMailingList())))
 def listDescription(self):
     """The Description of the list"""
     ml = self.getMailingList()
     if ml is not None:
         return encode(ml.description, ml)
     return ''
Example #5
0
 def Description(self):
     """An encoded description"""
     return encode(self.body[:50] + ' ...', self)
Example #6
0
 def Title(self):
     """An encoded title"""
     return obfct(encode(self.title, self))
 def listAddress(self):
     """The list address"""
     ml = self.getMailingList()
     if ml is not None:
         return obfct_de(encode(ml.mailto, ml))
     return _(u'No address')
 def listDescription(self):
     """The Description of the list"""
     ml = self.getMailingList()
     if ml is not None:
         return encode(ml.description, ml)
     return ''
Example #9
0
 def address(self):
     if not self.context.mailto:
         return u''
     return obfct_de(encode(self.context.mailto, self.context))
 def Description(self):
     return encode(self.context.description, self.context)
 def subject(self):
     return encode(self.context.subject, self.getMailingList())
 def body(self):
     # XXX: We need to make this smarter to use blockquote for quotes
     # create html links for urls, and filter out email addresses of
     # portal/list members. Do we want to filter email addresses of
     # non-members?
     return obfct_de(escape(encode(self.context.body, self.getMailingList())))
 def subject(self):
     return obfct_de(escape(encode(self.context.subject, self.getMailingList())))
 def title(self):
     return encode(self.context.title, self.getMailingList())
 def name(self):
     return encode(self.context.title, self.context)
 def address(self):
     if not self.context.mailto:
         return u''
     return obfct_de(encode(self.context.mailto, self.context))
 def listAddress(self):
     """The list address"""
     ml = self.getMailingList()
     if ml is not None:
         return obfct_de(encode(ml.mailto, ml))
     return _(u'No address')
Example #18
0
 def subject(self):
     return encode(self.context.subject, self.getMailingList())
Example #19
0
 def title(self):
     return encode(self.context.title, self.getMailingList())
Example #20
0
 def name(self):
     return encode(self.context.title, self.context)
Example #21
0
 def subject(self):
     return obfct_de(
         escape(encode(self.context.subject, self.getMailingList())))
 def Title(self):
     """An encoded title"""
     return obfct(encode(self.title, self))
 def Description(self):
     """An encoded description"""
     return encode(self.body[:50] + " ...", self)
Example #24
0
 def Description(self):
     return encode(self.context.description, self.context)