From: SourceForge.net <no...@so...> - 2003-06-27 18:54:27
|
Bugs item #760429, was opened at 2003-06-25 13:56 Message generated for change (Comment added) made by krusch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=760429&group_id=47611 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Hohmuth (rotofoil) Assigned to: Nobody/Anonymous (nobody) Summary: Error when mail server is unreachable Initial Comment: When the SMTP server is unreacheable, `syncmail' generates an error message like the one appended below. I suggest adding another mail-sending mode that queues the mail using /usr/sbin/sendmail (instead of delivering it via SMTP). Michael Message: Traceback (most recent call last): Message: File "/home/hohmuth/local/var/cvs/CVSROOT/syncmail", line 481, in ? Message: main() Message: File "/home/hohmuth/local/var/cvs/CVSROOT/syncmail", line 474, in main Message: dolinks, specs[0], cvshost, repo) Message: File "/home/hohmuth/local/var/cvs/CVSROOT/syncmail", line 341, in blast_mail Message: conn.connect(MAILHOST, MAILPORT) Message: File "/soft/stow/Python-2.2.2/lib/python2.2/smtplib.py", line 290, in connect Message: raise socket.error, msg Message: socket.error: (79, 'A remote host refused an attempted connect operation.') ---------------------------------------------------------------------- Comment By: Klaus Johannes Rusch (krusch) Date: 2003-06-27 20:48 Message: Logged In: YES user_id=365576 I believe the enhancement to add an MTA option has been discussed for cvs-syncmail.py and should be fairly simply to implement. The Perl version of cvs-syncmail at http://cvs-syncmail- pl.sourceforge.net/ already has this: -m hostname --mailhost hostname The hostname of an available SMTP server. The default is the value of the environment variable MAILHOST, or the environment variable SMTP_SERVER, or 'localhost'. --mta command Command line to invoke an external mail transfer agent (MTA), such as sendmail. The program should expect a message with SMTP headers and an unescaped message body on stdin. This option overrides any mailhost settings. It would by nice if the Python implementation chose the same parameter format, if possible. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450019&aid=760429&group_id=47611 |