From 3ee5d3df18fa0cfc53ade1b0444bf8eca5f2aba1 Mon Sep 17 00:00:00 2001 From: Antonio Radici Date: Fri, 12 Jun 2009 23:33:43 +0100 Subject: [PATCH] do not append mail to the same Trash folder again and again (Closes: #448241) --- debian/patches/features/trash-folder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/patches/features/trash-folder b/debian/patches/features/trash-folder index b0b9158..88410e0 100644 --- a/debian/patches/features/trash-folder +++ b/debian/patches/features/trash-folder @@ -246,7 +246,7 @@ To sum up, it's more integrated and transparent to the user. } + /* copy mails to the trash before expunging */ -+ if (purge && ctx->deleted) ++ if (purge && ctx->deleted && mutt_strcmp(ctx->path, TrashPath)) + if (trash_append (ctx) != 0) + { + ctx->closing = 0; @@ -260,7 +260,7 @@ To sum up, it's more integrated and transparent to the user. msgcount = ctx->msgcount; deleted = ctx->deleted; -+ if (purge && ctx->deleted) ++ if (purge && ctx->deleted && mutt_strcmp(ctx->path, TrashPath)) + { + if (trash_append (ctx) == -1) + return -1; -- 2.43.0