From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82162 Path: news.gmane.org!not-for-mail From: Magnus Henoch Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmaildir vs offlineimap: patch to use flags properly Date: Tue, 28 Aug 2012 09:33:14 +0100 Message-ID: References: <871uitbqfr.fsf@toke.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346145499 1578 80.91.229.3 (28 Aug 2012 09:18:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2012 09:18:19 +0000 (UTC) Cc: ding@gnus.org To: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= Original-X-From: ding-owner+M30429@lists.math.uh.edu Tue Aug 28 11:18:20 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T6Hw9-00052f-Ez for ding-account@gmane.org; Tue, 28 Aug 2012 11:18:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1T6Huo-0000xN-F4; Tue, 28 Aug 2012 04:16:54 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1T6Hum-0000xB-NC for ding@lists.math.uh.edu; Tue, 28 Aug 2012 04:16:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1T6Huk-00018S-I3 for ding@lists.math.uh.edu; Tue, 28 Aug 2012 04:16:52 -0500 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Hui-0002Su-QI for ding@gnus.org; Tue, 28 Aug 2012 11:16:48 +0200 Original-Received: by weyu54 with SMTP id u54so3556506wey.17 for ; Tue, 28 Aug 2012 02:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=75CudQr5J95CRDS2gBUrA6MA3+BLqwryYljlUU0jZyc=; b=Ev3cs1lInDn0A7twG7Ro++N6DXaDn4VB0Fl0s8ab7ljoRq8ISCMGFeV8S+ycXW1Jro rDQc9MMP6HDjiDFBukI8EZ4P+sT+umDoJWqOkr9DlZ01fR+ePp89L02qhHMiELRyrzEp gxYf5iFkNburT8h/HmBJHfhwfMhDS6mV2B6qXCHpKPDQ8DgCIFLYhdEeHjxsJ2t2uZ/p JRL0IJEVO49YzLnGE/EWPd7NfaqzV0rUDNWiGqQXbdrDRWWW2slf18y1gJVILwiTMt/4 RtR83dV+Dqc2StPnrZ+GqAHcdE8EX58WOtPOhjMhMt2C1DAYPci0xTg9ZFt7fPeLTVNj d3CA== Original-Received: by 10.217.3.7 with SMTP id q7mr994059wes.47.1346145403099; Tue, 28 Aug 2012 02:16:43 -0700 (PDT) Original-Received: from poki-sona.local (5adfcbc1.bb.sky.com. [90.223.203.193]) by mx.google.com with ESMTPS id b7sm6014484wiz.9.2012.08.28.02.16.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 02:16:42 -0700 (PDT) In-Reply-To: <871uitbqfr.fsf@toke.dk> ("Toke \=\?utf-8\?Q\?H\=C3\=B8iland-J\?\= \=\?utf-8\?Q\?\=C3\=B8rgensen\=22's\?\= message of "Sun, 26 Aug 2012 17:53:12 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (darwin) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82162 Archived-At: Toke H=C3=B8iland-J=C3=B8rgensen writes: > Magnus Henoch writes: > >> But it seems like nobody saw it, so I'm making some noise here. What do >> you think about the patch? > > I've tried it out, and from my initial testing it appears to work quite > well. I've been using a script to sync the flags back and forth on every > run of offlineimap, which is sort of hit and miss. As in, there have > been a few mails that are not updated. I think this has to do with the > renaming of filenames that offlineimap does to keep track of files. So I > had a bunch of mails that were not marked with the S flag, but which > gnus considered to be seen. When enabling your patch, those turned up > again, and I did not seem to be able to mark them as read. Marking them > externally (in this case using Mutt) did seem to clear everything up > though, and new mails are marked correctly. Moving mails around between > folders also seems to work. I'll keep using this for a few days and see > if anything odd turns up. Right, if the file name is not formatted as nnmaildir expects it to be... I'll have a look at that and try to make it expect the unexpected. You don't happen to be able to find what the file names of those messages were before they were fixed? > Other than that, many thanks for writing this patch; I've been bothered > by this for a while, but not enough to do something about it. I don't > suppose there's any way to sync/store expired flags in the same way? I > seem to be able to add an E flag to mails in my maildir, and offlineimap > syncs it to the server, but then it seems to be discarded; at least it's > removed by offlineimap on the next sync. I'm afraid I don't know enough > about the imap protocol to know whether this is just because my imap > server is rubbish, or whether it's expected protocol behaviour... As I understand it, an IMAP client is allowed to set its own flags on the server (and nnimap does this to save e.g. expired and dormant flags), but there is no standard way to store non-standard flags with Maildir, and offlineimap seems not to be able to handle it. I'd be happy to be proven wrong, though. Regards, Magnus