mutt stable branch with some hacks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

When $flag_safe is set, flagged messages cannot be deleted.

This saves them from bulk operations on threads and tagged messages. To
remove a flagged message, first unflag it.

+13 -3
+2 -1
flags.c
··· 45 45 46 46 if (bf) 47 47 { 48 - if (!h->deleted && !ctx->readonly) 48 + if (!h->deleted && !ctx->readonly 49 + && (!h->flagged || !option(OPTFLAGSAFE))) 49 50 { 50 51 h->deleted = 1; 51 52 update = 1;
+5
init.h
··· 799 799 ** signed. 800 800 ** (PGP only) 801 801 */ 802 + { "flag_safe", DT_BOOL, R_NONE, OPTFLAGSAFE, 0 }, 803 + /* 804 + ** .pp 805 + ** If set, flagged messages cannot be deleted. 806 + */ 802 807 { "folder", DT_PATH, R_NONE, UL &Maildir, UL "~/Mail" }, 803 808 /* 804 809 ** .pp
+5 -2
mh.c
··· 696 696 break; 697 697 698 698 case 'T': /* trashed */ 699 - h->trash = 1; 700 - h->deleted = 1; 699 + if (!h->flagged || !option(OPTFLAGSAFE)) 700 + { 701 + h->trash = 1; 702 + h->deleted = 1; 703 + } 701 704 break; 702 705 703 706 default:
+1
mutt.h
··· 352 352 OPTENVFROM, 353 353 OPTFASTREPLY, 354 354 OPTFCCCLEAR, 355 + OPTFLAGSAFE, 355 356 OPTFOLLOWUPTO, 356 357 OPTFORCENAME, 357 358 OPTFORWDECODE,