From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86020 Path: news.gmane.org!not-for-mail From: Nikolaus Rath Newsgroups: gmane.emacs.gnus.general Subject: bug#20956: [PATCH] Fix imap message size parsing Date: Wed, 01 Jul 2015 19:45:05 -0700 Message-ID: <87zj3fb7m6.fsf@vostro.rath.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1435805188 32239 80.91.229.3 (2 Jul 2015 02:46:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 02:46:28 +0000 (UTC) Cc: ding@gnus.org To: 20956@debbugs.gnu.org Original-X-From: ding-owner+M34255@lists.math.uh.edu Thu Jul 02 04:46:14 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZAUVx-0001g4-VU for ding-account@gmane.org; Thu, 02 Jul 2015 04:46:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.84) (envelope-from ) id 1ZAUVr-0005qy-Vb; Wed, 01 Jul 2015 21:46:08 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1ZAUVq-0005qe-EJ for ding@lists.math.uh.edu; Wed, 01 Jul 2015 21:46:06 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1ZAUVp-0000Ix-7l for ding@lists.math.uh.edu; Wed, 01 Jul 2015 21:46:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZAUVn-0000e9-He; Thu, 02 Jul 2015 04:46:03 +0200 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAUVl-0003QW-Rn; Wed, 01 Jul 2015 22:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolaus Rath Original-Sender: "Debbugs-submit" Resent-CC: ding@gnus.org, bugs@gnus.org Resent-Date: Thu, 02 Jul 2015 02:46:01 +0000 Resent-Message-ID: X-GNU-PR-Message: report 20956 X-GNU-PR-Package: gnus X-GNU-PR-Keywords: patch X-Debbugs-Original-To: submit@debbugs.gnu.org X-Debbugs-Original-Xcc: ding@gnus.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143580510913113 (code B ref -1); Thu, 02 Jul 2015 02:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 02:45:09 +0000 Original-Received: from localhost ([127.0.0.1]:36631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAUUv-0003PR-3M for submit@debbugs.gnu.org; Wed, 01 Jul 2015 22:45:09 -0400 Original-Received: from ebox.rath.org ([23.92.25.96]:36597) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAUUt-0003PJ-16 for submit@debbugs.gnu.org; Wed, 01 Jul 2015 22:45:07 -0400 Original-Received: from vostro ([192.168.12.4] helo=vostro.rath.org) by ebox.rath.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1ZAUUr-0001h7-VR for submit@debbugs.gnu.org; Thu, 02 Jul 2015 02:45:06 +0000 Original-Received: by vostro.rath.org (Postfix, from userid 1000) id 96A63EC4220; Wed, 1 Jul 2015 19:45:05 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-Spam-Score: 0.1 (/) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:86020 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Package: gnus Tags: patch IMAP servers may sent the data items in a FETCH response in arbitrary order. However, currently Gnus assumes that the UID item is sent before the RFC822.SIZE item. If this assumption is wrong, Gnus is unable to determine the message size. The attached patch fixes this issue. Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=transform_headers.patch --- nnimap.el.bak1 2015-05-26 19:26:56.646513004 -0700 +++ nnimap.el.bak2 2015-07-01 19:39:26.057089923 -0700 @@ -230,6 +230,7 @@ t) (match-string 1))) (setq lines nil) + (beginning-of-line) (setq size (and (re-search-forward "RFC822.SIZE \\([0-9]+\\)" (line-end-position) --=-=-=--