aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/pop.c6
-rw-r--r--libsylph/pop.h3
2 files changed, 6 insertions, 3 deletions
diff --git a/libsylph/pop.c b/libsylph/pop.c
index 143bb89d..be6baf45 100644
--- a/libsylph/pop.c
+++ b/libsylph/pop.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -629,10 +629,12 @@ static Pop3State pop3_lookup_next(Pop3Session *session)
return POP3_DELETE;
}
- if (size_limit_over)
+ if (size_limit_over && !msg->received) {
log_print
(_("POP3: Skipping message %d (%d bytes)\n"),
session->cur_msg, size);
+ session->skipped_num++;
+ }
if (size == 0 || msg->received || size_limit_over) {
session->cur_total_bytes += size;
diff --git a/libsylph/pop.h b/libsylph/pop.h
index b15f8ead..6078fd27 100644
--- a/libsylph/pop.h
+++ b/libsylph/pop.h
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -121,6 +121,7 @@ struct _Pop3Session
gint cur_total_num;
gint64 cur_total_bytes;
gint64 cur_total_recv_bytes;
+ gint skipped_num;
Pop3MsgInfo *msg;