diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-03 04:04:37 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-03 04:04:37 +0000 |
commit | 9c8bbafa020c817e75e60615d954a05a63e4f76b (patch) | |
tree | a47c414d42529bbd7310f1cdd6eac06a4082bbcb /libsylph | |
parent | 33f6d712c179ed3dcaec1fe22b043b0c36d962e3 (diff) |
exclude messages marked as read when counting new messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1206 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/pop.c | 6 | ||||
-rw-r--r-- | libsylph/pop.h | 3 |
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; |