From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78062 Path: news.gmane.org!not-for-mail From: Leonidas Tsampros Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with nnml group Date: Tue, 22 Mar 2011 14:24:12 +0200 Message-ID: <871v1z5onn.fsf@bifteki.lan> References: <87lj0f2cnm.fsf@bifteki.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300796716 12167 80.91.229.12 (22 Mar 2011 12:25:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 12:25:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26373@lists.math.uh.edu Tue Mar 22 13:25:12 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q20e6-0003lZ-AN for ding-account@gmane.org; Tue, 22 Mar 2011 13:25:10 +0100 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 1Q20dV-0000i8-DE; Tue, 22 Mar 2011 07:24:33 -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 1Q20dT-0000hu-Q0 for ding@lists.math.uh.edu; Tue, 22 Mar 2011 07:24:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q20dP-0003xJ-BD for ding@lists.math.uh.edu; Tue, 22 Mar 2011 07:24:31 -0500 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q20dO-00026H-Hn for ding@gnus.org; Tue, 22 Mar 2011 13:24:26 +0100 Original-Received: by wyb42 with SMTP id 42so9234127wyb.17 for ; Tue, 22 Mar 2011 05:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=rbYo8WDTzyvK8ufhia7+DY3Q0q57uhTiReIrDInoPpU=; b=V/HH86MehnQirxp0f5OX5Vxg7E0RvKyLr1Ow3QLapVZjklxPwsBZGfOFFGsh85iqQs g0EoCjRrbcMGRGvBr+X//fiIDNAQWyAA/Vda82IDiHmo5/1bnGi01sv5HZRv+FJnbCaO XEnjG89cxSuOHuVCaYWn/GjzaJiKq+R11hPj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=YfKBQmMu3v7V7+5KOcZUscWKObA8KpJWhR3/7qlLYMkoGUUk5FT5YQIy6k/0KWum1K gq7PVEfPHA/sVQzR4mewPC+Rt90FuGblEMMl9/z9n4g8vmK+/hvm/ljf17/jyhUmlzZu wd9Y8wmi4H9jGGwZ2AyPVfl98H6YbiT6hARrM= Original-Received: by 10.216.64.139 with SMTP id c11mr1936943wed.46.1300796660841; Tue, 22 Mar 2011 05:24:20 -0700 (PDT) Original-Received: from bifteki.lan ([212.205.26.1]) by mx.google.com with ESMTPS id h39sm2917171wes.5.2011.03.22.05.24.18 (version=SSLv3 cipher=OTHER); Tue, 22 Mar 2011 05:24:18 -0700 (PDT) Original-Received: from ltsampros-ferrari-one-200 (localhost.localdomain [127.0.0.1]) by bifteki.lan (Postfix) with ESMTP id D192F64A191 for ; Tue, 22 Mar 2011 14:24:12 +0200 (EET) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 17 Mar 2011 18:10:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78062 Archived-At: Lars Magne Ingebrigtsen writes: > Leonidas Tsampros writes: > >> The overview file under outbox/ contains the overview lines for messages >> 1 to 5 which are indeed the 5 last messages I sent today. Since these >> are the last messages I sent, I would expect them to be 470-475 >> instead. That means, that Gnus got confused today and overwrote 5 old >> sent mails of mine. > > Are you sure that articles 1-5 really did exist before? I think there's > a protection in nnml somewhere against overwriting files. > > Anyway, it sounds like nnml thinks that there's only five messages in > the group, for some reason. What does ~/Mail/active say about the > group? Hi Lars, thanks for the answer. I've been meaning to take a look at the relevant code but I have no time currently. I think the trigger of the issue is a combination of the below: 1) (setq nnml-directory "~/Mail.Gnus") (setq mail-source-delete-incoming t) (setq mail-sources '((directory :path "~/Mail" :suffix ""))) (setq gnus-message-archive-group "nnml:outbox") 2) fire up emacs/gnus from a directory other than the home directory (that was the only different parameter in contrast with my everyday Gnus-workflow). 3) Move files from the nnml:outbox to another group, thus creating holes in the article ranges. However, I've not been up to the task of trying to reproduce the bug yet, so all the above is just speculation. With regards to the active file, I remember that it was completely wrong and I removed the relevant entry. Then I edited the group and marks by hand to reflect the correct values, restarted Gnus and this fixed the issue for me. Now G E on nnml:outbox reports: ("nnml:outbox" 3 ((1 . 484)) ((seen (1 . 484))) "nnml:") The outbox/.marks file: ((read (1 . 484))) My Mail.Gnus/active file: outbox 484 1 y and I can confirm that new mail gets saved successfully without overwriting old mail. However, going back to the original problem, I cannot guarantee that mails 1-5 existed. I had done a mass mail move recently to nnimap but I did not meddle with such old mails (I only moved specific mails after 01/09/2010). Now my only remaining problem is that when I enter the group I get 227 emails whereas the outbox folder itself reports: [ltsampros@laptop]outbox $ ls -1 | sort -n | wc -l 483 and the mode line writes: nnml:outbox [470] Bot (227,0) (Summary Plugged) I can notice that the only mails that are being displayed have sent dates gt 01/01/2011. Upon entering the group, I think the total number is also displayed correctly: How many articles from outbox (available 484, default 200) however whatever number I enter there a completely arbitrary number of articles appear on the summary buffer (e.g. for the default number 200, only the last 15 mails appear). I really cannot understand what is going on. Fortunately, I have kept a backup since the problem appeared. Best Regards, Leonidas Tsampros