SMTP-Client: give more time while sending the message
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 5 Feb 2012 21:17:34 +0000 (22:17 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 5 Feb 2012 21:17:34 +0000 (22:17 +0100)
  - discovered while sending a mail from the US and A to the Aussis: need more time.

citadel/modules/smtp/serv_smtpeventclient.c

index d0e3a216bfbaad05c78abc5f928274a9e6338fd7..9114746685ec2b3d6d07b9962b45d87497c4e347 100644 (file)
@@ -561,7 +561,7 @@ void SMTPSetTimeout(eNextState NextTCPState, SmtpOutMsg *Msg)
                        /* if we're sending a huge message,
                         * we need more time.
                         */
-                       Timeout += StrLength(Msg->msgtext) / 1024;
+                       Timeout += StrLength(Msg->msgtext) / 512;
                }
                break;
        case eReadMessage:
@@ -571,7 +571,7 @@ void SMTPSetTimeout(eNextState NextTCPState, SmtpOutMsg *Msg)
                         * some mailservers take a nap before accepting
                         * the message content inspection and such.
                         */
-                       Timeout += StrLength(Msg->msgtext) / 1024;
+                       Timeout += StrLength(Msg->msgtext) / 512;
                }
                break;
        case eSendDNSQuery: