updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qmail / qmail-1.03-rfc2821.patch
blob6102a947d980283defe834b0fa15f2b934ea1d62
1 diff -u --new-file qmail-1.03-orig/qmail-remote.c qmail-1.03/qmail-remote.c
2 --- qmail-1.03-orig/qmail-remote.c 2006-03-27 16:25:18.000000000 -0300
3 +++ qmail-1.03/qmail-remote.c 2006-03-27 16:26:55.000000000 -0300
4 @@ -231,7 +231,9 @@
5 int i;
6 stralloc slop = {0};
8 - if (smtpcode() != 220) quit("Z Connected to "," but greeting failed");
9 + code = smtpcode();
10 + if (code >= 500) quit("DConnected to "," but greeting failed");
11 + if (code != 220) quit("ZConnected to "," but greeting failed");
13 substdio_puts(&smtpto,"EHLO ");
14 substdio_put(&smtpto,helohost.s,helohost.len);
15 @@ -244,7 +246,9 @@
16 substdio_put(&smtpto,helohost.s,helohost.len);
17 substdio_puts(&smtpto,"\r\n");
18 substdio_flush(&smtpto);
19 - if (smtpcode() != 250) quit("ZConnected to "," but my name was rejected");
20 + code = smtpcode();
21 + if (code >= 500) quit("DConnected to "," but my name was rejected");
22 + if (code != 250) quit("ZConnected to "," but my name was rejected");
24 i = 0;
25 while((i += str_chr(smtptext.s+i,'\n') + 1) && (i+14 < smtptext.len) &&
26 Subdirectorios comunes: qmail-1.03-orig/qmail-rhinit y qmail-1.03/qmail-rhinit