def notifyModerators(self, moderators, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     article.putHeader("To", ", ".join(moderators))
     return smtp.sendEmail(
         "twisted@" + socket.gethostname(), moderators, article.body, dict(article.headers.values())
     )
Example #2
0
 def notifyModerator(self, moderator, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     print 'To is ', moderator
     article.putHeader('To', moderator)
     return smtp.sendEmail(self.mailhost,
                           'twisted-news@' + socket.gethostname(),
                           moderator, article.body,
                           dict(article.headers.values()))
Example #3
0
 def notifyModerators(self, moderators, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     article.putHeader('To', ', '.join(moderators))
     return smtp.sendEmail(
         'twisted@' + socket.gethostname(),
         moderators,
         article.body,
         dict(article.headers.values())
     )
Example #4
0
 def notifyModerator(self, moderator, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     print 'To is ', moderator
     article.putHeader('To', moderator)
     return smtp.sendEmail(
         self.mailhost,
         'twisted-news@' + socket.gethostname(),
         moderator,
         article.body,
         dict(article.headers.values())
     )