<<< Date Index >>>     <<< Thread Index >>>

Re: race condition? -or- better way to transparently edit a message's headers?



On 2006-08-08 17:35:10 -0500, mike wrote:

> i'm not quite sure i'm following you.  i gather that a
> modified message is not reflected in the folder until
> sync-mailbox occurs. such behavior makes perfect sense to
> me.  i was under a general belief that once $editor was
> invoked, i was editing the message as it existed.

The modified message is added to the folder as soon as you
leave the editor.  The original message is removed once
sync-mailbox occurs -- if it's still marked as "deleted" at
this point.

> can you think of any way i might be able to get around it?
> mutt passes a temporary file name to the editor that does
> not correlate to the file name as it exists inside maildir.

That is intentional -- the general assumption when dealing with
maildirs is that the message as stored under a particular
unique file name doesn't really change.  If the message gets
changed, the file name in the maildir changes, too.

Also, there are folder formats that don't follow the
one-message-per-folder paradigm; in these cases, you really
want a separate temporary file...

> are there any variables within scope that i might be able to
> use to determine the exact path to the selected message?

No.

-- 
Thomas Roessler   <roessler@xxxxxxxxxxxxxxxxxx>