[[[
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