From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53274 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Working around IMAP server b0rk3n-ness Date: Fri, 27 Jun 2003 14:34:34 -0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <87adc3cqth.fsf@mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1056738907 22948 80.91.224.249 (27 Jun 2003 18:35:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2003 18:35:07 +0000 (UTC) Original-X-From: ding-owner+M1818@lists.math.uh.edu Fri Jun 27 20:35:05 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Vy3a-0005vk-00 for ; Fri, 27 Jun 2003 20:34:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Vy3i-0006HD-00; Fri, 27 Jun 2003 13:34:54 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Vy3a-0006H7-00 for ding@lists.math.uh.edu; Fri, 27 Jun 2003 13:34:46 -0500 Original-Received: (qmail 98855 invoked by alias); 27 Jun 2003 18:34:46 -0000 Original-Received: (qmail 98850 invoked from network); 27 Jun 2003 18:34:46 -0000 Original-Received: from fort-point-station.mit.edu (18.7.7.76) by sclp3.sclp.com with SMTP; 27 Jun 2003 18:34:46 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by fort-point-station.mit.edu (8.12.4/8.9.2) with ESMTP id h5RIYj3a002317 for ; Fri, 27 Jun 2003 14:34:45 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id h5RIYiCR026506; Fri, 27 Jun 2003 14:34:45 -0400 (EDT) Original-Received: from arborway (24-6-240.wireless.lcs.mit.edu [18.24.6.240]) ) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id h5RIYiU8023226; Fri, 27 Jun 2003 14:34:44 -0400 (EDT) Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUGBgS83KhoOivUeFmC pXj4o39qeFZD1JPmAAACOklEQVR4nE2UQY/bIBCFkVPlbpX0bA2tz7sQcl5SlnsWc7cclv// E/oGjNNxokjz8eYxA7HwR9xLKQGRC4eQezqUj7KWnDOzAOB3EjaBKDl4KPARzkvpAIqoUTwI a2op6WVoeXHOlfgsnJPM1kl0SdMIFEJ0AaIJshiRhkCsHbC/51LycKDmgiw2jVJy9B9IDPNN U5NkSMQoR+c5/zTW3qjZgwg5ylpJ2YT4wubO7FEVEs0NhvPJaqzxDaDS2gUpGUjyDkau9NxB fKsmu4Ir2XSpwAjxYwfsfeqlbJwqcAwwcLINxGRWtIhhMEB7ZLoAJudd4aE42e4RCQDjYMXK CpS6XOBtNM7EVfPAbRgihfU08Sg9jqIr9G9JJuo70cCty66gwY6kzJ9xIygyJs7mDNQcSEUV iPSE1qt5mLgUkcGj8ExTbrvii2CwG3UCQkxUXDUPE03KIqPw8Iq33IBfUcbw/Ez9eeo8VvPr qrRNj2RU1DjeaN6cG8c6RKVNnTg+GIDWfAkPBVdK2jC84fCq4n4yik+VNICNtoPlPkScrKmh bPw+FIGSYmBrOUPeNfATjajPpFXtMl0Hvyt4imfzqDvC9zZ3cAEYvlt/ADq7rvDbNKj3RuxC B7gsZRWzbSAaymNXSPxjia8id1GmV6kUyjDMf9vd3daXAiYFd4GvXNzmaT7AspRyJnoif6Nn Ob8UC94fN6KybTSbvB0e46d3Tyzm+I7v4QWW5WGswZulXFNyv/4DGFvqYRv4BxSm28ZwQ4mv AAAAAElFTkSuQmCC X-Face: &OO..E]'&$Q?jm[7H$]lCS"t#FD[|jK.HfvP#![KZ`/,O)lQ(pE<2QS1i~K3+u\{Bh"(4h4G0W#R-F2zZNO6n\!8bk;tu%)f>y{C` P*^7yM`e/x"b1q[?^-9zxTp User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Portable Code, linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53274 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53274 --=-=-= When using Gnus with an IMAP mail-source, it goes through, reads one message at a time, sorts them away, and then tries to do a bulk delete of all of the messages it's read. This is all fine and within the bounds of the IMAP spec; unfortunately, not all software is. I somewhat regularly wind up using an imtest binary with a 500-byte line limit, and if I get around that, the local server has a 16K line limit, which I do run into with enough mail. It'd be nice if there was a switch or fallback mode or something such that Gnus didn't always lose in exciting ways when it hit this. The "I'm away for a week so it's sure to die, slow and correct is better than fast and broken" patch is: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Index: mail-source.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mail-source.el,v retrieving revision 6.36 diff -u -r6.36 mail-source.el --- mail-source.el 13 May 2003 22:58:29 -0000 6.36 +++ mail-source.el 27 Jun 2003 18:29:58 -0000 @@ -1005,9 +1005,10 @@ (nnheader-ms-strip-cr)) (incf found (mail-source-callback callback server)) (when (and remove fetchflag) - (imap-message-flags-add - (imap-range-to-message-set (gnus-compress-sequence remove)) - fetchflag nil buf)) + (dolist (uid remove) + (imap-message-flags-add + (imap-list-to-message-set (list uid)) + fetchflag nil buf))) (if dontexpunge (imap-mailbox-unselect buf) (imap-mailbox-close nil buf)) --=-=-= ...but I don't actually want that all the time. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell --=-=-=--