X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/78077051deed41adf786e1f5f4397dadf3012956..6bc7a34bda51d2a9a8d8406a249a2f8a51c321ec:/debian/patches/features/trash-folder diff --git a/debian/patches/features/trash-folder b/debian/patches/features/trash-folder index 7d9b086..718c082 100644 --- a/debian/patches/features/trash-folder +++ b/debian/patches/features/trash-folder @@ -58,10 +58,10 @@ To sum up, it's more integrated and transparent to the user. } --- a/flags.c +++ b/flags.c -@@ -66,7 +66,13 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE - else if (h->deleted) +@@ -69,7 +69,13 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE { h->deleted = 0; + update = 1; - if (upd_ctx) ctx->deleted--; + if (upd_ctx) + { @@ -73,7 +73,7 @@ To sum up, it's more integrated and transparent to the user. #ifdef USE_IMAP /* see my comment above */ if (ctx->magic == M_IMAP) -@@ -88,6 +94,17 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE +@@ -91,6 +97,17 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE } break; @@ -103,7 +103,7 @@ To sum up, it's more integrated and transparent to the user. WHERE char *XtermTitle; --- a/imap/message.c +++ b/imap/message.c -@@ -820,6 +820,7 @@ int imap_copy_messages (CONTEXT* ctx, HE +@@ -816,6 +816,7 @@ int imap_copy_messages (CONTEXT* ctx, HE if (ctx->hdrs[n]->tagged) { mutt_set_flag (ctx, ctx->hdrs[n], M_DELETE, 1); @@ -111,7 +111,7 @@ To sum up, it's more integrated and transparent to the user. if (option (OPTDELETEUNTAG)) mutt_set_flag (ctx, ctx->hdrs[n], M_TAG, 0); } -@@ -827,6 +828,7 @@ int imap_copy_messages (CONTEXT* ctx, HE +@@ -823,6 +824,7 @@ int imap_copy_messages (CONTEXT* ctx, HE else { mutt_set_flag (ctx, h, M_DELETE, 1); @@ -121,7 +121,7 @@ To sum up, it's more integrated and transparent to the user. } --- a/init.h +++ b/init.h -@@ -2862,6 +2862,16 @@ struct option_t MuttVars[] = { +@@ -2881,6 +2881,16 @@ struct option_t MuttVars[] = { ** by \fIyou\fP. The sixth character is used to indicate when a mail ** was sent to a mailing-list you subscribe to (default: L). */ @@ -148,7 +148,7 @@ To sum up, it's more integrated and transparent to the user. M_FLAG, M_TAG, M_UNTAG, -@@ -710,6 +711,7 @@ typedef struct header +@@ -712,6 +713,7 @@ typedef struct header unsigned int mime : 1; /* has a MIME-Version header? */ unsigned int flagged : 1; /* marked important? */ unsigned int tagged : 1; @@ -156,7 +156,7 @@ To sum up, it's more integrated and transparent to the user. unsigned int deleted : 1; unsigned int changed : 1; unsigned int attach_del : 1; /* has an attachment marked for deletion */ -@@ -881,6 +883,7 @@ typedef struct _context +@@ -883,6 +885,7 @@ typedef struct _context int new; /* how many new messages? */ int unread; /* how many unread messages? */ int deleted; /* how many deleted messages */ @@ -166,7 +166,7 @@ To sum up, it's more integrated and transparent to the user. --- a/muttlib.c +++ b/muttlib.c -@@ -1380,7 +1380,9 @@ int mutt_save_confirm (const char *s, st +@@ -1430,7 +1430,9 @@ int mutt_save_confirm (const char *s, st if (magic > 0 && !mx_access (s, W_OK)) { @@ -179,7 +179,7 @@ To sum up, it's more integrated and transparent to the user. if ((rc = mutt_yesorno (tmp, M_YES)) == M_NO) --- a/mx.c +++ b/mx.c -@@ -808,6 +808,53 @@ static int sync_mailbox (CONTEXT *ctx, i +@@ -803,6 +803,53 @@ static int sync_mailbox (CONTEXT *ctx, i return rc; } @@ -233,7 +233,7 @@ To sum up, it's more integrated and transparent to the user. /* save changes and close mailbox */ int mx_close_mailbox (CONTEXT *ctx, int *index_hint) { -@@ -943,6 +990,7 @@ int mx_close_mailbox (CONTEXT *ctx, int +@@ -938,6 +985,7 @@ int mx_close_mailbox (CONTEXT *ctx, int if (mutt_append_message (&f, ctx, ctx->hdrs[i], 0, CH_UPDATE_LEN) == 0) { mutt_set_flag (ctx, ctx->hdrs[i], M_DELETE, 1); @@ -241,7 +241,7 @@ To sum up, it's more integrated and transparent to the user. } else { -@@ -964,6 +1012,14 @@ int mx_close_mailbox (CONTEXT *ctx, int +@@ -959,6 +1007,14 @@ int mx_close_mailbox (CONTEXT *ctx, int return 0; } @@ -256,7 +256,7 @@ To sum up, it's more integrated and transparent to the user. #ifdef USE_IMAP /* allow IMAP to preserve the deleted flag across sessions */ if (ctx->magic == M_IMAP) -@@ -1159,6 +1215,12 @@ int mx_sync_mailbox (CONTEXT *ctx, int * +@@ -1154,6 +1210,12 @@ int mx_sync_mailbox (CONTEXT *ctx, int * msgcount = ctx->msgcount; deleted = ctx->deleted; @@ -281,10 +281,3 @@ To sum up, it's more integrated and transparent to the user. /* update the count for the status display */ PostCount = PostContext->msgcount - PostContext->deleted; ---- a/PATCHES -+++ b/PATCHES -@@ -1,3 +1,4 @@ -+patch-1.5.13.cd.trash_folder.3.4 - patch-1.5.13.nt+ab.xtitles.4 - patch-1.5.6.dw.maildir-mtime.1 - patch-1.5.13.cd.ifdef.2