Gnus development mailing list
 help / color / mirror / Atom feed
From: Leonidas Tsampros <ltsampros@upnet.gr>
To: ding@gnus.org
Subject: Re: Problem with nnml group
Date: Tue, 22 Mar 2011 14:46:46 +0200	[thread overview]
Message-ID: <87pqpj491l.fsf@bifteki.lan> (raw)
In-Reply-To: <871v1z5onn.fsf@bifteki.lan> (Leonidas Tsampros's message of "Tue, 22 Mar 2011 14:24:12 +0200")

Leonidas Tsampros <ltsampros@upnet.gr> writes:
> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Leonidas Tsampros <ltsampros@upnet.gr> 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

Replying to my previous email with some more information:

[ltsampros@laptop]outbox $ ls -1 | grep -vi new | sort -n | awk -F" " '{sum = sum + $0} END {print sum}'
117121

The sum of all the article numbers in the outbox is 117121 while it
should have been 117855 (sum of all integers between 1 and 485).

Which means there is more than 1 mail missing from that folder. Do you
think that such article holes play a role in the above problems I'm
facing?

Thanks,
Leonidas Tsampros



  reply	other threads:[~2011-03-22 12:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 17:33 Leonidas Tsampros
2011-03-17 17:10 ` Lars Magne Ingebrigtsen
2011-03-22 12:24   ` Leonidas Tsampros
2011-03-22 12:46     ` Leonidas Tsampros [this message]
2011-03-29 20:19     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqpj491l.fsf@bifteki.lan \
    --to=ltsampros@upnet.gr \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).