X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/c567067062d8404fd0cc71d3c160f2fbf504642f..6918361d84c231c8cfb60bcf3b7b8d86db18126d:/debian/patches/features/trash-folder diff --git a/debian/patches/features/trash-folder b/debian/patches/features/trash-folder index a8c3722..1167afc 100644 --- a/debian/patches/features/trash-folder +++ b/debian/patches/features/trash-folder @@ -46,11 +46,11 @@ To sum up, it's more integrated and transparent to the user. - Fixed indentation of "appended" in mutt.h. == END PATCH -Index: trash/commands.c +Index: debian-mutt/commands.c =================================================================== ---- trash.orig/commands.c 2006-12-12 14:15:02.000000000 +0100 -+++ trash/commands.c 2007-02-15 19:34:10.324888040 +0100 -@@ -690,6 +690,7 @@ int _mutt_save_message (HEADER *h, CONTE +--- debian-mutt.orig/commands.c 2007-04-12 19:06:45.000000000 +0200 ++++ debian-mutt/commands.c 2007-05-16 23:09:20.000000000 +0200 +@@ -688,6 +688,7 @@ int _mutt_save_message (HEADER *h, CONTE if (option (OPTDELETEUNTAG)) mutt_set_flag (Context, h, M_TAG, 0); } @@ -58,14 +58,14 @@ Index: trash/commands.c return 0; } -Index: trash/flags.c +Index: debian-mutt/flags.c =================================================================== ---- trash.orig/flags.c 2006-12-12 14:15:02.000000000 +0100 -+++ trash/flags.c 2007-02-15 19:34:10.325887888 +0100 -@@ -66,7 +66,13 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE - else if (h->deleted) +--- debian-mutt.orig/flags.c 2007-05-16 23:08:46.000000000 +0200 ++++ debian-mutt/flags.c 2007-05-16 23:43:45.000000000 +0200 +@@ -69,7 +69,13 @@ void _mutt_set_flag (CONTEXT *ctx, HEADE { h->deleted = 0; + update = 1; - if (upd_ctx) ctx->deleted--; + if (upd_ctx) + { @@ -77,7 +77,7 @@ Index: trash/flags.c #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; @@ -95,23 +95,23 @@ Index: trash/flags.c case M_NEW: if (!mutt_bit_isset(ctx->rights,M_ACL_SEEN)) -Index: trash/globals.h +Index: debian-mutt/globals.h =================================================================== ---- trash.orig/globals.h 2007-01-04 15:23:49.000000000 +0100 -+++ trash/globals.h 2007-02-15 19:34:10.325887888 +0100 -@@ -135,6 +135,7 @@ WHERE char *StChars; +--- debian-mutt.orig/globals.h 2007-05-16 23:09:10.000000000 +0200 ++++ debian-mutt/globals.h 2007-05-16 23:09:20.000000000 +0200 +@@ -142,6 +142,7 @@ WHERE char *StChars; WHERE char *Status; WHERE char *Tempdir; WHERE char *Tochars; +WHERE char *TrashPath; WHERE char *Username; WHERE char *Visual; - -Index: trash/imap/message.c + WHERE char *XtermTitle; +Index: debian-mutt/imap/message.c =================================================================== ---- trash.orig/imap/message.c 2007-02-14 15:32:38.000000000 +0100 -+++ trash/imap/message.c 2007-02-15 19:34:10.325887888 +0100 -@@ -817,6 +817,7 @@ int imap_copy_messages (CONTEXT* ctx, HE +--- debian-mutt.orig/imap/message.c 2007-05-16 23:08:46.000000000 +0200 ++++ debian-mutt/imap/message.c 2007-05-16 23:09:20.000000000 +0200 +@@ -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); @@ -119,7 +119,7 @@ Index: trash/imap/message.c if (option (OPTDELETEUNTAG)) mutt_set_flag (ctx, ctx->hdrs[n], M_TAG, 0); } -@@ -824,6 +825,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); @@ -127,11 +127,11 @@ Index: trash/imap/message.c if (option (OPTDELETEUNTAG)) mutt_set_flag (ctx, h, M_TAG, 0); } -Index: trash/init.h +Index: debian-mutt/init.h =================================================================== ---- trash.orig/init.h 2006-12-12 14:15:03.000000000 +0100 -+++ trash/init.h 2007-02-15 19:34:10.326887736 +0100 -@@ -2808,6 +2808,16 @@ struct option_t MuttVars[] = { +--- debian-mutt.orig/init.h 2007-05-16 23:09:10.000000000 +0200 ++++ debian-mutt/init.h 2007-05-16 23:09:20.000000000 +0200 +@@ -2873,6 +2873,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,11 +148,11 @@ Index: trash/init.h #ifdef USE_SOCKET { "tunnel", DT_STR, R_NONE, UL &Tunnel, UL 0 }, /* -Index: trash/mutt.h +Index: debian-mutt/mutt.h =================================================================== ---- trash.orig/mutt.h 2007-01-04 15:23:49.000000000 +0100 -+++ trash/mutt.h 2007-02-15 19:34:10.327887584 +0100 -@@ -200,6 +200,7 @@ enum +--- debian-mutt.orig/mutt.h 2007-05-16 23:09:10.000000000 +0200 ++++ debian-mutt/mutt.h 2007-05-16 23:09:20.000000000 +0200 +@@ -206,6 +206,7 @@ enum M_DELETE, M_UNDELETE, M_DELETED, @@ -160,7 +160,7 @@ Index: trash/mutt.h M_FLAG, M_TAG, M_UNTAG, -@@ -703,6 +704,7 @@ typedef struct header +@@ -718,6 +719,7 @@ typedef struct header unsigned int mime : 1; /* has a MIME-Version header? */ unsigned int flagged : 1; /* marked important? */ unsigned int tagged : 1; @@ -168,19 +168,19 @@ Index: trash/mutt.h unsigned int deleted : 1; unsigned int changed : 1; unsigned int attach_del : 1; /* has an attachment marked for deletion */ -@@ -873,6 +875,7 @@ typedef struct +@@ -889,6 +891,7 @@ typedef struct _context int new; /* how many new messages? */ int unread; /* how many unread messages? */ int deleted; /* how many deleted messages */ + int appended; /* how many saved messages? */ int flagged; /* how many flagged messages */ int msgnotreadyet; /* which msg "new" in pager, -1 if none */ - #if defined USE_POP || defined USE_IMAP -Index: trash/muttlib.c + +Index: debian-mutt/muttlib.c =================================================================== ---- trash.orig/muttlib.c 2007-01-04 15:23:50.000000000 +0100 -+++ trash/muttlib.c 2007-02-15 19:34:10.327887584 +0100 -@@ -1265,7 +1265,9 @@ int mutt_save_confirm (const char *s, st +--- debian-mutt.orig/muttlib.c 2007-05-16 23:08:47.000000000 +0200 ++++ debian-mutt/muttlib.c 2007-05-16 23:09:20.000000000 +0200 +@@ -1384,7 +1384,9 @@ int mutt_save_confirm (const char *s, st if (magic > 0 && !mx_access (s, W_OK)) { @@ -191,11 +191,11 @@ Index: trash/muttlib.c { snprintf (tmp, sizeof (tmp), _("Append messages to %s?"), s); if ((rc = mutt_yesorno (tmp, M_YES)) == M_NO) -Index: trash/mx.c +Index: debian-mutt/mx.c =================================================================== ---- trash.orig/mx.c 2006-12-12 14:15:03.000000000 +0100 -+++ trash/mx.c 2007-02-15 19:34:10.328887432 +0100 -@@ -822,6 +822,53 @@ static int sync_mailbox (CONTEXT *ctx, i +--- debian-mutt.orig/mx.c 2007-05-16 23:09:10.000000000 +0200 ++++ debian-mutt/mx.c 2007-05-16 23:09:20.000000000 +0200 +@@ -838,6 +838,53 @@ static int sync_mailbox (CONTEXT *ctx, i return rc; } @@ -249,7 +249,7 @@ Index: trash/mx.c /* save changes and close mailbox */ int mx_close_mailbox (CONTEXT *ctx, int *index_hint) { -@@ -957,6 +1004,7 @@ int mx_close_mailbox (CONTEXT *ctx, int +@@ -973,6 +1020,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); @@ -257,7 +257,7 @@ Index: trash/mx.c } else { -@@ -978,6 +1026,14 @@ int mx_close_mailbox (CONTEXT *ctx, int +@@ -994,6 +1042,14 @@ int mx_close_mailbox (CONTEXT *ctx, int return 0; } @@ -272,7 +272,7 @@ Index: trash/mx.c #ifdef USE_IMAP /* allow IMAP to preserve the deleted flag across sessions */ if (ctx->magic == M_IMAP) -@@ -1173,6 +1229,12 @@ int mx_sync_mailbox (CONTEXT *ctx, int * +@@ -1194,6 +1250,12 @@ int mx_sync_mailbox (CONTEXT *ctx, int * msgcount = ctx->msgcount; deleted = ctx->deleted; @@ -285,10 +285,10 @@ Index: trash/mx.c #ifdef USE_IMAP if (ctx->magic == M_IMAP) rc = imap_sync_mailbox (ctx, purge, index_hint); -Index: trash/postpone.c +Index: debian-mutt/postpone.c =================================================================== ---- trash.orig/postpone.c 2006-12-12 14:15:03.000000000 +0100 -+++ trash/postpone.c 2007-02-15 19:34:10.328887432 +0100 +--- debian-mutt.orig/postpone.c 2007-04-12 19:06:45.000000000 +0200 ++++ debian-mutt/postpone.c 2007-05-16 23:09:20.000000000 +0200 @@ -279,6 +279,9 @@ int mutt_get_postponed (CONTEXT *ctx, HE /* finished with this message, so delete it. */ mutt_set_flag (PostContext, h, M_DELETE, 1); @@ -299,9 +299,12 @@ Index: trash/postpone.c /* update the count for the status display */ PostCount = PostContext->msgcount - PostContext->deleted; -Index: trash/PATCHES +Index: debian-mutt/PATCHES =================================================================== ---- trash/PATCHES.orig 2007-02-15 19:35:06.277381968 +0100 -+++ trash/PATCHES 2007-02-15 19:35:06.277381968 +0100 -@@ -0,0 +1 @@ +--- debian-mutt.orig/PATCHES 2007-05-16 23:09:10.000000000 +0200 ++++ debian-mutt/PATCHES 2007-05-16 23:09:20.000000000 +0200 +@@ -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