On Tue, Sep 17, 2002 at 07:10:21PM +0200, Hanspeter Roth wrote:
> Hello,
> 
> under certain circumstances after sending messages there appear
> backup files of mutt in /tmp which name is mutt-host-pid-x.bak.
> I have ispell set to `ispell -x' to tell ispell not to keep a backup
> copy.
> How can I make mutt to delete these files?

I don't know if this covers your exact problem, but it sounds close:

Mutt FAQ: 
Mutt leaves files called "mutt.host.123.234~" or "mutt.host.123.234.bak"
behind it!

This is your editor, not Mutt. It is probably a good idea to modify your
editor so it won't create backup files for your mails. If you use Emacs,
you can put a line like this in your .muttrc: 

set editor = "/usr/bin/emacs %s --eval '(setq make-backup-files nil)'"

I have been told that Emacs users gain efficiency by using "emacsclient"
instead of "emacs", which will use an existing Emacs session instead of
firing up a new instance. Vim won't leave backups behind it by default.

Liviu Daia <[EMAIL PROTECTED]> adds: 

Apart from the editor, Ispell can be another source of stale backup
files in $tmpdir: by default, Ispell doesn't delete the files with names
longer than 14 characters, and the temporary files created by Mutt may
have longer names; in order to fix this, the definition of "MAXNAMLEN"
in the file "config.X" in the Ispell sources has to be modified to 1024
(or whatever is the limit on the current system), and Ispell must be
recompiled; 

-- 
SwiftOne
[EMAIL PROTECTED]

Reply via email to