termux-packages/packages/getmail/utilities.py.patch

21 lines
579 B
Diff
Raw Normal View History

2017-07-26 13:38:47 +02:00
diff -u -r ../getmail-5.1/getmailcore/utilities.py ./getmailcore/utilities.py
--- ../getmail-5.1/getmailcore/utilities.py 2017-07-16 05:26:01.000000000 +0200
+++ ./getmailcore/utilities.py 2017-07-26 13:36:30.196152312 +0200
@@ -47,6 +47,7 @@
2016-03-26 07:41:26 +01:00
import sys
2017-07-26 13:38:47 +02:00
import tempfile
import errno
2016-03-26 07:41:26 +01:00
+import shutil
2017-07-26 13:38:47 +02:00
try:
import subprocess
except ImportError, o:
@@ -340,7 +341,7 @@
2016-03-26 07:41:26 +01:00
# Move message file from Maildir/tmp to Maildir/new
try:
- os.link(fname_tmp, fname_new)
+ shutil.copy2(fname_tmp, fname_new)
os.unlink(fname_tmp)
except OSError: