Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#15 Too early SMTP conn w/ false timeout on strict SMTP relays

open
nobody
None
5
2004-10-07
2004-09-24
No

Hello,

I have encountered a situation when the SMTP
relay has the connection timeout set to 2 minutes,
which sometimes caused a timeout problem with
syncmail because of a long commit message (long as in
long-to-type). This was happening because syncmail
used to make an SMTP connection before any message
is actually prepared, and if it takes the user to type it
long enough, it'll time out. So, the attached patch fixes
the problem by moving the connection establishing
down the code after the message is actually ready.

I also udated the comments on top to explicitly mention
the requirement for Python 2.2.2 rather than 2.2 because
fromataddr appeared only in 2.2.2.

Thanks.

Discussion

  • The pacth that fixes the problem.

     
    Attachments
    • summary: Too early SMPT conn w/ false timeout on strict SMPT relays --> Too early SMTP conn w/ false timeout on strict SMTP relays