[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add NNTP support to mailer.py

From: Lars Gullik Bjønnes <lgb_at_tandberg.com>
Date: Thu, 16 Apr 2009 20:13:38 +0200

[[[

Add NNTP sending capabilities to mailer.py.

* tools/hook-scripts/mailer/mailer.conf.example: Add example config
  for nntp_hostname and to_group.

* tools/hook-scripts/mailer/mailer.py:
  (class MailedOutput): Rename to MessageOutput.
  (MailedOutput.mail_headers): Rename to message_headers.
  (MessageOutput.start): Add parsing of to_group.
  (MessageOutput.message_headers): Add setup of the "Newsgroups:"
   header.
  (class SMTPOutput): Rename to SMTPAndNNTPOutput.
  (SMTPAndNNTPOutput.__init__): New function.
  (SMTPAndNNTPOutput.start): Use class MessageOutput and
   message_headers.
  (SMTPAndNNTPOutput.finish): Conditionalize mail/news sending based
   on provided configuration.
  (class PipeOutput): Use class MessageOutput and message_headers.
  (class Messenger): Use SMTPAndNNTPOutput as messenger if either
   smtp_hostname or nntp_hostname is set.

]]]

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1751999

[[[

Add NNTP sending capabilities to mailer.py.

* tools/hook-scripts/mailer/mailer.conf.example: Add example config
  for nntp_hostname and to_group.

* tools/hook-scripts/mailer/mailer.py:
  (class MailedOutput): Rename to MessageOutput.
  (MailedOutput.mail_headers): Rename to message_headers.
  (MessageOutput.start): Add parsing of to_group.
  (MessageOutput.message_headers): Add setup of the "Newsgroups:"
   header.
  (class SMTPOutput): Rename to SMTPAndNNTPOutput.
  (SMTPAndNNTPOutput.__init__): New function.
  (SMTPAndNNTPOutput.start): Use class MessageOutput and
   message_headers.
  (SMTPAndNNTPOutput.finish): Conditionalize mail/news sending based
   on provided configuration.
  (class PipeOutput): Use class MessageOutput and message_headers.
  (class Messenger): Use SMTPAndNNTPOutput as messenger if either
   smtp_hostname or nntp_hostname is set.

]]]

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1751999

Received on 2009-04-17 02:28:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.