summaryrefslogtreecommitdiffstats
path: root/imap/fetch.c
diff options
context:
space:
mode:
authorSam Varshavchik2018-12-09 23:11:49 -0500
committerSam Varshavchik2018-12-09 23:11:49 -0500
commit8a43c2fe3b84d9825c9f9ca37ebda6678f9cfd82 (patch)
tree1729bc47bdcdf722be181a440129bab54efc67f1 /imap/fetch.c
parenta1d3a864cf488e9bd2c49dc01289e49d857fdeb7 (diff)
downloadcourier-libs-8a43c2fe3b84d9825c9f9ca37ebda6678f9cfd82.tar.bz2
Send a Unicode alert at most once per message.
Diffstat (limited to 'imap/fetch.c')
-rw-r--r--imap/fetch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/imap/fetch.c b/imap/fetch.c
index d38ca85..5daf150 100644
--- a/imap/fetch.c
+++ b/imap/fetch.c
@@ -299,8 +299,13 @@ int do_fetch(unsigned long n, int byuid, void *p)
return (0);
}
+ if (current_maildir_info.msgs[n-1].err8bitflag)
+ unicode_err=0;
+
if (unicode_err)
{
+ current_maildir_info.msgs[n-1].err8bitflag=1;
+
writes("* OK [ALERT] Message ");
writen(n);
writes(" appears to be a Unicode message and your"