Telsa Gwynne <[EMAIL PROTECTED]> wrote on Fri, 12 May 2000:
> It must be vim, because I'm sure it's joe that's leaving mine:
> that appended tilde is generally a good hint :)
But his files didn't seem to have a ~ in the end, so it's possible they
aren't backups. On the other hand, they could be... It's certainly one
possible source.
It should be possible to tell joe (or any editor) not to do backups.
And for vim, it's certainly possible to do it so that it doesn't do
backups when editing certain kind of files: I do it by using a separate
vimrc file for email editing. I'm sure it could be done with just a
single .vimrc but this works for me. :-)
> Similarly, I use xv for viewing images, but when using it from
> mutt I get messages of the style, "Can't open /tmp/mutt-7893252"
> and a "Bummer!" dialogue box from xv. I don't really know what's
> going on here, but it happens so rarely that I always forget :)
This is probably because you have things set up so that after starting
xv, the control returns back to the calling script (and then Mutt), so
that Mutt will continue running and xv won't "hold it up". This is
generally a good thing, so you can view the text of the email while xv
is displaying the image. The problem occurs when xv is slow in starting
up and Mutt deletes the temporary file before xv has a chance to read
it, and therefore the file doesn't exist when xv gets around to looking
for it.
There's a work-around for this, which is more of a kludge than anything
else, but which works very well for me: I put a "sleep 5" in the image
viewing entry in my mailcap, like this:
image/*; xv %s & sleep 5
That way there is a 5 second delay before the viewer exits, and xv has
more time to load up that image from disk before Mutt deletes it...
(Another case of cleaning up temporary files, actually...)
Regards,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"If you're not impossible to tolerate, you're not trying hard enough."