From 9c8bbafa020c817e75e60615d954a05a63e4f76b Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 3 Oct 2006 04:04:37 +0000 Subject: exclude messages marked as read when counting new messages. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1206 ee746299-78ed-0310-b773-934348b2243d --- libsylph/pop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libsylph/pop.c') 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; -- cgit v1.2.3