🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #9458

Saving and restoring messages (was Re: dead.letter capability in VM)

#9458
From: kyle
Date: Fri, 16 Aug 1991 20:18
31 lines
2184 bytes
Boris 'codetermine' Goldowsky writes:
 > One nice, related feature would be the ability to save a message with some
 > indication (ie, a .msg suffix) that tells emacs that it is a
 > partially-completed message and should therefore be edited in mail-mode.
 > Unsent mail buffers should, by the same token, be associated with files so
 > that if you exit emacs you are given the option of saving them for
 > completion later.  Similar tactics could be used to pick up a dead.letter
 > for fixing and sending.
 > 
 > I use a mail-mode-hook and auto-mode-alist that accomplish the above---if I
 > exit with modified but un-sent messages, it asks me whether to save them in
 > ~/mail/username.msg, and when these files are visited they are in
 > mail-mode, ready to be sent with C-c C-c.  The code is embarrassingly
 > kludgy, though, so I will not post it :-) It could be much cleaner if it
 > were incorporated into VM itself... or am I the only one who ever leaves a
 > message unfinished overnight?

I think it would be better to append such messages to dead.letter
iun such a way that dead.letter could be visited and you could
continue editing the message.

 > On a related note, I would also enjoy seeing folders that, when visited,
 > can put themselves in the correct mode, so I can use C-x C-f to visit
 > folders as well as other files.

In version 5 of VM, you can use vm-mode in auto-mode-alist just
like any other major mode.

  ...
  ("~/mail/" . vm-mode)
  ...
Technical Details
Message-ID: <9108162018.AA08517@wendy-fate.UU.NET>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm
References: <1991Aug14.211452.13585@galileo.cc.rochester.edu> <9108121800.AA05212@wendy-fate.UU.NET> <9108141842.AA20013@wendy-fate.UU.NET> <JBW.91Aug13163021@maverick.uswest.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,32d8982dad751f51
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1991-08-16 16:00:01 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm
From: kyle@wendy-fate.uu.net
Newsgroups: gnu.emacs.vm.bug
Subject: Saving and restoring messages (was Re: dead.letter capability in VM)
Message-ID: <9108162018.AA08517@wendy-fate.UU.NET>
Date: 16 Aug 91 20:18:19 GMT
References: <1991Aug14.211452.13585@galileo.cc.rochester.edu>
 <9108121800.AA05212@wendy-fate.UU.NET>
 <9108141842.AA20013@wendy-fate.UU.NET>
 <JBW.91Aug13163021@maverick.uswest.com>
Sender: bug-vm-request@uunet.uu.net
Lines: 31