]> Pileus Git - ~andy/fetchmail/commitdiff
Must solve that damn linking problem next.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 31 Jul 2001 05:54:41 +0000 (05:54 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 31 Jul 2001 05:54:41 +0000 (05:54 -0000)
svn path=/trunk/; revision=3426

Makefile.in
configure.in
design-notes.html
fetchmail.man
imap.c
indexgen.sh
rcfile_y.y
sink.c

index 7b1ccb864307e03260eee214e9c8781f72d528f5..b5c2c745fc7f51e5310a14c607dd1110ef6f305a 100644 (file)
@@ -4,7 +4,7 @@
 # So just uncomment all the lines marked QNX.
 
 PACKAGE = fetchmail
-VERSION = 5.8.14
+VERSION = 5.8.15
 
 # Ultrix 2.2 make doesn't expand the value of VPATH.
 srcdir = @srcdir@
index 9411026ea6156e73a8ac3830d15cb8aaccecfb83..43f2fbfb01012267cea96b4644c2ff584e32c9d2 100644 (file)
@@ -240,23 +240,23 @@ case "$enable_fallback" in
                                AC_ERROR([Sendmail selected as fallback, but not found])
                                #not reached
                        fi
-                       AC_DEFINE(FALLBACK_MDA, "$sendmail %T")
+                       AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$sendmail %T")
                        echo "Will use $sendmail as fallback MDA."
                        ;;
        procmail)       if test -z "$procmail" ; then
                                AC_ERROR([procmail selected as fallback, but not found])
                                #not reached
                        fi
-                       AC_DEFINE(FALLBACK_MDA, "$procmail -d %T")
+                       AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$procmail -d %T")
                        echo "Will use $procmail as fallback MDA."
                        ;;
        no|unset)       echo "Will not use a fallback MDA"
                        ;;
        auto|yes|set)   if test -n "$procmail" ; then
-                               AC_DEFINE(FALLBACK_MDA, "$procmail -d %T")
+                               AC_DEFINE_UNQUOTED(FALLBACK_MDA,"$procmail -d %T")
                                echo "Will use $procmail as fallback MDA."
                        elif test -n "$sendmail" ; then
-                               AC_DEFINE(FALLBACK_MDA, "$sendmail %T")
+                               AC_DEFINE_UNQUOTED(FALLBACK_MDA,"$sendmail %T")
                                echo "Will use $sendmail as fallback MDA."
                        else    echo "No fallback MDA available."
                        fi
index 27b4ccf3e2481a5bfe42cf93616445a92543bc7d..2054f435929603fd5b37aac251d843f34a6f1bb0 100644 (file)
@@ -10,7 +10,7 @@
 <table width="100%" cellpadding=0><tr>
 <td width="30%">Back to <a href="/~esr/index.html">Fetchmail Home Page</a>
 <td width="30%" align=center>To <a href="/~esr/sitemap.html">Site Map</a>
-<td width="30%" align=right>$Date: 2001/06/24 19:23:57 $
+<td width="30%" align=right>$Date: 2001/07/31 05:54:40 $
 </table>
 <HR>
 <H1 ALIGN=CENTER>Design Notes On Fetchmail</H1>
@@ -455,15 +455,15 @@ all shaped the design in one way or another.<P>
 
 <DL>
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc821.txt">RFC821</A>
-<DD>  SMTP protocol
+<DD> SMTP protocol
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc822.txt">RFC822</A>
-<DD>  Mail header format
+<DD> Mail header format
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc937.txt">RFC937</A>
-<DD>  Post Office Protocol - Version 2
+<DD> Post Office Protocol - Version 2
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc974.txt">RFC974</A>
-<DD>  MX routing
+<DD> MX routing
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc976.txt">RFC976</A>
-<DD>  UUCP mail format
+<DD> UUCP mail format
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc1081.txt">RFC1081</A>
 <DD> Post Office Protocol - Version 3
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc1123.txt">RFC1123</A>
@@ -537,9 +537,13 @@ all shaped the design in one way or another.<P>
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc2683.txt">RFC2683</A>
 <DD> IMAP4 Implementation Recommendations
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc2595.html">RFC2595</A>
-<DD>Using TLS with IMAP, POP3 and ACAP
+<DD> Using TLS with IMAP, POP3 and ACAP
 <DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc2645.html">RFC2645</A>
 <DD>On-Demand Mail Relay: SMTP with Dynamic IP Addresses
+<DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc2821.html">RFC2821</A>
+<DD> Simple Mail Transfer Protocol
+<DT><A HREF="ftp://ftp.isi.edu/in-notes/rfc2822.txt">RFC2822</A>
+<DD>Internet Message Format
 </DL>
 <!--
 RFC2192 IMAP URL Scheme
@@ -551,7 +555,7 @@ RFC2221 IMAP4 Login Referrals
 <table width="100%" cellpadding=0><tr>
 <td width="30%">Back to <a href="index.html">Fetchmail Home Page</a>
 <td width="30%" align=center>To <a href="/~esr/sitemap.html">Site Map</a>
-<td width="30%" align=right>$Date: 2001/06/24 19:23:57 $
+<td width="30%" align=right>$Date: 2001/07/31 05:54:40 $
 </table>
 
 <P><ADDRESS>Eric S. Raymond <A HREF="mailto:esr@thyrsus.com">&lt;esr@snark.thyrsus.com&gt;</A></ADDRESS>
index 00f2072df5f42407ab1dd3b43a3141cd29c6b7e3..21f11e045ce26bf8dde64f0322664e0f49eb2ca3 100644 (file)
@@ -273,7 +273,7 @@ POP3, ETRN, or ODMR.
 Tell fetchail to poll trace information in the form `polling %s
 account %s' to the Received line it generates, where the %s parts are
 replaced by the user's remote name and the poll label (the Received
-header also normally inclodes the server's truename).  This can be
+header also normally includes the server's truename).  This can be
 used to facilate mail filtering based on the account it is being
 received from.
 .TP
@@ -1802,12 +1802,13 @@ in a multi-user entry must include it.  Here's an example:
 .nf
   poll pop.provider.net proto pop3 port 3111
         user "jsmith" with pass "secret1" is "smith" here
-        user jones with pass "secret2" is "jjones" here
+        user jones with pass "secret2" is "jjones" here keep
 .fi
 
 This associates the local username `smith' with the pop.provider.net
 username `jsmith' and the local username `jjones' with the
-pop.provider.net username `jones'.
+pop.provider.net username `jones'.  Mail for `jones' is kept on the
+server after download.
 .PP
 Here's what a simple retrieval configuration for a multi-drop mailbox
 looks like:
@@ -2189,10 +2190,10 @@ mutt(1), elm(1), mail(1), sendmail(8), popd(8), imapd(8), netrc(5)
 .SH APPLICABLE STANDARDS
 .TP 5
 SMTP/ESMTP:
-RFC 821, RFC 1869, RFC 1652, RFC 1870, RFC1983, RFC 1985
+RFC 821, RFC2821, RFC 1869, RFC 1652, RFC 1870, RFC1983, RFC 1985
 .TP 5
 mail:
-RFC 822, RFC 1123, RFC 1892, RFC 1894
+RFC 822, RFC2822, RFC 1123, RFC 1892, RFC 1894
 .TP 5
 POP2:
 RFC 937
diff --git a/imap.c b/imap.c
index cfc85fa69126ce5438b7fb1dce02de601b7c7e72..7ea1ef98d22ae710e5dae40bde618862c080a3fe 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -672,13 +672,19 @@ static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp)
     gen_send(sock, "FETCH %d RFC822.HEADER", number);
 
     /* looking for FETCH response */
-    do {
+    for (;;) 
+    {
        int     ok;
 
        if ((ok = gen_recv(sock, buf, sizeof(buf))))
            return(ok);
-    } while
-       (sscanf(buf+2, "%d FETCH (%*s {%d}", &num, lenp) != 2);
+       if (sscanf(buf+2, "%d FETCH (%*s {%d}", &num, lenp) == 2)
+           break;
+       else if (sscanf(buf+2, "%d NO", &num) == 1)
+           return(PS_ERROR);
+       else if (sscanf(buf+2, "%d BAD", &num) == 1)
+           return(PS_ERROR);
+    }
 
     if (num != number)
        return(PS_ERROR);
index df7cd4b056573c59706041081ec5598daa4b97d7..f0350333ffe0f7407f2d146dc0773d4a6157f20e 100755 (executable)
@@ -326,6 +326,13 @@ that assists you in installing sendmail and fetchmail together/
 href="http://www.hawkins.emu.id.au/gotmail/">gotmail</a>
 that can retrieve Hotmail. 
 
+<P>A hacker identifying himself simply as `Steines' has written a
+filter which rewrites the to-line with a line which only includes
+receipients for a given domain and renames the old to-line. It also
+rewrites the domainpart of addresses if the offical domain is
+different to local domain. You can find it <a 
+href="http://www.steines.com/mailf/">here</a>.
+
 <H1>Fetchmail's funniest fan letter:</H1>
 
 <A HREF="funny.html">This letter</A> still cracks me up whenever I reread it. 
index e034d566142137f3c0808cdb81a0e3ecaa4fc471..523be0032a68d02abcc45843d2cfa2da46d93499 100644 (file)
@@ -100,8 +100,11 @@ statement  : SET LOGFILE optmap STRING     {run.logfile = xstrdup($4);}
                | SET NO SPAMBOUNCE             {run.spambounce = FALSE;}
                | SET PROPERTIES optmap STRING  {run.properties =xstrdup($4);}
                | SET SYSLOG                    {run.use_syslog = TRUE;}
+               | SET NO SYSLOG                 {run.use_syslog = FALSE;}
                | SET INVISIBLE                 {run.invisible = TRUE;}
+               | SET NO INVISIBLE              {run.invisible = FALSE;}
                | SET SHOWDOTS                  {run.showdots = TRUE;}
+               | SET NO SHOWDOTS               {run.showdots = FALSE;}
 
 /* 
  * The way the next two productions are written depends on the fact that
diff --git a/sink.c b/sink.c
index 061c9a9794597a9f326dbd33af99f59a6933445c..502e989d32aabf6e38fa513e26aa958328917244 100644 (file)
--- a/sink.c
+++ b/sink.c
@@ -637,7 +637,7 @@ int open_sink(struct query *ctl, struct msgblk *msg,
                  "%s@%s", ctl->remotename, ctl->server.truename);
            ap = addr;
        }
-       else if (strchr(msg->return_path, '@'))
+       else if (strchr(msg->return_path,'@') || strchr(msg->return_path,'!'))
            ap = msg->return_path;
        else            /* in case Return-Path existed but was local */
        {