From 8a43c2fe3b84d9825c9f9ca37ebda6678f9cfd82 Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Sun, 9 Dec 2018 23:11:49 -0500 Subject: Send a Unicode alert at most once per message. --- imap/fetch.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'imap/fetch.c') 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" -- cgit v1.2.3