--- mutt-1.3.25/PATCHES.orig Wed Jan 16 00:34:58 2002 +++ mutt-1.3.25/PATCHES Wed Jan 16 00:35:16 2002 @@ -0,0 +1 @@ +Bloat patch: X-Backlog 1.3.25 by Stefan `Sec` Zehl --- mutt-1.3.25/init.h.orig Mon Dec 10 11:09:03 2001 +++ mutt-1.3.25/init.h Wed Jan 16 00:34:44 2002 @@ -255,6 +255,12 @@ ** unset, you must first use the tag-prefix function (default: ";") to ** make the next function apply to all tagged messages. */ + { "backlog", DT_BOOL, R_NONE, OPTBACKLOG, 0 }, + /* + ** .pp + ** When set Mutt will add an "X-Backlog:" header to outgoing Mails + ** containing the number of undeleted messages in your current mailbox . + */ { "beep", DT_BOOL, R_NONE, OPTBEEP, 1 }, /* ** .pp --- mutt-1.3.25/mutt.h.orig Thu Dec 13 13:10:49 2001 +++ mutt-1.3.25/mutt.h Wed Jan 16 00:34:44 2002 @@ -311,6 +311,7 @@ OPTATTACHSPLIT, OPTAUTOEDIT, OPTAUTOTAG, + OPTBACKLOG, OPTBEEP, OPTBEEPNEW, OPTBOUNCEDELIVERED, --- mutt-1.3.25/sendlib.c.orig Mon Dec 3 11:17:57 2001 +++ mutt-1.3.25/sendlib.c Wed Jan 16 00:34:48 2002 @@ -1638,6 +1638,11 @@ mutt_write_address_list (env->mail_followup_to, fp, 18); } + if(Context && option (OPTBACKLOG)){ + fprintf(fp,"X-Current-Backlog: %d messages\n", + Context->msgcount - Context->deleted); + } + if (mode <= 0) { if (env->references) @@ -1673,8 +1678,11 @@ p++; SKIPWS (p); if (!*p) continue; /* don't emit empty fields. */ + if (!(option(OPTBACKLOG) && + (strncasecmp("X-Current-Backlog:",tmp->data,18)==0))){ fputs (tmp->data, fp); fputc ('\n', fp); + } } }