]> git.llucax.com Git - software/mutt-debian.git/commitdiff
mutt (1.5.13-1.1etch1) stable; urgency=low 1.5.13-1.1etch1
authorChristoph Berg <myon@debian.org>
Tue, 15 May 2007 07:59:24 +0000 (09:59 +0200)
committerChristoph Berg <myon@debian.org>
Tue, 15 May 2007 07:59:24 +0000 (09:59 +0200)
  * Stable update.
  * Grab patch from upstream:
    Add imap_close_connection to fully reset IMAP state (Closes: #413715).
  * Add myself to Uploaders, thanks Dato.

debian/changelog
debian/control
debian/patches/series
debian/patches/upstream/413715-imap-hang [new file with mode: 0644]

index 09e3f0aa71839e1047e30723206099db46d17354..dfaae28b9d3fcd4fc6bf4ce7a98a38cabf77223d 100644 (file)
@@ -1,3 +1,12 @@
+mutt (1.5.13-1.1etch1) stable; urgency=low
+
+  * Stable update.
+  * Grab patch from upstream:
+    Add imap_close_connection to fully reset IMAP state (Closes: #413715).
+  * Add myself to Uploaders, thanks Dato.
+
+ -- Christoph Berg <myon@debian.org>  Tue, 15 May 2007 09:59:24 +0200
+
 mutt (1.5.13-1.1) unstable; urgency=high
 
   * Non-maintainer upload.
 mutt (1.5.13-1.1) unstable; urgency=high
 
   * Non-maintainer upload.
index 970dde10afd5c1d9acc867c9915ad0024117aedc..8df6f6243c40c9f5e2aa99f7e12d69b64092e897 100644 (file)
@@ -2,6 +2,7 @@ Source: mutt
 Section: mail
 Priority: standard
 Maintainer: Adeodato Simó <dato@net.com.org.es>
 Section: mail
 Priority: standard
 Maintainer: Adeodato Simó <dato@net.com.org.es>
+Uploaders: Christoph Berg <myon@debian.org>
 Build-Depends: debhelper, quilt, autotools-dev, gawk, gettext, xsltproc, docbook-xml, docbook-xsl, links, libncurses5-dev, libsasl2-dev, libgnutls-dev, libidn11-dev, zlib1g-dev, libncursesw5-dev, libdb4.4-dev
 Standards-Version: 3.6.2
 
 Build-Depends: debhelper, quilt, autotools-dev, gawk, gettext, xsltproc, docbook-xml, docbook-xsl, links, libncurses5-dev, libsasl2-dev, libgnutls-dev, libidn11-dev, zlib1g-dev, libncursesw5-dev, libdb4.4-dev
 Standards-Version: 3.6.2
 
index 71f952868287b9eaa57fbe164f5bf5e574192d9f..7504a837f789c78565f54736eb846b389d492df2 100644 (file)
@@ -21,5 +21,6 @@ misc/tempfile-race.diff
 misc/autotools-update.diff -p0
 
 upstream/thread_pattern_in_UPDATING.diff -p0
 misc/autotools-update.diff -p0
 
 upstream/thread_pattern_in_UPDATING.diff -p0
+upstream/413715-imap-hang
 
 # not-applied/patch-1.5.8.hr.sensible_browser_position.3
 
 # not-applied/patch-1.5.8.hr.sensible_browser_position.3
diff --git a/debian/patches/upstream/413715-imap-hang b/debian/patches/upstream/413715-imap-hang
new file mode 100644 (file)
index 0000000..4b554c5
--- /dev/null
@@ -0,0 +1,69 @@
+
+# HG changeset patch
+# User Brendan Cully <brendan@kublai.com>
+# Date 1172684833 0
+# Node ID 0bb4645e994b24bb8b3e5c450a5b040028b4354d
+# Parent eda7244885d12b4f22fa3b38369c997560cc4a69
+Add imap_close_connection to fully reset IMAP state. (closes: #2717)
+Thanks to Sergey Svishchev for the original patch.
+
+--- a/imap/command.c   Wed Feb 28 16:27:47 2007 +0000
++++ b/imap/command.c   Wed Feb 28 17:47:13 2007 +0000
+@@ -375,11 +375,7 @@ static void cmd_handle_fatal (IMAP_DATA*
+   }
+   if (idata->state < IMAP_SELECTED)
+-  {
+-    idata->state = IMAP_DISCONNECTED;
+-    mutt_socket_close (idata->conn);
+-    idata->status = 0;
+-  }
++    imap_close_connection (idata);
+ }
+ /* cmd_handle_untagged: fallback parser for otherwise unhandled messages. */
+--- a/imap/imap.c      Wed Feb 28 16:27:47 2007 +0000
++++ b/imap/imap.c      Wed Feb 28 17:47:13 2007 +0000
+@@ -399,8 +399,7 @@ int imap_open_connection (IMAP_DATA* ida
+   if (imap_cmd_step (idata) != IMAP_CMD_CONTINUE)
+   {
+-    mutt_socket_close (idata->conn);
+-    idata->state = IMAP_DISCONNECTED;
++    imap_close_connection (idata);
+     return -1;
+   }
+@@ -467,12 +466,19 @@ int imap_open_connection (IMAP_DATA* ida
+ #if defined(USE_SSL)
+  err_close_conn:
+-  mutt_socket_close (idata->conn);
+-  idata->state = IMAP_DISCONNECTED;
++  imap_close_connection (idata);
+ #endif
+  bail:
+   FREE (&idata->capstr);
+   return -1;
++}
++
++void imap_close_connection(IMAP_DATA* idata)
++{
++  mutt_socket_close (idata->conn);
++  idata->state = IMAP_DISCONNECTED;
++  idata->seqno = idata->nextcmd = idata->lastcmd = idata->status = 0;
++  memset (idata->cmds, 0, sizeof (IMAP_COMMAND) * IMAP_PIPELINE_DEPTH);
+ }
+ /* imap_get_flags: Make a simple list out of a FLAGS response.
+--- a/imap/imap_private.h      Wed Feb 28 16:27:47 2007 +0000
++++ b/imap/imap_private.h      Wed Feb 28 17:47:13 2007 +0000
+@@ -235,6 +235,7 @@ int imap_make_msg_set (IMAP_DATA* idata,
+ int imap_make_msg_set (IMAP_DATA* idata, BUFFER* buf, int flag, int changed,
+                        int invert);
+ int imap_open_connection (IMAP_DATA* idata);
++void imap_close_connection (IMAP_DATA* idata);
+ IMAP_DATA* imap_conn_find (const ACCOUNT* account, int flags);
+ int imap_read_literal (FILE* fp, IMAP_DATA* idata, long bytes, progress_t*);
+ void imap_expunge_mailbox (IMAP_DATA* idata);
+