aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2011-05-26 22:24:52 +0200
committerMatthias Andree <matthias.andree@gmx.de>2011-05-26 23:21:16 +0200
commitbdc248dc59c282e18d48270cb44dc27d35af3841 (patch)
treeb400b135cfe9b904e5683d5168206649732bf30d /imap.c
parent4c198e492e9c70c12d93a9dd4ebf9c450a65fb30 (diff)
downloadfetchmail-bdc248dc59c282e18d48270cb44dc27d35af3841.tar.gz
fetchmail-bdc248dc59c282e18d48270cb44dc27d35af3841.tar.bz2
fetchmail-bdc248dc59c282e18d48270cb44dc27d35af3841.zip
Drop FETCHMAIL_IMAP_DELETED_REMAINS_UNSEEN dud again.
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/imap.c b/imap.c
index 397b391b..5c3218d0 100644
--- a/imap.c
+++ b/imap.c
@@ -1299,20 +1299,11 @@ static int imap_delete(int sock, struct query *ctl, int number)
int ok;
/* Select which flags to set on message deletion: */
const char delflags_seen[] = "\\Seen \\Deleted";
- const char delflags_unseen[] = "\\Deleted";
static const char *delflags;
/* Which environment variable to look for: */
- const char dis_env[] = "FETCHMAIL_IMAP_DELETED_REMAINS_UNSEEN";
- if (!delflags) {
- char *tmp;
- if ((tmp = getenv(dis_env)) != NULL && *tmp) {
- delflags = delflags_unseen;
- } else {
- /* DEFAULT since many fetchmail versions <= 6.3.X */
- delflags = delflags_seen;
- }
- }
+ /* DEFAULT since many fetchmail versions <= 6.3.X */
+ delflags = delflags_seen;
(void)ctl;
/* expunges change the fetch numbers */