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

Re: Wish: -r option to recover a crashed session



On 2004-07-10, Cameron Simpson <cs@xxxxxxxxxx> wrote:
> On 01:21 09 Jul 2004, Gary Johnson <garyjohn@xxxxxxxxxxxxxxx> wrote:

> | If the user was in
> | the compose menu, for example, nothing about the message being
> | composed would be saved.  I'm not sure what would happen if the user
> | was editing a message when SIGHUP was generated.
> | 
> | So my thought is that a "sync--and-quit-on-HUP-or-TERM" switch
> | wouldn't be enough to avoid frustrating data loss upon an unexpected
> | hang-up.
> 
> Well I see two approaches to this, one already ok.
> 
> Firstly, editors tend to save interrupted sessions. So that's so of ok.
> 
> Second, when I abort a mutt compose session it asks if I want the message
> postponed.  Have any message in compose mode _be_ in the postponed queue,
> and have that question undo that state if necessary. In this way the
> compose state is covered too.
> 
> Sound ok?

Yeah, I think so.  There's some risk that the state of the postponed
queue could be changed while the message was being edited, so it's
not bullet-proof, but it seems to allow the user to recover the
important stuff in most cases.

Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA