Karl Voit wrote: > After renaming, I want to invoke my editor, make my manual changes > to the email body and after quitting the editor, mutt should take > over again. > > However, when I rename TMPFILENAME to muttfilename, mutt takes over > the process again. This skips the editor part completely. Mutt > complains that the muttfilename is missing: > > "Can't stat /tmp/mutt-grmlvrs-1002-5074-359: No such file or > directory"
Hi Karl, Mutt doesn't attempt to stat the file until after the "editor" process exits. My guess is that your os.rename() command (or some other line in the script) is failing and python is aborting. You may want to take a look at https://pthree.org/2011/03/24/hashcash-and-mutt/ for an example python wrapper and see if that helps. -Kevin
signature.asc
Description: PGP signature