On 17May2014 23:59, Karl Voit <m...@karl-voit.at> wrote:
Mike Glover (mglo...@pobox.com) wrote:
Have you tried something like:
try:
os.rename(TMPFILENAME, muttfilename)
except Exception, e:
log.write("Rename failed: %s" % e)
That rename call is almost certainly failing, and this would
at least tell you why...
Absolutely!
I thought that mutt has a "weird" method of tracking changes to the
tempfile. You were right, I got "[Errno 18] Invalid cross-device
link" instead while renaming files.
For testing purposes I tried os.system(mv %s %s) and this worked so
far.
Gah!
1: Why not just take care to make the temp file in the same directory as mutt's
temp file?
2: Why not just rewrite the muttfile? Mutt isn't touching it.
Cheers,
Cameron Simpson <c...@zip.com.au>