aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
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 */