diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 10:12:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-17 10:12:28 +0000 |
commit | 2f22276496550d1b86e7c5ee48ff26c746cfe40d (patch) | |
tree | 028ebaab7346ff8306a3e3307f25866175ffe759 | |
parent | 8ea71774750b178647ef11fbe1efed18011bb24f (diff) | |
download | fetchmail-2f22276496550d1b86e7c5ee48ff26c746cfe40d.tar.gz fetchmail-2f22276496550d1b86e7c5ee48ff26c746cfe40d.tar.bz2 fetchmail-2f22276496550d1b86e7c5ee48ff26c746cfe40d.zip |
Protocol labels for in-out messages.
svn path=/trunk/; revision=646
-rw-r--r-- | driver.c | 4 | ||||
-rw-r--r-- | imap.c | 4 | ||||
-rw-r--r-- | pop2.c | 2 | ||||
-rw-r--r-- | pop3.c | 6 |
4 files changed, 8 insertions, 8 deletions
@@ -1154,7 +1154,7 @@ va_dcl { if (shroud && (cp = strstr(buf, shroud))) memset(cp, '*', strlen(shroud)); buf[strlen(buf)-1] = '\0'; - error(0, 0, "> %s", buf); + error(0, 0, "%s> %s", protocol->name, buf); } } @@ -1196,7 +1196,7 @@ va_dcl { if (shroud && (cp = strstr(buf, shroud))) memset(cp, '*', strlen(shroud)); buf[strlen(buf)-1] = '\0'; - error(0, 0, "> %s", buf); + error(0, 0, "%s> %s", protocol->name, buf); } /* we presume this does its own response echoing */ @@ -29,7 +29,7 @@ int imap_ok (FILE *sockfp, char *argbuf) return(PS_SOCKET); if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "IMAP< %s", buf); /* interpret untagged status responses */ if (strstr(buf, "EXISTS")) @@ -123,7 +123,7 @@ static int imap_getsizes(FILE *sockfp, int count, int *sizes) int num, size; if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "IMAP< %s", buf); if (strstr(buf, "OK")) break; else if (sscanf(buf, "* %d FETCH (RFC822.SIZE %d)", &num, &size) == 2) @@ -25,7 +25,7 @@ int pop2_ok (FILE *sockfp, char *argbuf) pound_arg = equal_arg = -1; if (SockGets(buf, sizeof(buf), sockfp) >= 0) { if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "POP2< %s", buf); if (buf[0] == '+') ok = 0; @@ -32,7 +32,7 @@ int pop3_ok (FILE *sockfp, char *argbuf) if (SockGets(buf, sizeof(buf), sockfp) >= 0) { if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "POP3< %s", buf); bufp = buf; if (*bufp == '+' || *bufp == '-') @@ -168,7 +168,7 @@ static int pop3_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) while (SockGets(buf, sizeof(buf), sockfp) >= 0) { if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "POP3< %s", buf); if (buf[0] == '.') break; else if (sscanf(buf, "%d %s", &num, id) == 2) @@ -201,7 +201,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes) int num, size; if (outlevel == O_VERBOSE) - error(0, 0, "< %s", buf); + error(0, 0, "POP3< %s", buf); if (buf[0] == '.') break; else if (sscanf(buf, "%d %d", &num, &size) == 2) |