From bdc248dc59c282e18d48270cb44dc27d35af3841 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 26 May 2011 22:24:52 +0200 Subject: Drop FETCHMAIL_IMAP_DELETED_REMAINS_UNSEEN dud again. --- imap.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'imap.c') 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 */ -- cgit v1.2.3