aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-04-03 10:09:49 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-04-03 10:09:49 +0000
commit9f3830f4c3e07fca70af0c78b6cb0db9566d449f (patch)
tree46da9d087b0d6f187a6796e11ca4c4d7a19afe42 /pop3.c
parentb968a481ae558c26082e10d651a0f799a8033824 (diff)
downloadfetchmail-9f3830f4c3e07fca70af0c78b6cb0db9566d449f.tar.gz
fetchmail-9f3830f4c3e07fca70af0c78b6cb0db9566d449f.tar.bz2
fetchmail-9f3830f4c3e07fca70af0c78b6cb0db9566d449f.zip
Mark SF Bug #780933.
svn path=/branches/BRANCH_6-3/; revision=4776
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 4e6440f5..e7ee687a 100644
--- a/pop3.c
+++ b/pop3.c
@@ -653,6 +653,13 @@ static void trim(char *s) {
s[0] = '\0';
}
+/* XXX FIXME: using the Message-ID is unsafe, some messages (spam,
+ * broken messages) do not have Message-ID headers, and messages without
+ * those appear to break this code and cause fetchmail (at least version
+ * 6.2.3) to not delete such messages properly after retrieval.
+ * See Sourceforge Bug #780933.
+ *
+ * The other problem is that the TOP command itself is optional, too... */
static int pop3_gettopid(int sock, int num , char *id, size_t idsize)
{
int ok;
@@ -674,6 +681,8 @@ static int pop3_gettopid(int sock, int num , char *id, size_t idsize)
trim(id);
}
}
+ /* XXX FIXME: do not return success here if no Message-ID header was
+ * found. */
return 0;
}
@@ -782,6 +791,10 @@ static int pop3_fastuidl( int sock, struct query *ctl, unsigned int count, int
static int pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp)
{
+ /* XXX FIXME: this code is severely broken. A Cc:d mailing list
+ * message will arrive twice with the same Message-ID, so this
+ * slowuidl code will break. Same goes for messages without
+ * Message-ID headers at all. This code would best be removed. */
/* This approach tries to get the message headers from the
* remote hosts and compares the message-id to the already known
* ones:
@@ -897,8 +910,8 @@ static int pop3_getrange(int sock,
return(ok);
/*
- * Newer, RFC-1725/1939-conformant POP servers may not have the LAST command.
- * We work as hard as possible to hide this, but it makes
+ * Newer, RFC-1725/1939-conformant POP servers may not have the LAST
+ * command. We work as hard as possible to hide this, but it makes
* counting new messages intrinsically quadratic in the worst case.
*/
last = 0;