From: marka@pobox.com (Mark Alexander)
Subject: [sup-talk] Possible problem with maildir ID generation
Date: Tue, 21 Apr 2009 08:33:17 -0700 [thread overview]
Message-ID: <a412e2a70904210833r48c78a8ah5c19779cd8b99b53@mail.gmail.com> (raw)
In-Reply-To: <1240320547-sup-6957@entry>
On Tue, Apr 21, 2009 at 7:00 AM, William Morgan
<wmorgan-sup at masanjin.net> wrote:
> I think you could be right. Using the size as part of the ID was
> supposed to differentiate messages with the same timestamp, but it would
> result in exactly the behavior you describe when polling.
>
> I think there's a much simpler scheme we can use that will also fix
> this. I'll post a patch soon and we can see if it addresses the
> problem.
I'd be very interested in this patch.
In the meantime, I made some minor changes to maildir.rb, without
changing the ID scheme. One problem was every time a maildir was
polled, the most recent message (i.e., the one at cur_offset) would be
treated as a new message again. I also changed last_offset to return
an ID that would be one second later than the last message seen.
These changes seem to have mostly fixed the lost message problem I was
having, though I'm not exactly sure why. I've only had one lost
message over the last couple of days, instead of the expected 10 or
20. I can't explain this one lost message, but I think it must be due
to a different problem, unrelated to maildir handling. I was able to
get sup to see this message again by doing a 'touch' on both the
message itself and the containing maildir.
I doubt that my changes would fix the race condition I described
earlier, but I've avoided this problem by not running fetchmail
in the background while sup is running.
I'll send out my patch in a separate email.
next prev parent reply other threads:[~2009-04-21 15:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 22:05 Mark Alexander
2009-04-21 14:00 ` William Morgan
2009-04-21 15:33 ` Mark Alexander [this message]
[not found] ` <20090428191822.GB10581@cabinet.hsd1.ma.comcast.net>
2009-04-28 23:29 ` Mark Alexander
2009-04-29 22:31 ` William Morgan
2009-04-29 22:39 ` William Morgan
[not found] ` <20090429233820.GA14143@cabinet.hsd1.ma.comcast.net>
2009-05-04 16:10 ` William Morgan
[not found] ` <20090504165224.GA15815@cabinet.hsd1.ma.comcast.net>
2009-05-04 17:24 ` Mark Alexander
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=a412e2a70904210833r48c78a8ah5c19779cd8b99b53@mail.gmail.com \
--to=marka@pobox.com \
/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