diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2003-05-18 23:47:04 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2003-05-18 23:47:04 +0000 |
commit | 2188999311dafd1d3daa92149e35361c7f51e331 (patch) | |
tree | 724851c488551f316c0b06cb831fe9d133079d5d /mail/asmail/files/patch-asmail-pop.c | |
parent | Update to 1.1.1 (diff) |
- update to 1.5
- new MASTER_SITES
- spell 'FreeBSD.org' correctly
- respect NOPORTDOCS correctly
PR: 51672
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=81303
Diffstat (limited to 'mail/asmail/files/patch-asmail-pop.c')
-rw-r--r-- | mail/asmail/files/patch-asmail-pop.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mail/asmail/files/patch-asmail-pop.c b/mail/asmail/files/patch-asmail-pop.c deleted file mode 100644 index 15eca827d640..000000000000 --- a/mail/asmail/files/patch-asmail-pop.c +++ /dev/null @@ -1,45 +0,0 @@ -$FreeBSD$ - ---- pop.c.orig Thu Apr 13 19:08:02 2000 -+++ pop.c Sat May 5 04:06:47 2001 -@@ -196,7 +196,8 @@ - { - SOCKET *sock; - int sd, i, port = 0, type; -- char server[100], user[100], password[100], mailbox[100]; -+ char server[100], user[100], password[100]; -+ char mailbox[100] = "INBOX"; /* default mailbox */ - char *pnt; - static int InDuty = 0; - -@@ -229,18 +230,19 @@ - return -1; - } - -- /* optional portnumber */ -+ /* optional portnumber and mailbox for IMAP4 */ - pnt += strlen(password) + 1; -- if (sscanf(pnt, "%d", &port) != 1) -- switch (type) { -- case TYPE_POP: port = DEFAULTPORT; break; -- case TYPE_IMAP: port = DEFAULTIMAPPORT; break; -- } -- -- /* optional mailboxname for IMAP */ -- if (type == TYPE_IMAP) -- if (sscanf(pnt, "%100s", &mailbox) != 1) -- strcpy(mailbox, "INBOX"); -+ switch (type) { -+ case TYPE_POP: -+ port = DEFAULTPORT; -+ sscanf(pnt, "%d", &port); -+ break; -+ case TYPE_IMAP: -+ port = DEFAULTIMAPPORT; -+ if (sscanf(pnt, "%d %100s", &port, &mailbox) == 0) -+ sscanf(pnt, "%100s", &mailbox); -+ break; -+ } - - /* Feb. 17 2000: Removed toupper() of mailbox names. - * Some IMAP servers seem to have troubles with case-insensitive |