pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46679: [PATCH] mail/smtpfeed 1.20



>Number:         46679
>Category:       pkg
>Synopsis:       Update mail/smtpfeed to 1.20
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 10 03:20:01 +0000 2012
>Originator:     Makoto Fujiwara
>Release:        NetBSD 6.0_BETA2
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD t-105.i.ki.nu 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) amd64
Architecture: x86_64
Machine: amd64
>Description:
        Bump smtpfeed version from 1.18 to 1.20
        smtpfeed-1.18 (2002/03) smtpfeed-1.20(2003/08)
        with the following LICENSE= line.
        LICENSE=        original-bsd
>How-To-Repeat:
        (cd /usr/pkgsrc/mail/smtpfeed; make package)
>Fix:

Index: mail/smtpfeed/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/smtpfeed/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- mail/smtpfeed/Makefile      12 Jun 2012 15:45:58 -0000      1.34
+++ mail/smtpfeed/Makefile      10 Jul 2012 03:11:35 -0000
@@ -1,13 +1,13 @@
 # $NetBSD: Makefile,v 1.34 2012/06/12 15:45:58 wiz Exp $
 
-DISTNAME=      smtpfeed-1.18
-PKGREVISION=   1
+DISTNAME=      smtpfeed-1.20
 CATEGORIES=    mail
 MASTER_SITES=  ftp://sh.wide.ad.jp/WIDE/free-ware/smtpfeed/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://member.wide.ad.jp/wg/smtp/smtpfeed.html
 COMMENT=       SMTP Fast Exploding External Deliverer for Sendmail
+LICENSE=       original-bsd
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
Index: mail/smtpfeed/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/mail/smtpfeed/distinfo,v
retrieving revision 1.7
diff -u -r1.7 distinfo
--- mail/smtpfeed/distinfo      23 Jul 2006 15:00:41 -0000      1.7
+++ mail/smtpfeed/distinfo      10 Jul 2012 03:11:35 -0000
@@ -1,17 +1,17 @@
 $NetBSD: distinfo,v 1.7 2006/07/23 15:00:41 taca Exp $
 
-SHA1 (smtpfeed-1.18.tar.gz) = c5875be954a12035658c57dfca0d032609e4e057
-RMD160 (smtpfeed-1.18.tar.gz) = cb477e5e3de9cb422aa2a3b612486ad819c8f8bf
-Size (smtpfeed-1.18.tar.gz) = 140293 bytes
+SHA1 (smtpfeed-1.20.tar.gz) = f055984526865200339557e5fa809f968decbcfd
+RMD160 (smtpfeed-1.20.tar.gz) = aa3c586f2c5b2907caa0d7a50257c4e5273cc25d
+Size (smtpfeed-1.20.tar.gz) = 141144 bytes
 SHA1 (patch-aa) = e0ba34dd816d349ecedbc2a76cef9e70b396c655
 SHA1 (patch-ac) = d5b33823fa1ad9910ec97719f47c4265acf1dccc
 SHA1 (patch-ad) = 4ecd4ae9ba72997ed617158862e8801a9977472a
-SHA1 (patch-ae) = 33f2fc505db76c9fcb5e0b62b34797256c95db6b
+SHA1 (patch-ae) = 7e97d0bcfb76221a1b0d4a2264eba8169ce8687c
 SHA1 (patch-af) = 2fd2dfa124a0ab842b739e85998e4b4a32e5eb71
 SHA1 (patch-ag) = a0956209ee563f73f3398d0fc0ee69cb57240cd5
 SHA1 (patch-ah) = d53b829ff765b7d555a6dda743a9496497679aa7
 SHA1 (patch-ai) = 2e29b595c1a946ea68186886a80bd5371b697e4e
 SHA1 (patch-aj) = f26af3988350e0df29fa7e97ea7c308ac6699125
 SHA1 (patch-ak) = 206286eb6872876fc4b67a6ad413229124b8bb80
-SHA1 (patch-al) = 6b8fbaf7a4882e6f179627b4e42ee5bf2e3964c3
+SHA1 (patch-al) = 9a4674777b1a7fef6f29c6e5aa1b7e04c1eb2f87
 SHA1 (patch-am) = 63c35492d1cd9f01e9de901b7816e6f5d3e28c91
Index: mail/smtpfeed/patches/patch-ae
===================================================================
RCS file: /cvsroot/pkgsrc/mail/smtpfeed/patches/patch-ae,v
retrieving revision 1.1
diff -u -r1.1 patch-ae
--- mail/smtpfeed/patches/patch-ae      23 Jul 2006 15:00:41 -0000      1.1
+++ mail/smtpfeed/patches/patch-ae      10 Jul 2012 03:11:35 -0000
@@ -1,7 +1,12 @@
-$NetBSD: patch-ae,v 1.1 2006/07/23 15:00:41 taca Exp $
+$NetBSD$
 
---- dns.c.orig 2002-03-15 11:03:39.000000000 +0900
-+++ dns.c
+(1) Add some prototype for static functions
+(2) convert log -> mylog
+     -    log(LOG_DEBUG, "start getting MXRRs with caching");
+     + mylog(LOG_DEBUG, "start getting MXRRs with caching");
+
+--- dns.c.orig 2003-08-20 14:13:03.000000000 +0900
++++ dns.c      2012-06-28 18:39:20.000000000 +0900
 @@ -79,6 +79,19 @@
  # define RES_INSECURE1        0x00000400      /* type 1 security disabled */
  #endif
@@ -545,25 +550,25 @@
                }
        }
  #endif
-@@ -1070,7 +1081,7 @@
+@@ -1069,7 +1080,7 @@
+ #endif
  
-       remove_query(qcp);
        if (cnf.debug & DEBUG_DNS)
 -      log(LOG_DEBUG, "DNS: got answer, removing %s type %d",
 +      mylog(LOG_DEBUG, "DNS: got answer, removing %s type %d",
                qcp->stat->name, qcp->type);
  
        b  = (u_char *) answer;
-@@ -1087,7 +1098,7 @@
+@@ -1080,7 +1091,7 @@
        if (hp->aa == 0 && hp->ra == 0) {
                /* this nameserver does not support recursion */
                if (cnf.debug & DEBUG_DNS)
 -              log(LOG_DEBUG, "non recursive ns=%d", qcp->ns);
 +              mylog(LOG_DEBUG, "non recursive ns=%d", qcp->ns);
                qcp->badns |= 1<<qcp->ns;
-               return;
+               return; /* keep waiting for a reply from other NS */
        }
-@@ -1097,7 +1108,7 @@
+@@ -1098,7 +1109,7 @@
        {
                /* host not found */
                if (cnf.debug & DEBUG_DNS)
@@ -572,7 +577,7 @@
  
                qcp->stat->rr_noex = RR_ALL;
                return;
-@@ -1108,7 +1119,7 @@
+@@ -1109,7 +1120,7 @@
        {
                /* no data, other data exist */
                if (cnf.debug & DEBUG_DNS)
@@ -581,7 +586,7 @@
  
                if (qcp->type == T_ANY)
                {
-@@ -1152,7 +1163,7 @@
+@@ -1153,7 +1164,7 @@
        }
  
        if (cnf.debug & DEBUG_DNS)
@@ -590,7 +595,7 @@
  
        while (qdcount--)
        {
-@@ -1160,7 +1171,7 @@
+@@ -1161,7 +1172,7 @@
                ap += n;
                if (ap + INT16SZ*2 > eom)
                {
@@ -599,7 +604,7 @@
                        return;
                }
                GETSHORT(type, ap);
-@@ -1180,7 +1191,7 @@
+@@ -1181,7 +1192,7 @@
                ap += n;
                if (ap + INT16SZ*3 + INT32SZ > eom)
                {
@@ -608,7 +613,7 @@
                        return;
                }
                GETSHORT(type, ap);
-@@ -1189,13 +1200,13 @@
+@@ -1190,13 +1201,13 @@
                GETSHORT(n, ap);
                if (ap + n > eom)
                {
@@ -624,7 +629,7 @@
                        ap += n;
                        continue;
                }
-@@ -1229,7 +1240,7 @@
+@@ -1230,7 +1241,7 @@
                                        return;
  
                                if (cnf.debug & DEBUG_DNS)
@@ -633,7 +638,7 @@
                                        nbuf, nbuf2, pref);
  
                                qrp->rr_got |= RR_MX;
-@@ -1268,7 +1279,7 @@
+@@ -1269,7 +1280,7 @@
                        {
                                addr_found = 1;
                                if (cnf.debug & DEBUG_DNS)
@@ -642,7 +647,7 @@
                                        qcp->stat->name);
  
                                qcp->stat->rr_got |= RR_AAAA;
-@@ -1278,7 +1289,7 @@
+@@ -1279,7 +1290,7 @@
                                /* may be address for an alias */
                                cname_found = 0;
                                if (cnf.debug & DEBUG_DNS)
@@ -651,7 +656,7 @@
                                        nbuf, qcp->stat->name);
                                qrp = hash_query_lookup(nbuf, NULL);
                                if (qrp == NULL)
-@@ -1309,7 +1320,7 @@
+@@ -1310,7 +1321,7 @@
                        {
                                addr_found = 1;
                                if (cnf.debug & DEBUG_DNS)
@@ -660,7 +665,7 @@
                                        qcp->stat->name);
  
                                qcp->stat->rr_got |= RR_A;
-@@ -1319,7 +1330,7 @@
+@@ -1320,7 +1331,7 @@
                                cname_found = 0;
                                /* may be address for an alias */
                                if (cnf.debug & DEBUG_DNS)
@@ -669,7 +674,7 @@
                                        nbuf, qcp->stat->name);
                                qrp = hash_query_lookup(nbuf, NULL);
                                if (qrp == NULL)
-@@ -1342,13 +1353,13 @@
+@@ -1343,13 +1354,13 @@
                                return;
  
                        if (cnf.debug & DEBUG_DNS)
@@ -685,7 +690,7 @@
                                        "CNAME %s points back itself (q=%d)",
                                        nbuf, qcp->type);
                                return;
-@@ -1376,7 +1387,7 @@
+@@ -1377,7 +1388,7 @@
                                bzero(qrp2, sizeof(struct dns_stat));
                                if (qrp2 == NULL)
                                {
@@ -694,7 +699,7 @@
                                                "out of memory (dns_query)");
                                        return;
                                }
-@@ -1441,13 +1452,13 @@
+@@ -1442,13 +1453,13 @@
                ap += INT16SZ + INT16SZ + INT32SZ;
                if (ap + INT16SZ > eom)
                {
@@ -710,7 +715,7 @@
                        return;
                }
                ap += n;
-@@ -1460,13 +1471,13 @@
+@@ -1461,13 +1472,13 @@
                ap += INT16SZ + INT16SZ + INT32SZ;
                if (ap + INT16SZ > eom)
                {
@@ -726,7 +731,7 @@
                        return;
                }
                ap += n;
-@@ -1481,7 +1492,7 @@
+@@ -1482,7 +1493,7 @@
                ap += n;
                if (ap + INT16SZ*3 + INT32SZ > eom)
                {
@@ -735,7 +740,7 @@
                        return;
                }
                GETSHORT(type, ap);
-@@ -1490,13 +1501,13 @@
+@@ -1491,13 +1502,13 @@
                GETSHORT(addrsize, ap);
                if (ap + addrsize > eom)
                {
@@ -751,7 +756,7 @@
                        ap += addrsize;
                        continue;
                }
-@@ -1529,7 +1540,7 @@
+@@ -1530,7 +1541,7 @@
                }
  
                if (cnf.debug & DEBUG_DNS)
@@ -760,7 +765,7 @@
                        nbuf, type);
  
  #if FAKE_AR_CHECK
-@@ -1545,7 +1556,7 @@
+@@ -1546,7 +1557,7 @@
                if (!found)
                {
                        if (cnf.debug & DEBUG_DNS)
@@ -769,7 +774,7 @@
                        ap += addrsize;
                        continue;
                }
-@@ -1558,7 +1569,7 @@
+@@ -1559,7 +1570,7 @@
                        bzero(qrp, sizeof(struct dns_stat));
                        if (qrp == NULL)
                        {
@@ -778,7 +783,7 @@
                                return;
                        }
                        qrp->name = newstr(nbuf);
-@@ -1592,7 +1603,7 @@
+@@ -1593,7 +1604,7 @@
                                bzero(qrp, sizeof(struct dns_stat));
                                if (qrp == NULL)
                                {
@@ -787,7 +792,7 @@
                                                "out of memory (dns_query)");
                                        return;
                                }
-@@ -1605,20 +1616,20 @@
+@@ -1606,20 +1617,20 @@
                        if (cnf.inetdom & SMTP_V6 || cnf.v4v6fallback)
                        {
                                if (cnf.debug & DEBUG_DNS)
@@ -811,7 +816,7 @@
                                mxp->name);
                        make_query(qrp, T_A);
                        if (cnf.v4v6fallback)
-@@ -1653,7 +1664,7 @@
+@@ -1654,7 +1665,7 @@
                        continue;
  
                if (cnf.debug & DEBUG_DNS)
@@ -820,7 +825,7 @@
  
                offset = 0;
                needfindaddr = 0;
-@@ -1701,15 +1712,15 @@
+@@ -1702,15 +1713,15 @@
                {
                        struct mx *mxp;
  
@@ -839,7 +844,7 @@
                                        mxp->pref, mxp->weight);
                                mxp = mxp->next;
                        }
-@@ -1733,12 +1744,12 @@
+@@ -1734,12 +1745,12 @@
                        int found = 0;
  
                        if (cnf.debug & DEBUG_DNS)
@@ -854,7 +859,7 @@
                                if (mxp->host == NULL)
                                {
                                        /* no hosts, try next MX */
-@@ -1750,7 +1761,7 @@
+@@ -1751,7 +1762,7 @@
                                {
  /*
                                        if (cnf.debug & DEBUG_DNS)
@@ -863,7 +868,7 @@
                                                addrp->domain);
  */
  #ifdef INET6
-@@ -1763,10 +1774,9 @@
+@@ -1764,10 +1775,9 @@
  #endif
                                        {
                                                struct mx *gwmxp;
@@ -875,7 +880,7 @@
                                                if ((gwmxp = newmx(cnf.pgateway,
                                                                  -2, 0, dp, 0))
                                                    == NULL)
-@@ -1817,7 +1827,7 @@
+@@ -1818,7 +1828,7 @@
        if (mxpp == NULL)
        {
                if (cnf.debug & DEBUG_DNS)
@@ -884,7 +889,7 @@
                        newmxp->name, newmxp->pref);
  
                domp->firstmx = newmxp;
-@@ -1825,7 +1835,7 @@
+@@ -1826,7 +1836,7 @@
        else
        {
                if (cnf.debug & DEBUG_DNS)
@@ -893,7 +898,7 @@
                        newmxp->name, newmxp->pref,
                        mxpp->name, mxpp->pref);
  
-@@ -1856,14 +1866,14 @@
+@@ -1857,14 +1867,14 @@
        {
                /* already registered, drop lower one */
                if (cnf.debug & DEBUG_DNS)
@@ -910,7 +915,7 @@
  
                        if (mxp == dp->firstmx)
                                dp->firstmx = mxp->next;
-@@ -1873,7 +1883,7 @@
+@@ -1874,7 +1884,7 @@
                else
                {
                        if (cnf.debug & DEBUG_DNS)
@@ -919,7 +924,7 @@
  
                        return mxp;     /* do nothing */
                }
-@@ -1885,7 +1895,7 @@
+@@ -1886,7 +1896,7 @@
                mxp = (struct mx*)MALLOC(sizeof(struct mx));
                if (mxp == NULL)
                {
@@ -928,7 +933,7 @@
                        return NULL;
                }
                bzero(mxp, sizeof(struct mx));
-@@ -1922,7 +1932,7 @@
+@@ -1923,7 +1933,7 @@
        char msgbuf[MAXLINE], *mxname;
  
        if (cnf.debug & DEBUG_DNS)
@@ -937,7 +942,7 @@
                name, dp->name, offset, opt);
  
        if (!query_mx)
-@@ -1961,7 +1971,7 @@
+@@ -1962,7 +1972,7 @@
                        if (mxp == NULL)
                                return -1;
                        addinetaddress(mxp, AF_INET, sizeof(nsin.in.sin_addr),
@@ -946,7 +951,7 @@
                }
  #ifdef INET6
                else if (inet_pton(INET6, name + 1, &nsin.in6.sin6_addr) > 0)
-@@ -1973,7 +1983,7 @@
+@@ -1974,7 +1984,7 @@
                                return -1;
                        addinetaddress(mxp, AF_INET6,
                                sizeof(nsin.in6.sin6_addr),
@@ -955,7 +960,7 @@
                }
  #endif
                else
-@@ -1999,7 +2009,7 @@
+@@ -2000,7 +2010,7 @@
                qrp = qrp->cname;
  
        if (cnf.debug & DEBUG_DNS && cnamechain > 0)
@@ -964,7 +969,7 @@
  
        if (cnamechain >= CNAMELOOPMAX)
        {
-@@ -2009,7 +2019,7 @@
+@@ -2010,7 +2020,7 @@
        }
  
        if (cnf.debug & DEBUG_DNS)
@@ -973,7 +978,7 @@
                qrp->name, qrp->rr_timeout, qrp->rr_noex, qrp->rr_got);
  
        if (qrp == NULL || qrp->rr_timeout & RR_MX) {
-@@ -2044,7 +2054,7 @@
+@@ -2045,7 +2055,7 @@
                                return -1;
                }
                else
@@ -982,7 +987,7 @@
                                name, dp->name);
                return 0;
        }
-@@ -2089,12 +2099,12 @@
+@@ -2090,12 +2100,12 @@
                mxname = cmxp->name;
  #if 0
                if (cnf.debug & DEBUG_DNS)
@@ -997,7 +1002,7 @@
                                mxname);
                        if (!seenlocal || cmxp->pref < localpref)
                                localpref = cmxp->pref;
-@@ -2136,13 +2146,13 @@
+@@ -2137,13 +2147,13 @@
                        /* already registered, drop lower one */
  
                        if (cnf.debug & DEBUG_DNS)
@@ -1013,7 +1018,7 @@
                                mxp->pref = offset + cmxp->pref;
                                if (mxp == dp->firstmx)
                                        dp->firstmx = mxp->next;
-@@ -2220,6 +2230,7 @@
+@@ -2221,6 +2231,7 @@
        return 0;
  }
  
@@ -1021,7 +1026,7 @@
  show_query(t, b, e)
  u_char *t, *b, *e;
  {
-@@ -2246,13 +2257,13 @@
+@@ -2247,13 +2258,13 @@
                ap += n;
                if (ap + INT16SZ*2 > eom)
                {
@@ -1037,7 +1042,7 @@
                        t, nbuf, class, type, ntohs(hp->rcode));
        }
  
-@@ -2267,7 +2278,7 @@
+@@ -2268,7 +2279,7 @@
                ap += n;
                if (ap + INT16SZ*3 + INT32SZ > eom)
                {
@@ -1046,7 +1051,7 @@
                        return;
                }
                GETSHORT(class, ap);
-@@ -2276,13 +2287,13 @@
+@@ -2277,13 +2288,13 @@
                GETSHORT(n, ap);
                if (ap + n > eom)
                {
@@ -1062,7 +1067,7 @@
                        ap += n;
                        continue;
                }
-@@ -2293,20 +2304,20 @@
+@@ -2294,20 +2305,20 @@
                                break;
                        ap += n;
                        if (cnf.debug & DEBUG_DNS)
Index: mail/smtpfeed/patches/patch-al
===================================================================
RCS file: /cvsroot/pkgsrc/mail/smtpfeed/patches/patch-al,v
retrieving revision 1.1
diff -u -r1.1 patch-al
--- mail/smtpfeed/patches/patch-al      23 Jul 2006 15:00:41 -0000      1.1
+++ mail/smtpfeed/patches/patch-al      10 Jul 2012 03:11:35 -0000
@@ -1,7 +1,7 @@
 $NetBSD: patch-al,v 1.1 2006/07/23 15:00:41 taca Exp $
 
---- smtp.c.orig        2002-02-23 19:20:05.000000000 +0900
-+++ smtp.c
+--- smtp.c.orig        2003-08-21 16:04:44.000000000 +0900
++++ smtp.c     2012-06-28 18:47:24.000000000 +0900
 @@ -49,32 +49,42 @@
  static        int FirstRead, FirstWrite;
  static        int Terminate, NewTransCheck, NeedTrimDomain, MoreFreeSlot;
@@ -82,7 +82,7 @@
 -                              log(LOG_INFO,
 +                              mylog(LOG_INFO,
                                        "recipients/transaction changed to 1");
-                               cnf.rcpts_trans == 1;
+                               cnf.rcpts_trans = 1;
                        }
 @@ -207,15 +217,53 @@
        resource_usage("finalstatus done");
@@ -145,7 +145,7 @@
        time_t tout;
        char *name;
  } state_tbl[] = {
-@@ -356,13 +404,13 @@
+@@ -357,13 +405,13 @@
                if (rcptp->domain == NULL)
                {
                        rcptp->stat = RCPT_DONE;
@@ -161,7 +161,7 @@
                        continue;
                }
        }
-@@ -375,7 +423,7 @@
+@@ -376,7 +424,7 @@
                if (domp->rcpt_top == NULL)
                        continue;
                if (cnf.debug & DEBUG_TRANS)
@@ -170,7 +170,7 @@
                if (wdomp == NULL)
                        env.work_domain = domp;
                else
-@@ -395,7 +443,7 @@
+@@ -396,7 +444,7 @@
                {
                        /* all recipients had been processed */
                        if (cnf.debug & DEBUG_CONNECT)
@@ -179,7 +179,7 @@
                        all_done = 1;
                        for (i = 0; i < cnf.sd_max; i++)
                        {
-@@ -424,7 +472,7 @@
+@@ -425,7 +473,7 @@
                        }
  
                        if (cnf.debug & DEBUG_TRANS)
@@ -188,7 +188,7 @@
                                in_use, max_sock, sti.minsock);
  
                        if (in_use > (max_sock - sti.minsock))
-@@ -439,7 +487,7 @@
+@@ -440,7 +488,7 @@
                                        if (connwork[i].host->state != 
STAT_SENT)
                                                continue;
                                        if (cnf.debug & DEBUG_CONNECT)
@@ -197,7 +197,7 @@
                                                connwork[i].seq,
                                                connwork[i].socket);
                                        smtp_quit_s(&connwork[i]);
-@@ -458,7 +506,7 @@
+@@ -459,7 +507,7 @@
                                if (!connwork[i].reuse)
                                        break;
                                if (cnf.debug & DEBUG_CONNECT)
@@ -206,7 +206,7 @@
                                        connwork[i].seq,
                                        connwork[i].socket);
                                smtp_quit_s(&connwork[i]);
-@@ -479,7 +527,7 @@
+@@ -480,7 +528,7 @@
                        }
  #if 1
                        if (cnf.debug & DEBUG_TRANS)
@@ -215,7 +215,7 @@
                                num_trans, num_sock);
  #endif
                        if (new_transaction() < 0)
-@@ -514,7 +562,7 @@
+@@ -515,7 +563,7 @@
                if (all_done && fds < 0)
                {
                        if (cnf.debug & DEBUG_CONNECT)
@@ -224,7 +224,7 @@
  #if 0
                        dump_internal();
  #endif
-@@ -523,7 +571,7 @@
+@@ -524,7 +572,7 @@
  
                if (fds < 0)    /* XXX */
                {
@@ -233,7 +233,7 @@
                        if (bad_state++ > 5)
                        {
                                markstatus(env.rcpt_list, SMTP_TEMPFAIL(51),
-@@ -561,12 +609,12 @@
+@@ -562,12 +610,12 @@
                {
                        /* time up */
                        forced_terminate();
@@ -248,7 +248,7 @@
                                rc, fds, errno);
                        sleep(1);
                }
-@@ -594,7 +642,7 @@
+@@ -595,7 +643,7 @@
        { 
  #if 1
                if (cnf.debug & DEBUG_TRANS)
@@ -257,7 +257,7 @@
  #endif
                /* first time for the domain? */
  #if 1
-@@ -615,7 +663,7 @@
+@@ -616,7 +664,7 @@
                      || domp->curmx->host->addr == NULL))))
                {
                        if (domp->curmx->host == NULL)
@@ -266,7 +266,7 @@
                                        domp->curmx->name, domp->name);
                        else
                        {
-@@ -697,7 +745,7 @@
+@@ -698,7 +746,7 @@
        }
  #if 1
        if (cnf.debug & DEBUG_TRANS)
@@ -275,7 +275,7 @@
  #endif
        NewTransCheck = 0;
        return -1;      /* no new transaction */
-@@ -721,7 +769,7 @@
+@@ -722,7 +770,7 @@
  
                snprintf(msgbuf, sizeof(msgbuf),
                        "No address known for %s", conn->host->name);
@@ -284,7 +284,7 @@
  
                rcode = SMTP_TEMPFAIL(52);
                if (cnf.absentAok)
-@@ -798,7 +846,7 @@
+@@ -799,7 +847,7 @@
                        /* timeout! */
                        sti.ntimeout++;
                        if (cnf.debug & DEBUG_CONNECT)
@@ -293,7 +293,7 @@
                                conn->socket, STATE(st));
                        if (st == STAT_DTERMSENT)
                        {
-@@ -814,7 +862,7 @@
+@@ -815,7 +863,7 @@
                if (FD_ISSET(conn->socket, w_fds))
                {
                        if (cnf.debug & DEBUG_EVENT)
@@ -302,7 +302,7 @@
                                conn->seq, conn->socket, STATE(st));
                        if (state_tbl[st].send != NULL)
                        {
-@@ -825,14 +873,14 @@
+@@ -826,14 +874,14 @@
                        if (conn->host == NULL)
                        {
                                if (cnf.debug & DEBUG_EVENT)
@@ -319,7 +319,7 @@
                                        conn->seq, conn->socket, STATE(st),
                                        STATE(conn->host->state));
                        }
-@@ -841,7 +889,7 @@
+@@ -842,7 +890,7 @@
                if (FD_ISSET(conn->socket, r_fds))
                {
                        if (cnf.debug & DEBUG_EVENT)
@@ -328,7 +328,7 @@
                                conn->seq, conn->socket, STATE(st));
                        if (state_tbl[st].recv != NULL)
                        {
-@@ -852,14 +900,14 @@
+@@ -853,14 +901,14 @@
                        if (conn->host == NULL)
                        {
                                if (cnf.debug & DEBUG_EVENT)
@@ -345,7 +345,16 @@
                                        conn->seq, conn->socket, STATE(st),
                                        STATE(conn->host->state));
                        }
-@@ -1041,7 +1089,7 @@
+@@ -885,7 +933,7 @@
+       if (rcptp == NULL)
+       {
+               if (cnf.debug & DEBUG_TRANS)
+-              log(LOG_DEBUG, "markstatus: rcptp is NULL");
++              mylog(LOG_DEBUG, "markstatus: rcptp is NULL");
+               return;
+       }
+ 
+@@ -1047,7 +1095,7 @@
                {
                        /* buffer may be full */
                        strcat(addrbuf+addrlen, ",(more...)");
@@ -354,7 +363,16 @@
                                sti.nsent, sti.ndeferred, sti.nnsfailed,
                                sti.nsmtpfailed, sti.nrcpt, hostname,
                                addrbuf, proto, delay, rcode,
-@@ -1066,7 +1114,7 @@
+@@ -1069,7 +1117,7 @@
+                       {
+                               rcptp->stat = RCPT_RETRY;
+                               if (cnf.debug & DEBUG_TRANS)
+-                              log(LOG_DEBUG, "tempfail; retry: %s",
++                              mylog(LOG_DEBUG, "tempfail; retry: %s",
+                                       rcptp->address);
+                       }
+                       else if (!Terminate && mxp != NULL
+@@ -1079,7 +1127,7 @@
                        {
                                rcptp->stat = RCPT_RETRY;
                                if (cnf.debug & DEBUG_TRANS)
@@ -363,7 +381,7 @@
                                        rcptp->address);
                        }
                        else
-@@ -1074,7 +1122,7 @@
+@@ -1087,7 +1135,7 @@
                                sti.ndeferred++;
                                rcptp->stat = RCPT_DONE;
                                if (cnf.debug & DEBUG_TRANS)
@@ -372,7 +390,7 @@
                                        rcptp->address);
                        }
                }
-@@ -1103,7 +1151,7 @@
+@@ -1116,7 +1164,7 @@
        }
        if (addrlen > 0)
        {
@@ -381,7 +399,7 @@
                        sti.nsent, sti.ndeferred, sti.nnsfailed,
                        sti.nsmtpfailed, sti.nrcpt, hostname,
                        addrbuf, proto, delay, rcode,
-@@ -1143,7 +1191,7 @@
+@@ -1156,7 +1204,7 @@
  
  #if 1
        if (cnf.debug & DEBUG_TRANS)
@@ -390,7 +408,7 @@
                num_trans, num_sock, max_sock, sti.minsock);
  #endif
        if (num_trans > (max_sock - sti.minsock))
-@@ -1158,7 +1206,7 @@
+@@ -1171,7 +1219,7 @@
  
  #if 1
        if (cnf.debug & DEBUG_TRANS)
@@ -399,7 +417,7 @@
  #endif
  
        if (rcptp->domain->curmx->host->state == STAT_SENT)
-@@ -1170,7 +1218,7 @@
+@@ -1183,7 +1231,7 @@
                                break;
                }
                if (cnf.debug & DEBUG_TRANS)
@@ -408,7 +426,7 @@
        }
        else
        {
-@@ -1190,7 +1238,7 @@
+@@ -1203,7 +1251,7 @@
        {
  #if 0
                if (cnf.debug & DEBUG_TRANS)
@@ -417,7 +435,7 @@
  #endif
                /* sleep (1); */
                return NULL;    /* XXX socket slot is full */
-@@ -1199,7 +1247,7 @@
+@@ -1212,7 +1260,7 @@
        sti.ntrans++;
  
        if (cnf.debug & DEBUG_TRANS)
@@ -426,7 +444,7 @@
                sti.ntrans, rcptp->address, i);
  
        /* initialize transaction */
-@@ -1230,7 +1278,7 @@
+@@ -1246,7 +1294,7 @@
                domp = mxp->domain;
                if (domp == NULL)
                {
@@ -435,7 +453,7 @@
                                mxp->name);
                        goto next_domain;
                }
-@@ -1253,7 +1301,7 @@
+@@ -1269,7 +1317,7 @@
                                if (rcpts + 1 > cnf.rcpts_trans)
  #else
                                if (cnf.debug & DEBUG_TRANS)
@@ -444,7 +462,7 @@
                                        rcptp2->domain->name,
                                        rcptp2->domain->rcpts,
                                        rcpts);
-@@ -1266,7 +1314,7 @@
+@@ -1282,7 +1330,7 @@
                                }
                                rcpts++;
                                if (cnf.debug & DEBUG_TRANS)
@@ -453,7 +471,7 @@
                                        sti.ntrans, rcptp2->address);
                                rcptp2->stat = RCPT_WORK;
                                rcptp2->chain = NULL;
-@@ -1306,7 +1354,7 @@
+@@ -1323,7 +1371,7 @@
  #endif
  
        if (cnf.debug & DEBUG_TRANS)
@@ -462,7 +480,7 @@
  
        NewTransCheck = 1;              /* do not skip new_transaction() */
        env.work_dom_ptr = NULL;        /* retry from the top of list */
-@@ -1369,7 +1417,7 @@
+@@ -1388,7 +1436,7 @@
                        if (domp->curmx != NULL)
                        {
                                if (cnf.debug & DEBUG_TRANS)
@@ -471,7 +489,7 @@
                                        conn->seq, domp->curmx->name);
                        }
                }
-@@ -1410,7 +1458,7 @@
+@@ -1429,7 +1477,7 @@
        num_trans--;
  }
  
@@ -480,7 +498,7 @@
  trim_rcpts(domp)
  struct domain *domp;
  {
-@@ -1427,7 +1475,7 @@
+@@ -1446,7 +1494,7 @@
                {
                        /* remove recipient from working chain */
                        if (cnf.debug & DEBUG_TRANS)
@@ -489,7 +507,7 @@
                                rcptp->address);
                        if (rcptp == domp->rcpt_top)
                        {
-@@ -1449,7 +1497,7 @@
+@@ -1469,7 +1517,7 @@
                NeedTrimDomain = 1;
  }
  
@@ -498,7 +516,7 @@
  trim_domain()
  {
        struct domain *domp, *domtmp;
-@@ -1463,7 +1511,7 @@
+@@ -1483,7 +1531,7 @@
                {
                        /* remove from working domain chain */
                        if (cnf.debug & DEBUG_TRANS)
@@ -507,7 +525,7 @@
                                domp->name);
                        if (domp == env.work_domain)
                        {
-@@ -1490,7 +1538,7 @@
+@@ -1510,7 +1558,7 @@
        return 0;
  }
  
@@ -516,7 +534,7 @@
  forced_terminate()
  {
        struct recipient *rcptp;
-@@ -1518,7 +1566,7 @@
+@@ -1538,7 +1586,7 @@
  
        if (conn->host == NULL)
        {
@@ -525,7 +543,7 @@
                return -1;
        }
  
-@@ -1532,7 +1580,7 @@
+@@ -1552,7 +1600,7 @@
        }
  
        if (cnf.debug & DEBUG_CONNECT)
@@ -534,7 +552,7 @@
                conn->seq, conn->host->name);
  
        bzero((char *)&rsin, sizeof(rsin));
-@@ -1569,7 +1617,7 @@
+@@ -1589,7 +1637,7 @@
                        socksize = sizeof(struct sockaddr_in);
  
                        if (cnf.debug & DEBUG_CONNECT)
@@ -543,7 +561,7 @@
                                inet_ntoa(rsin.in.sin_addr), cnf.dst_port);
                        found = 1;
                        break;
-@@ -1599,7 +1647,7 @@
+@@ -1619,7 +1667,7 @@
  
                                inet_ntop(AF_INET6, &rsin.in6.sin6_addr,
                                        buf, sizeof(buf));
@@ -552,7 +570,7 @@
                                        conn->seq, buf, cnf.dst_port);
                        }
                        found = 1;
-@@ -1637,7 +1685,7 @@
+@@ -1657,7 +1705,7 @@
  
        if (sd > MAX_SOCK)
        {
@@ -561,7 +579,7 @@
                        conn->seq, sd);
                close(sd);
                if (max_sock > MAX_SOCK)
-@@ -1650,7 +1698,7 @@
+@@ -1670,7 +1718,7 @@
  
        if (sd < 0){
                /* no more socket resource */
@@ -570,7 +588,7 @@
                        conn->host->name, smtpstrerror(errno), sti.maxsock,
                        max_sock, num_sock, sti.minsock);
                if (max_sock > NOFILE)
-@@ -1669,14 +1717,14 @@
+@@ -1689,14 +1737,14 @@
        }
  
        if (cnf.debug & DEBUG_CONNECT)
@@ -587,7 +605,7 @@
                                conn->seq, sd, conn->host->name,
                                smtpstrerror(errno));
                /* ignore error */
-@@ -1741,7 +1789,7 @@
+@@ -1761,7 +1809,7 @@
                                    case AF_INET:
                                        bcopy(addrp->address,
                                                &lsin.in.sin_addr, addrp->len);
@@ -596,7 +614,7 @@
                                                "using %s as source IP address",
                                                inet_ntoa(lsin.in.sin_addr));
                                        break;
-@@ -1753,7 +1801,7 @@
+@@ -1773,7 +1821,7 @@
  
                                        inet_ntop(AF_INET6, &lsin.in6.sin6_addr,
                                                buf, sizeof(buf));
@@ -605,7 +623,7 @@
                                        break;
  #endif
                                }
-@@ -1771,7 +1819,7 @@
+@@ -1791,7 +1839,7 @@
                                p = NULL;
                }
                if (!found)
@@ -614,7 +632,7 @@
        }
        if (!found)
        {
-@@ -1820,7 +1868,7 @@
+@@ -1840,7 +1888,7 @@
        {
                if (bind(sd, (struct sockaddr *)&lsin, socksize) < 0)
                {
@@ -623,7 +641,7 @@
                                conn->seq, sd, conn->host->name,
                                smtpstrerror(errno));
                        conn->host->state = STAT_FAIL;
-@@ -1837,7 +1885,7 @@
+@@ -1857,7 +1905,7 @@
  
        if (ioctl (sd, FIONBIO, &res) < 0)
        {
@@ -632,7 +650,7 @@
                        conn->seq, sd, conn->host->name, smtpstrerror(errno));
                conn->host->state = STAT_FAIL;
                close (sd);
-@@ -1848,7 +1896,7 @@
+@@ -1868,7 +1916,7 @@
  #else
        if ((res = fcntl(sd, F_GETFL, 0)) == -1)
        {
@@ -641,7 +659,7 @@
                        conn->seq, sd, conn->host->name, smtpstrerror(errno));
                conn->host->state = STAT_FAIL;
                close (sd);
-@@ -1863,7 +1911,7 @@
+@@ -1883,7 +1931,7 @@
  # endif
        if (fcntl(sd, F_SETFL, res) == -1)
        {
@@ -650,7 +668,7 @@
                        conn->seq, sd, conn->host->name, smtpstrerror(errno));
                conn->host->state = STAT_FAIL;
                close (sd);
-@@ -1879,7 +1927,7 @@
+@@ -1899,7 +1947,7 @@
         && errno != EINPROGRESS && errno != EINTR)     /* XXX */
        {
                alarm(0);
@@ -659,7 +677,7 @@
                        conn->seq, sd, conn->host->name, smtpstrerror(errno));
                conn->host->current->stat = EX_TEMPFAIL;
                close (sd);
-@@ -1911,7 +1959,7 @@
+@@ -1931,7 +1979,7 @@
                }
                sti.minsock = sd;
                if (cnf.debug & DEBUG_CONNECT)
@@ -668,7 +686,7 @@
        }
        num_sock++;
        return 0;
-@@ -1931,11 +1979,11 @@
+@@ -1951,11 +1999,11 @@
  {
        SockAddr cin;
        int len = sizeof(SockAddr);
@@ -682,7 +700,7 @@
                        conn->seq, conn->socket, conn->host->name,
                        smtpstrerror(errno));
                if (conn->host->current != NULL) /* XXX for safe access */
-@@ -1984,7 +2032,7 @@
+@@ -2004,7 +2052,7 @@
        conn->outlen = 0;
        if (conn->inbuf == NULL || conn->outbuf == NULL)
        {
@@ -691,7 +709,7 @@
                if (conn->host->current != NULL) /* XXX for safe access */
                {
                        conn->host->current->stat = EX_TEMPFAIL;
-@@ -2028,7 +2076,7 @@
+@@ -2048,7 +2096,7 @@
                        if (n == 0)
                        {
                                if (cnf.debug & DEBUG_CONNECT)
@@ -700,7 +718,7 @@
                                        conn->seq, conn->socket);
                                errno = E_SF_IO;
                                return -1;
-@@ -2046,7 +2094,7 @@
+@@ -2066,7 +2114,7 @@
  #endif
                                return 0;
                          default:
@@ -709,7 +727,7 @@
                                        conn->seq, conn->socket,
                                        conn->host->name, n, errno);
                                return n;
-@@ -2112,7 +2160,7 @@
+@@ -2132,7 +2180,7 @@
                        if (n == 0)
                        {
                                if (cnf.debug & DEBUG_CONNECT)
@@ -718,7 +736,7 @@
                                        "%d/%d: closed by foreign host (%s)",
                                        conn->seq, conn->socket,
                                        conn->host->name);
-@@ -2132,7 +2180,7 @@
+@@ -2152,7 +2200,7 @@
  #endif
                                return 0;
                          default:
@@ -727,7 +745,7 @@
                                        "%d/%d: write failed for %s: ret=%d, 
errno=%d",
                                        conn->seq, conn->socket,
                                        conn->host->name, n, errno);
-@@ -2167,7 +2215,7 @@
+@@ -2187,7 +2235,7 @@
                        if (n == 0)
                        {
                                if (cnf.debug & DEBUG_CONNECT)
@@ -736,7 +754,7 @@
                                        "%d/%d: closed by foreign host (%s)",
                                        conn->seq, conn->socket,
                                        conn->host->name);
-@@ -2185,7 +2233,7 @@
+@@ -2205,7 +2253,7 @@
  #endif
                                return size;
                          default:
@@ -745,7 +763,7 @@
                                        "%d/%d: write failed for %s: ret=%d, 
errno=%d",
                                        conn->seq, conn->socket,
                                        conn->host->name, n, errno);
-@@ -2236,7 +2284,7 @@
+@@ -2256,7 +2304,7 @@
  static int
  smtp_get_reply(conn, func, firstline, size, rest)
  struct connection *conn;
@@ -754,7 +772,7 @@
  char firstline[];
  int size;
  int *rest;
-@@ -2281,7 +2329,7 @@
+@@ -2301,7 +2349,7 @@
                        cbuf[--len] = '\0';
                }
                if (cnf.debug & DEBUG_SMTP)
@@ -763,7 +781,7 @@
                if (func != NULL)
                        (*func)(conn, cbuf);
                if (!isdigit(cbuf[0]) || !isdigit(cbuf[1]) || !isdigit(cbuf[2])
-@@ -2338,7 +2386,7 @@
+@@ -2358,7 +2406,7 @@
        int len = strlen(buf);
  
        if (cnf.debug & DEBUG_SMTP)
@@ -772,7 +790,7 @@
        if (len + 2 < size)
        {
                strcat(buf, CRLF);
-@@ -2412,7 +2460,7 @@
+@@ -2432,7 +2480,7 @@
  {
        char buf[MAXLINE];
        int rcode, savestate;
@@ -781,7 +799,7 @@
  
        errno = 0;
        savestate = conn->host->state;
-@@ -2453,7 +2501,7 @@
+@@ -2473,7 +2521,7 @@
                        errmsg = "Unexpected Error";
                        break;
                }
@@ -790,7 +808,7 @@
                        conn->seq, conn->socket, conn->host->name,
                        smtpstrerror(errno), STATE(savestate));
                if (conn->host->current != NULL) /* XXX for safe access */
-@@ -2600,7 +2648,7 @@
+@@ -2620,7 +2668,7 @@
        {
                if (errno > 0)
                {
@@ -799,7 +817,7 @@
                                conn->seq, conn->socket, smtpstrerror(errno),
                                conn->host->name, STATE(savestate));
                }
-@@ -2854,7 +2902,7 @@
+@@ -2876,7 +2924,7 @@
        {
                if (errno > 0)
                {
@@ -808,7 +826,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3032,7 +3080,7 @@
+@@ -3056,7 +3104,7 @@
        {
                if (errno > 0)
                {
@@ -817,7 +835,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3149,7 +3197,7 @@
+@@ -3208,7 +3256,7 @@
        {
                if (errno > 0)
                {
@@ -826,7 +844,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3229,7 +3277,7 @@
+@@ -3323,7 +3371,7 @@
                len = strlen(altbuf);
                rcode = smtp_write(conn, altbuf, len, 0);
                if (rcode != len)       /* XXX */
@@ -835,7 +853,7 @@
                            "Header of sent message will be corrupted: %s",
                            altbuf);
        }
-@@ -3301,7 +3349,7 @@
+@@ -3395,7 +3443,7 @@
                return 0;
  
        if (cnf.debug & DEBUG_CONNECT)
@@ -844,7 +862,7 @@
  
        /* check possibility of reuse connection */
        for (rmxp = conn->host->mx_ref; rmxp != NULL; rmxp = rmxp->mx_ref)
-@@ -3323,7 +3371,7 @@
+@@ -3417,7 +3465,7 @@
                        }
                }
                if (cnf.debug & DEBUG_CONNECT)
@@ -853,7 +871,7 @@
  
                if (reused == 0)
                        continue;
-@@ -3335,7 +3383,7 @@
+@@ -3429,7 +3477,7 @@
                        if (mxp == rmxp)
                        {
                                if (cnf.debug & DEBUG_CONNECT)
@@ -862,7 +880,7 @@
                                        conn->seq, conn->socket,
                                        conn->host->name);
                                return 1;
-@@ -3361,7 +3409,7 @@
+@@ -3455,7 +3503,7 @@
        {
                if (errno > 0)
                {
@@ -871,7 +889,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3453,7 +3501,7 @@
+@@ -3552,7 +3600,7 @@
        {
                if (errno > 0)
                {
@@ -880,7 +898,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3528,7 +3576,7 @@
+@@ -3629,7 +3677,7 @@
        {
                if (errno > 0)
                {
@@ -889,7 +907,7 @@
                                conn->seq, conn->socket, conn->host->name,
                                smtpstrerror(errno), STATE(savestate));
                }
-@@ -3588,7 +3636,7 @@
+@@ -3691,7 +3739,7 @@
                        markstatus(conn->rcpt, SMTP_TEMPFAIL(52),
                                newstr(buf), 1);
                else
@@ -898,7 +916,7 @@
                            conn->host->name);
                if (conn->host->current != NULL) /* XXX for safe access */
                        conn->host->current = conn->host->current->next;
-@@ -3614,7 +3662,7 @@
+@@ -3717,7 +3765,7 @@
                {
                        conn->host->state = STAT_CLOSED;
                        conn->host->current->stat = EX_TEMPFAIL;
@@ -907,7 +925,7 @@
                            conn->host->name);
                }
                else
-@@ -3641,17 +3689,17 @@
+@@ -3744,17 +3792,17 @@
        struct recipient *rcptp;
        int i;
  
@@ -928,7 +946,7 @@
                                rcptp->address,
                                (rcptp->domain->curmx == NULL)?"none":
                                rcptp->domain->curmx->name,
-@@ -3660,18 +3708,18 @@
+@@ -3763,18 +3811,18 @@
                        break;
                    case RCPT_RETRY:
                        if (rcptp->domain->curmx != NULL)
@@ -950,7 +968,7 @@
                                rcptp->address, rcptp->result);
                        break;
                }
-@@ -3681,12 +3729,12 @@
+@@ -3784,12 +3832,12 @@
        {
                if (connwork[i].host == NULL)
                        continue;

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index