[Pkg-wmaker-commits] [wmbiff] 04/05: wmbiff: Close mailbox before we call status on it.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Wed Jul 20 13:37:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmbiff.

commit 79395356972c25935bab6219780a6377eeb35af1
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Tue Jul 19 21:52:17 2016 -0400

    wmbiff: Close mailbox before we call status on it.
    
    Additional patch by Nye Liu <nyet at nyet.org> to fix Debian bug #830889 [1].
    
    [1] https://bugs.debian.org/830889
---
 wmbiff/Imap4Client.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index 882446d..ba12a66 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -321,6 +321,14 @@ int imap_checkmail( /*@notnull@ */ Pop3 pc)
 		return -1;
 	}
 
+	command_id++;
+	tlscomm_printf(scs, "a%03d CLOSE\r\n", command_id);
+	snprintf(examine_expect, BUF_SIZE, "a%03d OK", command_id);
+	if (tlscomm_expect(scs, examine_expect, buf, 127) == 0) {
+		tlscomm_close(unbind(scs));
+		return -1;
+	}
+
 	/* if we've got it by now, try the status query */
 	command_id++;
 	tlscomm_printf(scs, "a%03d STATUS %s (MESSAGES UNSEEN)\r\n",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list