I've updated my earlier patch that modifies mutt to display a '$' to indicate an e-mail has been saved or copied. It is now based on mutt 1.5.11. The docs have been updated as well. I find this useful when reviewing e-mails marked for deletion. -- Will Fiveash
--- mutt-1.5.11/commands.c Tue Aug 2 02:08:00 2005 +++ mutt-1.5.11-save-patch/commands.c Fri Jun 2 17:19:43 2006 @@ -683,6 +683,8 @@ if ((rc = mutt_append_message (ctx, Context, h, cmflags, chflags)) != 0) return rc; + else + mutt_set_flag (Context, h, M_APPENDED, 1); if (delete) { --- mutt-1.5.11/curs_main.c Wed Sep 7 03:19:43 2005 +++ mutt-1.5.11-save-patch/curs_main.c Fri Jun 2 17:05:43 2006 @@ -1381,7 +1381,7 @@ (op == OP_DECRYPT_SAVE) || (op == OP_DECRYPT_COPY) || 0, &menu->redraw) == 0 && - (op == OP_SAVE || op == OP_DECODE_SAVE || op == OP_DECRYPT_SAVE) + (op == OP_SAVE || op == OP_DECODE_SAVE || op == OP_COPY_MESSAGE || op == OP_DECRYPT_SAVE) ) { if (tag) --- mutt-1.5.11/flags.c Thu Feb 3 12:47:52 2005 +++ mutt-1.5.11-save-patch/flags.c Fri Jun 2 17:33:09 2006 @@ -221,6 +221,12 @@ } break; + case M_APPENDED: + if (bf) { + h->appended = 1; + } + break; + case M_FLAG: #ifdef USE_IMAP --- mutt-1.5.11/hdrline.c Sat Feb 12 12:53:35 2005 +++ mutt-1.5.11-save-patch/hdrline.c Fri Jun 2 17:43:33 2006 @@ -644,13 +644,14 @@ ch = 'K'; snprintf (buf2, sizeof (buf2), - "%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' : + "%c%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' : ((hdr->read && (ctx && ctx->msgnotreadyet != hdr->msgno)) ? (hdr->replied ? 'r' : ' ') : (hdr->old ? 'O' : 'N')))), hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch), hdr->tagged ? '*' : (hdr->flagged ? '!' : - (Tochars && ((i = mutt_user_is_recipient (hdr)) < mutt_strlen (Tochars)) ? Tochars[i] : ' '))); + (Tochars && ((i = mutt_user_is_recipient (hdr)) < mutt_strlen (Tochars)) ? Tochars[i] : ' ')), + hdr->appended ? '$' : ' '); mutt_format_s (dest, destlen, prefix, buf2); break; --- mutt-1.5.11/mutt.h Wed Sep 7 03:19:43 2005 +++ mutt-1.5.11-save-patch/mutt.h Fri Jun 2 17:57:08 2006 @@ -204,6 +204,7 @@ M_LIMIT, M_EXPIRED, M_SUPERSEDED, + M_APPENDED, /* actions for mutt_pattern_comp/mutt_pattern_exec */ M_AND, @@ -700,6 +701,7 @@ unsigned int expired : 1; /* already expired? */ unsigned int superseded : 1; /* got superseded? */ unsigned int replied : 1; + unsigned int appended : 1; unsigned int subject_changed : 1; /* used for threading */ unsigned int threaded : 1; /* used for threading */ unsigned int display_subject : 1; /* used for threading */ --- mutt-1.5.11/pager.c Tue Sep 13 10:59:55 2005 +++ mutt-1.5.11-save-patch/pager.c Fri Jun 2 17:09:11 2006 @@ -2525,6 +2525,7 @@ (ch == OP_DECRYPT_SAVE) || (ch == OP_DECRYPT_COPY) || 0, &redraw) == 0 && (ch == OP_SAVE || ch == OP_DECODE_SAVE + || ch == OP_COPY_MESSAGE || ch == OP_DECRYPT_SAVE )) { --- mutt-1.5.11/doc/manual.xml.head Tue Sep 6 11:46:44 2005 +++ /export/willf/src/mutt/mutt-1.5.11-save-patch/doc/manual.xml.head Thu Jun 8 16:34:00 2006 @@ -432,6 +432,14 @@ </para> </listitem> </varlistentry> +<varlistentry> +<term>$</term> +<listitem> +<para> +message was successfully appended to another folder +</para> +</listitem> +</varlistentry> </variablelist> </para>
Attachment:
pgplMy7cu6ViF.pgp
Description: PGP signature