commit f8bf830a0ffdb65f8d8f7f47ff4b170fc0cc8858
parent 2867d4c879508df7a48acd054a2c252f46c4d8f9
Author: Jaromil <jaromil@dyne.org>
Date: Thu, 12 Sep 2013 03:40:52 +0200
visibly warn when fetchmail plans to delete mails from server
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/zlibs/email b/src/zlibs/email
@@ -145,6 +145,9 @@ fetch() {
fmconf+=(" antispam 571 550 501 554 ")
+ print $accountopt | grep ' keep' > /dev/null
+ { test $? = 0 } || {
+ error "planning to delete mails from server, account option: $accountopt" }
# try login without doing anything
print "$fmconf" | fetchmail -c -f -