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
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 ''
def Description(self): """An encoded description""" return encode(self.body[:50] + ' ...', self)
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 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 subject(self): return obfct_de( escape(encode(self.context.subject, self.getMailingList())))
def Description(self): """An encoded description""" return encode(self.body[:50] + " ...", self)