diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2011-05-26 22:24:52 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2011-05-26 23:21:16 +0200 |
commit | bdc248dc59c282e18d48270cb44dc27d35af3841 (patch) | |
tree | b400b135cfe9b904e5683d5168206649732bf30d /imap.c | |
parent | 4c198e492e9c70c12d93a9dd4ebf9c450a65fb30 (diff) | |
download | fetchmail-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.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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 */ |