<<< Date Index >>>     <<< Thread Index >>>

Re: Change of "important" character



* Thu Oct  6 2005 Parv <parv@xxxxxxxx>

> Could somebody please tell me which file(s) to i have to touch in
> source in order to change the "important" character from "!" to
> something thicker?

Maybe hdrline.c.
If you just want to use "!!!", see the attached patch.

> Alternatively, is there any way to change the color (thus the font)
> only of the '!' (keeping other colors unchanged)?

I'm afraid it is impossible.
But I guess it could be possible with the indexcolor patch;
http://greek0.net/~greek0/mutt/
I haven't used this patch, though.

-- 
tamo
--- hdrline.c.BAK       Thu Oct  6 22:53:58 2005
+++ hdrline.c   Thu Oct  6 23:30:49 2005
@@ -666,14 +666,20 @@ hdr_format_str (char *dest,
       else if ((WithCrypto & APPLICATION_PGP) && hdr->security & PGPKEY)
         ch = 'K';
 
+    {
+      char wTochar[4];
+      snprintf (wTochar, sizeof (wTochar), " %c ",
+                (Tochars &&
+                 ((i = mutt_user_is_recipient (hdr)) < mutt_strlen (Tochars)))
+                ? Tochars[i] : ' ');
       snprintf (buf2, sizeof (buf2),
-               "%c%c%c", (THREAD_NEW ? 'n' : (THREAD_OLD ? 'o' : 
+               "%c%c%s", (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] : ' ')));
+               hdr->tagged ? " * " :
+               (hdr->flagged ? "!!!" : wTochar));
+    }
       mutt_format_s (dest, destlen, prefix, buf2);
       break;