Re: curious about some implementation issues
- To: mutt-dev@xxxxxxxx
- Subject: Re: curious about some implementation issues
- From: Kyle Wheeler <kyle-mutt-dev@xxxxxxxxxxxxxx>
- Date: Fri, 3 Oct 2008 16:14:44 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=ZRLeKYNt/p/d9gmRdRlSfLBuZlk=; b=a8C7 I8H/76XXgGuHREAlck2GgPfTyjvUH1JyZAwXhxZCvNcoivL+bEWfdMWBzXZkXHN8 xV8tr3NcPb5lygurzAjIOq6ZC8Jqas7p53OANxWZKTwS0QLxauwH7nwsIl1Z79Ft waqxWm4iwrfpo/qYQON8mLXQ75i2iq0/ksP2c+c=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=YstLC6rBbvlN/FnsROeEx1sSnf/Lb4werE3yzCNmmoCZxQb81MvVdSHEeEouV82wfHFp7AQJb/7M493nUyyvN6slpdjfWGTdrSswRhUpSvwXwBH9w0QU7xpL6T8mJFp1I6DkX0iJV9wGpA4Q/ynYpQwE33qm/j9Jowy8sgDp2+4=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081003190814.GA8312@localhost>
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Mail-followup-to: mutt-dev@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081003190814.GA8312@localhost>
- Sender: owner-mutt-dev@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-09-25)
On Friday, October 3 at 03:08 PM, quoth Sergei Gerasenko:
1) If I understand correctly, marking a message as "read" involves
inserting a "Status:RO" line into the header of the message.
That's only true of messages stored in mbox and MH format mailboxes.
Maildir mailboxes store that information in the name of the message
file.
How does mutt do that pricesely? I mean, is it modifying the file in
place or does it create a temporary file, which is then renamed?
In my experience, it seems to be the latter...
2) How does mutt make sure that while it's modifying the mailbox,
the delivery agent is not adding something to it at the same time?
In the case of mbox, the mailbox is locked using the dot-lock program.
The exact method used depends on the filesystem... the fastest method
is an fcntl lock, but NFS sometimes doesn't have a functional lock
protocol, so dot-lock files are created. You can read a more detailed
explanation of what goes on in general on Wikipedia:
http://en.wikipedia.org/wiki/Mbox
~Kyle
--
They say marriages are made in Heaven. But so is thunder and
lightning.
-- Clint Eastwood
Attachment:
pgpC47a_WkA6u.pgp
Description: PGP signature