Re: Color messages in the index view dynamically
Thanks Ed. In case someone else is interested in setting this up too, here is where I am so far. Having the messages in the maildir format on my side, I regularly (upon new message arrival using Mutt's $new_mail_command, and also once a day) scan the To-do folder with a script (here is a simplified version; uses procmail and mblaze packages): #!/bin/zsh while IFS=$'\n' read -r mailfile; do _due=$(formail -c -f -z -x 'Subject' < "${mailfile}" \ | grep --only-matching --max-count=1 --perl-regexp --regexp="[0-9]{4}-[0-9]{2}-[0-9]{2}" \ | tr --delete - \ ) if [[ -n $_due ]]; then due=$(date -d "$_due" +%s) now=$(date -d $(date +%Y-%m-%d) +%s) if [[ $now -ge $due ]]; then echo "$(formail -f -I 'X-TODO: OVERDUE' < ${mailfile} | cat )" > "${mailfile}" mflag -F "${mailfile}" > /dev/null 2>&1 fi fi done < <(find ~/Mail/To-do -type f -print) It adds a custom header X-TODO, based on which I mark respective messages with color: color index white red "~h '^X-TODO: OVERDUE$'" To propagate changes to the far side, along with adding the header, which is never syncing, I also add a flag, which does sync. Anyway, Gmail’s web interface does not support sorting by subject, so at least I can spot the starred messages of interest there. Best, -- Dmitry On Thu, Jul 7, 2022 at 4:40 PM dm1...@gmail.com wrote: > > Hi all, > > I have some messages with a subject line containing the "due:[here > goes some date]" text. I want mutt to color these messages differently > and dynamically (at every opening or refreshing the mailbox) according > to whether the date in the subject is in the past or the future > compared with the current date. > Is it possible to accomplish? > > It would be nice to enchance the "todo.txt" approach with the "to-do > mailbox" advantages :-) > > Best, > > -- > Dmitry
Re: Color messages in the index view dynamically
I can get you part of the way, but someone else will have to help with the last part (if it's possible at all). I have mutt set up to use a different index_format on a per-message basis, so that I can see more detailed time information for messages that are newer, and courser and courser as the message gets older. For example, ' 4:41pm' for a message less than a day old, up to '01/20/22' for a message over 30 days old. I do this by adding this line to .muttrc: set index_format="/home/edgewood/.mutt/bin/format_date '%[%s]' '%1<%s>' |" That sets the index_format for each individual message by running the format_date command and passing information from the message, in this case the datetime of the message in epoch seconds, and the current datetime in epoch seconds. The command then prints a different index command depending on the difference between them. (Note, it looks like http://www.mutt.org/doc/manual/#index-format-hook is the modern way to do this.) You could do this: set index_format="/path/to/format_subject '%s' |" That command would need to examine the passed subject, and print something different depending on what it was. But that's where I run out of ideas. I don't *think* you can embed ANSI color commands in the index format, and I don't know of a way to run shell commands in the pattern for color commands. Maybe this inspires someone else that can get you closer. Ed On Thu, Jul 07, 2022 at 04:40:26PM +0300, dm1...@gmail.com wrote: > Hi all, > > I have some messages with a subject line containing the "due:[here > goes some date]" text. I want mutt to color these messages differently > and dynamically (at every opening or refreshing the mailbox) according > to whether the date in the subject is in the past or the future > compared with the current date. > Is it possible to accomplish? > > It would be nice to enchance the "todo.txt" approach with the "to-do > mailbox" advantages :-) > > Best, > > -- > Dmitry -- Ed Blackman
Color messages in the index view dynamically
Hi all, I have some messages with a subject line containing the "due:[here goes some date]" text. I want mutt to color these messages differently and dynamically (at every opening or refreshing the mailbox) according to whether the date in the subject is in the past or the future compared with the current date. Is it possible to accomplish? It would be nice to enchance the "todo.txt" approach with the "to-do mailbox" advantages :-) Best, -- Dmitry
Re: multiple color schemes
On 08Sep21 15:50-0400, Jon LaBadie wrote: > On Wed, Sep 08, 2021 at 04:23:59PM +0300, Oleg A. Mamontov wrote: > > On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: > > > I've always preferred a black letters on white background scheme. > > > However, after cataract surgery I'm considering using a dark > > > background scheme. > > > > > > Has anyone a technique for defining multiple color schemes and > > > toggling among them while using mutt? While talking about colors, I'd like to suggest to have a look at the solarized color schemes. Configs for those are available for many programs (from terminal emulators up to e.g. heavy weight GUIs of IDEs). Primarily, I use rxvt with a simple extension (perl) which switches the color scheme of the console between solarized-{light,dark}. Thus, not only mutt, but the entire console is using the same theme; in particular also vim, while composing the mail. -- Bastian
Re: multiple color schemes
On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: > I'd like to reduce that to a single macro that toggles between > the files or one that allows selecting from multiple scheme > files, perhaps in round robin fashion. I use this to toggle printer destinations between three settings: In ~/.mutt/muttrc: source ~/.mutt/rc/print-normal.rc In ~/.mutt/rc/print-normal.rc: macro index ":source ~/.mutt/rc/print-pdf.rc\n" set print_command="~/.mutt/bin/muttPrint --highlight=mail" set ?print_command In ~/.mutt/rc/print-pdf.rc: macro index ":source ~/.mutt/rc/print-pdf-onepage.rc\n" set print_command="~/.mutt/bin/muttPrint --highlight=mail -P PDF" set ?print_command In ~/.mutt/rc/print-pdf-onepage.rc: macro index ":source ~/.mutt/rc/print-normal.rc\n" set print_command="~/.mutt/bin/muttPrint --highlight=mail -P PDF -a 1" set ?print_command So each redefines ^P to source the *next* one in the round-robin. When sourced, it changes, then echos, the print_command, to remind me where I am in the rotation. Probably not needed for something immediately visible like the color scheme. -- Ed Blackman
Re: multiple color schemes
* Jon LaBadie [2021-09-08 01:20:27 -0400]: I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. -- Jon H. LaBadie mut...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C) Hi Jon, What about keeping mutt to default foreground and background colors, and switching the terminal color scheme instead? I have this set up, and it allows me to change the color scheme across any terminal programs I use. While white fg on black bg is my usual preference, black fg on white bg is more readable to me when I'm outside and there is more ambient glare on the display. I use the following mutt colors definitions: color normal default default color indicator default color7 color status default default color index bold default default ~N|~F|~T|~D mono index bold ~N|~F|~T|~D My terminal is a patched version of st (https://st.suckless.org), where I added Ctrl-Shift-x to flip between two color schemes: https://src.adamsgaard.dk/st/files.html git://src.adamsgaard.dk/st Color schemes (colorname and altcolorname arrays) and other options are set in config.h at compile time. Just my two cents! Cheers, Anders
Re: multiple color schemes
On Wed, Sep 08, 2021 at 03:47:00PM -0400, Jon LaBadie wrote: > On Wed, Sep 08, 2021 at 04:31:11PM +1000, raf wrote: > > On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie > > wrote: > > > > > I've always preferred a black letters on white background scheme. > > > However, after cataract surgery I'm considering using a dark > > > background scheme. > > > > > > Has anyone a technique for defining multiple color schemes and > > > toggling among them while using mutt? > > > > > > I already keep my color scheme in a separate file and source > > > that file from ~/.muttrc. To extend that, I created two > > > files for light and dark schemes and separate macros (,l and ,d) > > > to source them while running mutt. > > > > > > I'd like to reduce that to a single macro that toggles between > > > the files or one that allows selecting from multiple scheme > > > files, perhaps in round robin fashion. > > > > Someone else will probably give a better answer, but > > here goes. If you have different colour schemes setup > > in different files, you can probably set up a macro in > > your ~/.muttrc that enables the colour scheme you want > > by sourcing the relevant file. e.g. something like: > > > > macro index something :source colour-scheme-1.muttrc\n > > macro index something :source colour-scheme-2.muttrc\n > > > > Where "something" is a key sequence that doesn't > > already do something you care about (e.g. A1, A2). > > That is exactly what I've currently implemented. > > For macro names, I sometimes pick my favorite single letter > and add a leading comma. So my two macros are named ,d (dark) > and ,l (light). > > > Toggling will be more complicated, but doable, if it's really > > needed. It might involve having the macro source a single file, > > and also run an external command that replaces the contents of > > that file with the "other" file. e.g. something like: > > schemes that edit or copy files seem too prone to unanticipated > mess-ups. > > Jon > -- > Jon H. LaBadie j...@labadie.us > 11226 South Shore Rd. (703) 787-0688 (H) > Reston, VA 20190 (703) 935-6720 (C) Yes. Oleg's approach is much better. cheers, raf
Re: multiple color schemes
On Wed, Sep 08, 2021 at 03:50:23PM -0400, Jon LaBadie wrote: On Wed, Sep 08, 2021 at 04:23:59PM +0300, Oleg A. Mamontov wrote: On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. You can try something like below approach with dynamically redefined macro: ~/.muttrc --- macro index XX source ~/.mutt/colors1.muttrc --- ~/.mutt/colors1.muttrc --- # colors #1 macro index XX source ~/.mutt/colors2.muttrc --- ~/.mutt/colors2.muttrc --- # colors #2 macro index XX source ~/.mutt/colors1.muttrc --- Interesting approach. Some interpreted languages prevent the redefinition of a macro while that macro is executing. Not sure about mutt's interpreter, I'll have to check. While I believe mutt isn't the case, you can use similar approach but with variables only: ~/.muttrc --- set my_colors = '2'; macro index AA ':source ~/.mutt/colors.$my_colors.muttrc' --- ~/.mutt/colors.1.muttrc --- # colors #1 set my_colors = '2'; --- ~/.mutt/colors.2.muttrc --- # colors #2 set my_colors = '1'; --- Just tested it successfuly. Hope this helps. thanks, -- Jon H. LaBadie mut...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C) -- Cheers, Oleg A. Mamontov mailto: o...@mamontov.net skype: lonerr11 cell: +7 (903) 798-1352
Re: multiple color schemes
On Wed, Sep 08, 2021 at 04:23:59PM +0300, Oleg A. Mamontov wrote: On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. You can try something like below approach with dynamically redefined macro: ~/.muttrc --- macro index XX source ~/.mutt/colors1.muttrc --- ~/.mutt/colors1.muttrc --- # colors #1 macro index XX source ~/.mutt/colors2.muttrc --- ~/.mutt/colors2.muttrc --- # colors #2 macro index XX source ~/.mutt/colors1.muttrc --- Interesting approach. Some interpreted languages prevent the redefinition of a macro while that macro is executing. Not sure about mutt's interpreter, I'll have to check. thanks, -- Jon H. LaBadie mut...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: multiple color schemes
On Wed, Sep 08, 2021 at 04:31:11PM +1000, raf wrote: On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. Someone else will probably give a better answer, but here goes. If you have different colour schemes setup in different files, you can probably set up a macro in your ~/.muttrc that enables the colour scheme you want by sourcing the relevant file. e.g. something like: macro index something :source colour-scheme-1.muttrc\n macro index something :source colour-scheme-2.muttrc\n Where "something" is a key sequence that doesn't already do something you care about (e.g. A1, A2). That is exactly what I've currently implemented. For macro names, I sometimes pick my favorite single letter and add a leading comma. So my two macros are named ,d (dark) and ,l (light). Toggling will be more complicated, but doable, if it's really needed. It might involve having the macro source a single file, and also run an external command that replaces the contents of that file with the "other" file. e.g. something like: schemes that edit or copy files seem too prone to unanticipated mess-ups. Jon -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: multiple color schemes
On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. You can try something like below approach with dynamically redefined macro: ~/.muttrc --- macro index XX source ~/.mutt/colors1.muttrc --- ~/.mutt/colors1.muttrc --- # colors #1 macro index XX source ~/.mutt/colors2.muttrc --- ~/.mutt/colors2.muttrc --- # colors #2 macro index XX source ~/.mutt/colors1.muttrc --- -- Jon H. LaBadie mut...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C) -- Cheers, Oleg A. Mamontov mailto: o...@mamontov.net skype: lonerr11 cell: +7 (903) 798-1352
Re: multiple color schemes
On Wed, Sep 08, 2021 at 01:20:27AM -0400, Jon LaBadie wrote: > I've always preferred a black letters on white background scheme. > However, after cataract surgery I'm considering using a dark > background scheme. > > Has anyone a technique for defining multiple color schemes and > toggling among them while using mutt? > > I already keep my color scheme in a separate file and source > that file from ~/.muttrc. To extend that, I created two > files for light and dark schemes and separate macros (,l and ,d) > to source them while running mutt. > > I'd like to reduce that to a single macro that toggles between > the files or one that allows selecting from multiple scheme > files, perhaps in round robin fashion. > > -- > Jon H. LaBadie mut...@jgcomp.com > 11226 South Shore Rd. (703) 787-0688 (H) > Reston, VA 20190 (703) 935-6720 (C) Someone else will probably give a better answer, but here goes. If you have different colour schemes setup in different files, you can probably set up a macro in your ~/.muttrc that enables the colour scheme you want by sourcing the relevant file. e.g. something like: macro index something :source colour-scheme-1.muttrc\n macro index something :source colour-scheme-2.muttrc\n Where "something" is a key sequence that doesn't already do something you care about (e.g. A1, A2). You might also need to define the macro in other places in addition to "index". Toggling will be more complicated, but doable, if it's really needed. It might involve having the macro source a single file, and also run an external command that replaces the contents of that file with the "other" file. e.g. something like: macro index AA :!toggle-colour-scheme\n:source next-colour-scheme.muttrc\n If you see what I mean (toggle-colour-scheme is a command that swaps the files around). Note: None of this is tested. It's just conjecture. cheers, raf
multiple color schemes
I've always preferred a black letters on white background scheme. However, after cataract surgery I'm considering using a dark background scheme. Has anyone a technique for defining multiple color schemes and toggling among them while using mutt? I already keep my color scheme in a separate file and source that file from ~/.muttrc. To extend that, I created two files for light and dark schemes and separate macros (,l and ,d) to source them while running mutt. I'd like to reduce that to a single macro that toggles between the files or one that allows selecting from multiple scheme files, perhaps in round robin fashion. -- Jon H. LaBadie mut...@jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: Color display question
> I think that might be elinks. I'm not sure about what all the relevant > options are, but document.colors.text (default foreground) may be what > is giving you light gray text. You probably also want > document.colors.use_document_colors to be 2 and document.css.enable to > be enabled (1)? Thanks. I gave that a try, but no change. document.colors.background and document.colors.text don't seem to have any effect. document.colors.use_document_colors is set to 2 by default, and document.css.enable is set to 1 by default. The only visible change is when I change document.dump.color_mode to 0, which disables color and basically sets monochrome mode. document.colors.use_document_colors 0 and 1 have the same light gray text but no highlighting.
Re: Color display question
On 2021-07-21, isdtor wrote: > I realize my config has a lot of moving parts and non-default > settings, but I still hope someone can shine a light on this. > > I use less instead of the internal pager (note -R option), > > set pager="less -eiMR" > > and elinks for html display > > text/html; /usr/bin/elinks -localhost 1 -no-connect 1 -force-html > -dump '%s' ; copiousoutput > > The terminal is gnome-terminal which defaults to TERM=xterm, supports > 80 colors according to tput, and muttrc sources a terminal-specific > file with color settings the original source of which I don't > remember. > > color header red black .* # (match regexp in the message header) > color header yellow black ^To: # (match regexp in the message header) > color header green black ^Subject: # (match regexp in the message > header) > color index white black .* # index > color indicator white blue # index > color markers redgreen # `+' markers at beginning of wrapped lines > color message white black > color normal white black # pager body > > Sometimes I receive email with text emphasized by color, say, yellow > background. The described setup, while coloring the index view, shows > all text in monochrome, so I'm missing some information and need to > open the message in firefox. > > elinks can handle color, so I added this setting to ~/elinks/elinks.conf > > set document.dump.color_mode = 4 > > The result is that when a html message is viewed, the headers continue > to be shown normally - white background, black text - but the message > text is now less readable with white background and light grey > text. Any highlighted text is displayed in black with grey background > (not matching background-color style from the html source, but I can > lvie with that). > > The main problem is that the text is light grey, which is barely > readable on white background. Any idea where I can tweak this? My > first guess was this is controlled by less, but I played with various > settings for LESS_TERMCAP_md, with no tangible results. I think that might be elinks. I'm not sure about what all the relevant options are, but document.colors.text (default foreground) may be what is giving you light gray text. You probably also want document.colors.use_document_colors to be 2 and document.css.enable to be enabled (1)? -- Nuno Silva
Color display question
I realize my config has a lot of moving parts and non-default settings, but I still hope someone can shine a light on this. I use less instead of the internal pager (note -R option), set pager="less -eiMR" and elinks for html display text/html; /usr/bin/elinks -localhost 1 -no-connect 1 -force-html -dump '%s' ; copiousoutput The terminal is gnome-terminal which defaults to TERM=xterm, supports 80 colors according to tput, and muttrc sources a terminal-specific file with color settings the original source of which I don't remember. color header red black .* # (match regexp in the message header) color header yellow black ^To: # (match regexp in the message header) color header green black ^Subject: # (match regexp in the message header) color index white black .* # index color indicator white blue # index color markers redgreen # `+' markers at beginning of wrapped lines color message white black color normal white black # pager body Sometimes I receive email with text emphasized by color, say, yellow background. The described setup, while coloring the index view, shows all text in monochrome, so I'm missing some information and need to open the message in firefox. elinks can handle color, so I added this setting to ~/elinks/elinks.conf set document.dump.color_mode = 4 The result is that when a html message is viewed, the headers continue to be shown normally - white background, black text - but the message text is now less readable with white background and light grey text. Any highlighted text is displayed in black with grey background (not matching background-color style from the html source, but I can lvie with that). The main problem is that the text is light grey, which is barely readable on white background. Any idea where I can tweak this? My first guess was this is controlled by less, but I played with various settings for LESS_TERMCAP_md, with no tangible results.
Re: index color scheme
On Tue, Apr 27, 2021 at 08:04:48AM +1000, Cameron Simpson wrote: On 26Apr2021 16:32, Jon LaBadie wrote: I can't figure out the correct configuration for my desired 3 color scheme for the index. I can get New messages one color and Read messages a second. My third color would be for deleted messages. It works fine for Read messages that are deleted, but has no affect on New messages. They stay the same "New message" color when deleted. Probably I'm missing something basic and simple. The color rules are applied in order. Can you show us your rules? I would guess that your new message rule is after your deleted rule. That's it. I thought I had tested order dependency. Obviously inadequate test design. Thank, Jon -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: index color scheme
On 26Apr2021 16:32, Jon LaBadie wrote: >I can't figure out the correct configuration for my desired >3 color scheme for the index. > >I can get New messages one color and Read messages a second. > >My third color would be for deleted messages. It works fine >for Read messages that are deleted, but has no affect on New >messages. They stay the same "New message" color when deleted. > >Probably I'm missing something basic and simple. The color rules are applied in order. Can you show us your rules? I would guess that your new message rule is after your deleted rule. Cheers, Cameron Simpson
index color scheme
I can't figure out the correct configuration for my desired 3 color scheme for the index. I can get New messages one color and Read messages a second. My third color would be for deleted messages. It works fine for Read messages that are deleted, but has no affect on New messages. They stay the same "New message" color when deleted. Probably I'm missing something basic and simple. jl -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: Mutt color scheme
Quoting Francesco Ariis from 02 Mar (a Tuesday in 2021) at 0335 hours... > Il 01 marzo 2021 alle 17:37 M.R.P. zensky ha scritto: > > Hello running ubuntu linux have mutt installed and I am wondering > > if I can change the color scheme? > > Sure! The `color` directive is used like > > color indicator yellow black > > and does what you ask. More info: > > http://www.mutt.org/doc/manual/#color > If you really hate yourself, this config block will just pick a random colour for everything, every time ;) (but sometimes doing crazy things can make for an interesting learning experience?) https://pub.thorx.net/mutt/muttrc-256colcrazy .../Nemo -- - - earth native
Re: Mutt color scheme
Il 01 marzo 2021 alle 17:37 M.R.P. zensky ha scritto: > Hello running ubuntu linux have mutt installed and I am wondering > if I can change the color scheme? Sure! The `color` directive is used like color indicator yellow black and does what you ask. More info: http://www.mutt.org/doc/manual/#color
Mutt color scheme
Hello running ubuntu linux have mutt installed and I am wondering if I can change the color scheme?
Re: color of unknown object
Hi Matthias, that might be: color compose header fgcolor bgcolor Best, JJ On 2020-12-07 08:01, Matthias Apitz wrote: Hello, I'm struggling with a color problem in mutt 2.0.2: In the last menu before sending the mail: - y:Send q:Abort t:To c:CC s:Subj a:Attach file d:Descrip ?:Help From: Matthias Apitz To: Matthias Apitz Cc: Bcc: Subject: t Reply-To: Matthias Apitz Fcc: =outboxC720 Security: Sign (PGP/MIME) Sign as: - the background of the header tags like ' From: ' is set to black (as the foreground color) from the beginning of the line to the first blank after the colon and the text is not readable, because foreground and background are identically. What is the name of this object for the value in ~/.muttrc? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин) Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin) -- Jakub Jindra DevOps Engineer www.socialbakers.com signature.asc Description: PGP signature
color of unknown object
Hello, I'm struggling with a color problem in mutt 2.0.2: In the last menu before sending the mail: - y:Send q:Abort t:To c:CC s:Subj a:Attach file d:Descrip ?:Help From: Matthias Apitz To: Matthias Apitz Cc: Bcc: Subject: t Reply-To: Matthias Apitz Fcc: =outboxC720 Security: Sign (PGP/MIME) Sign as: - the background of the header tags like ' From: ' is set to black (as the foreground color) from the beginning of the line to the first blank after the colon and the text is not readable, because foreground and background are identically. What is the name of this object for the value in ~/.muttrc? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин) Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)
Has the default color option changed?
I have downloaded latest 1.12.2 via Homebrew. And when I launched, all colours were gone. Have the defaults changed in 1.12.2? -- Pankaj Jangid
Re: Getting color on FreeBSD
On Thu, Aug 22, 2019 at 07:14:28PM -0500, Tim Chase wrote: I'm a bit stuck trying to figure out why colors aren't working for me on FreeBSD (where I understand that termcap is used rather than terminfo). How are you invoking mutt? The only way I can get a mono mutt display is by invoking mutt with an empty config file (as I have a .muttrc with color statements already): touch .argaerg mutt -F .argaerg Have you tried copying the supplied sample.muttrc to $HOME/.muttrc and then running mutt? It'll at least show you colour if $TERM is xterm-256color If you installed mutt with pkg, colour will be enabled. Here's my mutt -v : Mutt 1.12.1 (2019-06-15) Copyright (C) 1996-2016 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: FreeBSD 12.0-RELEASE-p10 (amd64) ncurses: ncurses 5.9.20140222 (compiled with 5.9) libiconv: 1.14 libidn2: 2.2.0 (compiled with 2.2.0) hcache backend: Berkeley DB 5.3.28: (September 9, 2013) Compiler: FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin [...] Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE -USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP +USE_SSL_OPENSSL -USE_SSL_GNUTLS +USE_SASL -USE_GSS +HAVE_GETADDRINFO +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +HAVE_FUTIMENS +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS +LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS -HAVE_LIBIDN +HAVE_LIBIDN2 +HAVE_GETSID +USE_HCACHE +USE_SIDEBAR +USE_COMPRESSED -USE_INOTIFY -ISPELL -- J. signature.asc Description: PGP signature
Re: Getting color on FreeBSD
On Thu, Aug 22, 2019 at 08:14:28PM EDT, Tim Chase wrote: > I'm a bit stuck trying to figure out why colors aren't working for me > on FreeBSD (where I understand that termcap is used rather than > terminfo). According to the configure script it appears all you need for color is start_color() from ncurses which should be there in the base system. Can you provide 'mutt -v' output? Does it have +HAVE_COLOR? Are you building mutt from source or using ports/pkg? If so can you provide the output off 'pkg info -f mutt' > So the terminal is doing color as expected, but somehow mutt/neomutt > doesn't seem to recognize that. Is there some trick that I've missed > for getting mutt/neomutt to play well with termcap/FreeBSD? I'm doing nothing special in ports/pkg or from source and colors just works with macOS Terminal/iTerm2, or cygwin xterm. Do you get color unknown command when you try to use 'color ...' in a .muttrc?
Getting color on FreeBSD
I'm a bit stuck trying to figure out why colors aren't working for me on FreeBSD (where I understand that termcap is used rather than terminfo). Things should be set correctly: $ echo $TERM xterm $ tput Co pa 8 64 I've also tried setting $TERM to xterm-256color $ echo $TERM xterm-256color $ tput Co pa 256 32767 Attempting to set the color in mutt with color status blue white works as expected on my Linux boxes but does nothing on my FreeBSD box. Colors work fine in vim and weechat. Likewise $ tput AF 4; echo hello ; tput me works, as does $ printf '\e[31mHello\e[0m' So the terminal is doing color as expected, but somehow mutt/neomutt doesn't seem to recognize that. Is there some trick that I've missed for getting mutt/neomutt to play well with termcap/FreeBSD? Thanks, -tim
Re: Color headers in pager based on message patterns
On 07Feb2018 20:35, Scott Kostyshak <skostys...@ufl.edu> wrote: Example (untested): message-hook . 'set my_hdr_colour=green' message-hook ~p!~l 'set my_hdr_colour=yellow' message-hook . 'color header $my_hdr_colour default' so that a colour is chosen per message, then applied to your settings. I think that does the trick! I had to change the last of the three hooks to be the following (note the dot at the end): message-hook . 'color header $my_hdr_colour default .' Ah, yes. Thank you very much for taking the time to understand what I was trying to achieve, and for the helpful solution, Cameron. Glad to be of service, Cameron Simpson <c...@cskk.id.au> (formerly c...@zip.com.au) All the doors in this ship have nice sunny dispositions. It is their pleasure to open for you, and their satisfaction to close with the knowledge of a job well done. - Marvin _The Hitchhiker's Guide to the Galaxy_
Re: Color headers in pager based on message patterns
On Wed, Feb 07, 2018 at 10:00:33PM +, Cameron Simpson wrote: > On 07Feb2018 01:05, Scott Kostyshak <skostys...@ufl.edu> wrote: > > I would like to color all header lines in the pager if a message pattern > > matches. > > > > As an example, I can use the following to color the index if a message > > was sent to me and not sent to a list: > > > > color index yellow black ~p!~l > > > > But I cannot do the following: > > > > color header yellow black ~p!~l > > > > to color all headers in the pager if a message was sent to me and not > > sent to a list. This is understandable, as the pattern is matched > > against each header. > > > > As for why I would like to do this, I rarely look at the index. I > > configure mutt to go directly to the pager, so that I focus on one email > > at a time. However, I find the message pattern matching useful so I > > would like to be able to use them to color headers in the pager. > > > > Is it possible to use the message pattern mechanism to color headers > > showing in the pager? > > Yes, you need to be a little indirect. > > My setup has these lines: > > color header $colour_hl1 default "^(from|subject):" > color header $colour_hl1 default "^(x-spam-status):" > > Where $colour_hl1 happens to be cyan. What you want to do is, instead of > defining your header rules once, define them per message via a message-hook. > Example (untested): > > message-hook . 'set my_hdr_colour=green' > message-hook ~p!~l 'set my_hdr_colour=yellow' > message-hook . 'color header $my_hdr_colour default' > > so that a colour is chosen per message, then applied to your settings. > > Cheers, > Cameron Simpson <c...@cskk.id.au> (formerly c...@zip.com.au) I think that does the trick! I had to change the last of the three hooks to be the following (note the dot at the end): message-hook . 'color header $my_hdr_colour default .' Thank you very much for taking the time to understand what I was trying to achieve, and for the helpful solution, Cameron. Best, Scott -- Scott Kostyshak Assistant Professor of Economics University of Florida https://people.clas.ufl.edu/skostyshak/
Re: Color headers in pager based on message patterns
On 07Feb2018 01:05, Scott Kostyshak <skostys...@ufl.edu> wrote: I would like to color all header lines in the pager if a message pattern matches. As an example, I can use the following to color the index if a message was sent to me and not sent to a list: color index yellow black ~p!~l But I cannot do the following: color header yellow black ~p!~l to color all headers in the pager if a message was sent to me and not sent to a list. This is understandable, as the pattern is matched against each header. As for why I would like to do this, I rarely look at the index. I configure mutt to go directly to the pager, so that I focus on one email at a time. However, I find the message pattern matching useful so I would like to be able to use them to color headers in the pager. Is it possible to use the message pattern mechanism to color headers showing in the pager? Yes, you need to be a little indirect. My setup has these lines: color header $colour_hl1 default "^(from|subject):" color header $colour_hl1 default "^(x-spam-status):" Where $colour_hl1 happens to be cyan. What you want to do is, instead of defining your header rules once, define them per message via a message-hook. Example (untested): message-hook . 'set my_hdr_colour=green' message-hook ~p!~l 'set my_hdr_colour=yellow' message-hook . 'color header $my_hdr_colour default' so that a colour is chosen per message, then applied to your settings. Cheers, Cameron Simpson <c...@cskk.id.au> (formerly c...@zip.com.au)
Color headers in pager based on message patterns
I would like to color all header lines in the pager if a message pattern matches. As an example, I can use the following to color the index if a message was sent to me and not sent to a list: color index yellow black ~p!~l But I cannot do the following: color header yellow black ~p!~l to color all headers in the pager if a message was sent to me and not sent to a list. This is understandable, as the pattern is matched against each header. As for why I would like to do this, I rarely look at the index. I configure mutt to go directly to the pager, so that I focus on one email at a time. However, I find the message pattern matching useful so I would like to be able to use them to color headers in the pager. Is it possible to use the message pattern mechanism to color headers showing in the pager? Thanks, Scott -- Scott Kostyshak Assistant Professor of Economics University of Florida https://people.clas.ufl.edu/skostyshak/
Re: color line in compose menu?
On Sun, Feb 12, 2017 at 06:22:20PM +0100, ilf wrote: > Kevin J. McCarthy: > > > I am trying to color the "Security:" line in the compose menu. Is > > > that possible? > > Sorry ilf, that part is not currently colorable. > > Okay, that's what I assumed. > > What do you think of this idea? Does it sound useful to you? > > I for one would really like a color setting there, especially for the > Security:" line. We're just about to freeze for 1.8, but I'll put this on my list to look at for a future release. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
Re: color line in compose menu?
Kevin J. McCarthy: I am trying to color the "Security:" line in the compose menu. Is that possible? Sorry ilf, that part is not currently colorable. Okay, that's what I assumed. What do you think of this idea? Does it sound useful to you? I for one would really like a color setting there, especially for the Security:" line. -- ilf Über 80 Millionen Deutsche benutzen keine Konsole. Klick dich nicht weg! -- Eine Initiative des Bundesamtes für Tastaturbenutzung signature.asc Description: PGP signature
Re: color line in compose menu?
On Sat, Feb 11, 2017 at 04:29:01PM +0100, ilf wrote: > I am trying to color the "Security:" line in the compose menu. Is that > possible? Sorry ilf, that part is not currently colorable. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
color line in compose menu?
I am trying to color the "Security:" line in the compose menu. Is that possible? In the manual, I cannot find "compose" in "object": http://www.mutt.org/doc/manual/#color So, something like this does not work: color compose red default "None" color compose yellow default "Sign" color compose green default "Encrypt" Could anyone point me in the direction how to achieve this? Thanks, and keep up the good work! -- ilf Über 80 Millionen Deutsche benutzen keine Konsole. Klick dich nicht weg! -- Eine Initiative des Bundesamtes für Tastaturbenutzung signature.asc Description: PGP signature
Re: How to color diffs in a patch-mail?
Matthias Beyer <m...@beyermatthias.de> wrote: > On 21-06-2016 13:17:59, steve wrote: > > I use colordiff. > > It seems that there are no mime types set in the patch mails send to > the LKML. Or do I have to install an additional tool for this to work > (besides colordiff of course)? Fwiw, my previous example works with LKML and g...@vger.kernel.org It also works on perl5-port...@perl.org where patches are sent as attachments. color body cyan black ^[+].*$ color body magenta black ^-.*$
Re: How to color diffs in a patch-mail?
Hi Steve, On 21-06-2016 13:17:59, steve wrote: > I use colordiff. > > In my ~/.mailcap, I have > > text/x-diff; cat %s | colordiff; copiousoutput > text/x-patch; cat %s | colordiff; copiousoutput > That sounds nice, though it does not work for example for the LKML... (which isn't your fault, of course, but maybe you know a solution). It seems that there are no mime types set in the patch mails send to the LKML. Or do I have to install an additional tool for this to work (besides colordiff of course)? -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. signature.asc Description: PGP signature
Re: How to color diffs in a patch-mail?
Hi Matthias, I use colordiff. In my ~/.mailcap, I have text/x-diff; cat %s | colordiff; copiousoutput text/x-patch; cat %s | colordiff; copiousoutput Best, Steve
Re: How to color diffs in a patch-mail?
Matthias Beyer <m...@beyermatthias.de> wrote: > can someone tell me how to color diffs in a PATCH mail when viewing > the mail contents with mutt? I use the following: color body cyan black ^[+].*$ color body magenta black ^-.*$ It's not perfect and highlights some things unnecessarily, but it's enough for me.
Re: How to color diffs in a patch-mail?
On 20.06.16 14:01, Matthias Beyer wrote: > can someone tell me how to color diffs in a PATCH mail when viewing > the mail contents with mutt? > > Is it even possible? Dunno. Once a patch has been delivered, I figure we've left the email world. But you could: set editor=vim hit 'e' on the email, and then use vim's syntax highlighting do go to town. A google for "vim syntax diff" seems to throw up all sorts of stuff, including mimicking the colours of a git diff. Erik
How to color diffs in a patch-mail?
Hi, can someone tell me how to color diffs in a PATCH mail when viewing the mail contents with mutt? Is it even possible? -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. signature.asc Description: PGP signature
Re: color messages in index that are sent directly to me (not from list)
On Wed, Dec 30, 2015 at 5:43 AM, Francesco Ariis <fa...@ariis.it> wrote: > On Wed, Dec 30, 2015 at 05:06:07AM -0500, Xu Wang wrote: >> I am part of many mailing lists. I would like to know when: >> >> 1. I am CC'ed or in the To field of an email address >> 2. When (1) is true *and* there is no mailing list in the CC or To field. >> >> (2) is specifically important to me because I need to be absolutely >> sure I don't miss these emails and that I understand they are private >> emails. >> >> Is this possible with Mutt? > > Hello Xu, > not tested but I'd play around with the patterns ~p and ~l (~p!~l > maybe, adding ~c if you need carbon copies too). > Once you tested your pattern (with, say, limit) and it does what expected, > modify colouring with > > color index green black yourpattern > > Ask again if you have troubles with patterns! Thank you Francesco! I have tested and it does what I think I want to achieve. I will test more. Thank you for ideas! Kind regards, Xu
Re: color messages in index that are sent directly to me (not from list)
On Wed, Dec 30, 2015 at 05:06:07AM -0500, Xu Wang wrote: > I am part of many mailing lists. I would like to know when: > > 1. I am CC'ed or in the To field of an email address > 2. When (1) is true *and* there is no mailing list in the CC or To field. > > (2) is specifically important to me because I need to be absolutely > sure I don't miss these emails and that I understand they are private > emails. > > Is this possible with Mutt? Hello Xu, not tested but I'd play around with the patterns ~p and ~l (~p!~l maybe, adding ~c if you need carbon copies too). Once you tested your pattern (with, say, limit) and it does what expected, modify colouring with color index green black yourpattern Ask again if you have troubles with patterns!
color messages in index that are sent directly to me (not from list)
I am part of many mailing lists. I would like to know when: 1. I am CC'ed or in the To field of an email address 2. When (1) is true *and* there is no mailing list in the CC or To field. (2) is specifically important to me because I need to be absolutely sure I don't miss these emails and that I understand they are private emails. Is this possible with Mutt? Kind regards, Xu
dynamic indicator color
Dear list, is it possible to set the indicator color dependant on the message status? Just now, I have set in my .muttrc: color indicator brightblack yellow# active line with cursor color index bluedefault ~N # new messages If the indicator is on a new message, I would like it's color to change to: color indicator blueyellow# active line with cursor Does anybody know, how this could be achieved. I found only the same question unanswered on superuser.com: http://superuser.com/questions/426220/change-mutt-indicator-color-when-hovering-a-new-message Many thanks for Your help, Markus -- o o o o o o o . . . _~\_ _~\_ o _| | | | .][__n_n_|DD[ _ | | | | (|__|_[_]_|__|_|__|_ _/oo O oo` ooo ooo 'o^o^oo^o^o` 'o^oo^o` =
Displaying HTML parts with color?
My current .mailcap file uses w3m to convert HTML parts to text for display: text/html; w3m -I %{charset} -dump %s -cols $COLUMNS; copiousoutput; description=HTML Text; nametemplate=%s.html I'd like to get some text highlighting, such as bold for the To:, From: and other header field names, color for HTML links, etc. w3m does this when it displays the page interactively, but not when the -dump switch is used. Lynx likewise dumps only the plainest of plain text. I know mutt can colorize portions of text/plain messages, but is there any text format that mutt would recognize as containing color, bold, underlining and other text attributes? If so, is there some tool that can generate that format from HTML? Ideally, I'd like the display to look something like what you see in gnus or MH-E. I would assume this is a frequently asked question, but I've been unable to find an answer. Thanks. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: How to set color only for the parent of a thread in index mode?
On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature
Re: How to set color only for the parent of a thread in index mode?
On Sat, Jan 11, 2014 at 05:16:51AM +0100, Kim Christensen wrote: On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). Also, to only match list posts (not normal messages), you could add a check for List-Post header inclusion along with In-Reply-To header exclusion): (!~h In-Reply-To ~h List-Post) Regards, -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature
Re: How to set color only for the parent of a thread in index mode?
On Sat, Jan 11, 2014 at 05:22:58AM +0100, Kim Christensen wrote: On Sat, Jan 11, 2014 at 05:16:51AM +0100, Kim Christensen wrote: On Fri, Jan 10, 2014 at 10:41:57AM +0800, Techlive Zheng wrote: Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? You could match for the following pattern: !~h In-Reply-To: This will only match non-replies (parent messages) and should work with most list managers (haven't seen one that doesn't, yet). Also, to only match list posts (not normal messages), you could add a check for List-Post header inclusion along with In-Reply-To header exclusion): (!~h In-Reply-To ~h List-Post) Another idea: I realize that my suggestions also matches non-threads (single messages list messages) - this may not be what you wanted. One way to make sure the messages is part (and parent) of a thread is by first letting mutt set the thread state itself. This can be done by collapsing all threads, then mathing for messages that: 1) are part of a collapsed thread, and 2) is not a reply Pattern: (~v !~h In-Reply-To) This pattern uses the fact mutt already decided which messages are part of a thread (when you toggled the collapse state), adding only the exclusion of the In-Reply-To header - which should make it a bit faster as well as the safest (iirc?) way to check for threads... -- kchr |_|O|_| |_|_|O| Kim Christensen |O|O|O| http://technopragmatics.org - () ascii ribbon campain - against html e-mail /\ www.asciiribbon.org - against proprietary attachments signature.asc Description: Digital signature
Color when marking thread as unread
Hi, I am using the solarized mutt color scheme (https://github.com/altercation/mutt-colors-solarized) with Mutt 1.5.21 as shipped on Ubuntu 12.10. When I mark a collapsed thread as read (ctrl+r), the thread shows up as being only partially read until I either save the mailbox or uncollapse and collapse the thread. Is this by any chance a known issue with a fix, or would it be cause by misconfiguration. The color setting I use is here: color index color136color234~v~(~N) Thanks! -- Christoffer
How to set color only for the parent of a thread in index mode?
Hey, I want to highlight the parent message of a thread in index mode, how can I accomplish that? Regards, Techlive Zheng
Color changed in mutt
I run mutt under gentoo, and recently upgraded a few packages, including mutt to 1.5.22-r1 from 1.5.21-r12. I use the sidebar. Now mutt shows an odd coloration. My color config is pretty simple: color attachment black white color body black white . color bold black white color error black white color header black white . color hdrdefault black white color index black white . color markers black white color message black white color normal black white color quoted black white color search black white color signature black white color tilde black white color tree black white color underline black white color indicator white black color status white black In others, all black and white, boring as heck. After the update, mutt now shows everything grey and black, except that sidebar dirs which have new or flagged messages, and thus show (4)[3] or something similar, are plain white, just like everything used to be. I verified this by emptying the spam folder and by reading all the nessages in another folder. This behavior is the same whether running under screen or a bare /bin/sh. Is this a known change in 1.5.22? What else could cause this change? I didn't see any 'color' notes in ChangeLog or NEWS. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / fe...@crowfix.com GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Re: Color changed in mutt
On Sat, Nov 30, 2013 at 12:25:42PM -0800, fe...@crowfix.com wrote: ...recently upgraded a few packages... ... Is this a known change in 1.5.22? What else could cause this change? I didn't see any 'color' notes in ChangeLog or NEWS. The colors in mutt are AFAIK just names of ANSI color codes, so they are not prone to change. I strongly suspect that your terminal emulator has been updated together with mutt, and it now renders the colors differently. -- Edward Hades Toroshchin dr_lepper on irc.freenode.org
Re: Color changed in mutt
On Sat, Nov 30, 2013 at 10:10:46PM +0100, Edward Toroshchin wrote: I strongly suspect that your terminal emulator has been updated together with mutt, and it now renders the colors differently. I almost always use mutt from within screen. Screen last changed 2012-11-20, and I rebooted for the 3.12.1 kernel 9 days ago (this reboot was for 3.12.2), and it has been working fine since. There has been one other change which I didn't think related. I am using a company Mac laptop to ssh to my system, and it changed this week to 10.9 from 10.[678], I forget which. Today's reboot was the first time I have ssh'ed in and started screen from the 10.9 Mac. How much of the Mac's Terminal environment does the remote system inherit when I ssh in? I know sometimes the ^H and/or DEL key acts differently, depending on where I ssh'd from when I start new screen sessions. It's not the new Mac's interpretation of the linux screen colors, I am sure, because I have been using the new Mac for several days with the same colors as with the old Mac. If this Mac change has any part in the color change, it's in combination with the mutt change or it's because it changed what it passes to the remote screen command. I have a Linux laptop too, not with me now, and I will see tomorrow if restarting screen after ssh from it behaves differently. There is one advantage to this awful color scheme. Mac 10.9 has goofed up Spaces (their primitive virtual desktop spaces) so that instead of using Apple-[1-9] to go directly to the page of your choice, you click on an icon from a filmstrip-like list of their icons. At least this mutt session sticks out easier :-) -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / fe...@crowfix.com GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Re: Color changed in mutt -- Not a mutt problem
As I mentioned in another post, I had also changed company Mac laptops which I use to ssh in and run screen. I have now found that git diff by itself dumps all sorts of uninterpreted ESC sequences to the screen, but if I pipe that into less (git diff|less), less eats them up. The Mac 10.old (something less than 10.9) has a term type of xterm-color. 10.9 splits that into xterm-16color and xterm-256color. I tried various different TERM values and none of them clear up the ESC and gray color, but my bet is now on the new Mac Term doing something unfriendly. Since this 10.9 Term didn't show the problem until I started the Linux ssh+screen with the new Mac, that must be where the problem is. -- ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. Felix Finch: scarecrow repairman rocket surgeon / fe...@crowfix.com GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 I've found a solution to Fermat's Last Theorem but I see I've run out of room o
Re: rendering color in html emails inside mutt
Stefan Wimmer wrote on Sat-09-Feb 13 10:57PM * Brendan Cully bren...@kublai.com [2013-02-09 22:38]: On Saturday, 09 February 2013 at 13:27, Gary Johnson wrote: On 2013-02-09, Brendan Cully wrote: Elinks does work fine to view attachments in color. You can't get color when autoviewing though -- in this case, the elinks output is recolorized by the pager using color body rules, which mangle the underlying color. Even if allow_ansi is set? Yes, on my system at least, the first character of the line is colored but the rest are clobbered, in autoview mode. When I switch to view-attachment mode, everything looks fine. With allow_ansi unset, not even the first character is colored. You could give '-dump-color-mode 3' a try - it works quite good but you'll be in trouble if you try to print those HTML-messages ... ;-) Thank you for all your suggestions. The closest I get is the first character displaying as red but only with elinks -dump-color-mode 1. If this setting is set to any of the higher values then the foreground and background of the *all* text is set to grey (unreadable therefore). I guess the first char highlighted is a good enough solution. -- Eric Smith
Re: rendering color in html emails inside mutt
Am Fri, Feb 08, 2013 at 05:23:23PM +0100, Eric Smith wrote: I have never managed to render color in html email, how is this possible? Yes, this is a question, which would interest me too. I also have sometimes this problem. -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido :::: pgpxtTXUxz0Qn.pgp Description: PGP signature
Re: rendering color in html emails inside mutt
On 2013-02-08, Eric Smith wrote: Hi. (For those deeply offended by manifestations of html in emails, please look away now). I mainly receive email from non-technical people. Recently, while in the chaos ahead of a deadline I missed some important email where answers to my questions where inserted inline in a red color. I have never managed to render color in html email, how is this possible? This is a function of the external program used to render HTML as text. The two that seem to be the most popular, lynx and w3m, don't seem to do this, but elinks does. So, all you should have to do is set your mailcap file to use elinks for text/html and configure elinks to use 256 colors. While running elinks, type esc to see the menu bar, then go to Setup menu - Terminal options and select under Color mode-256 color. I've often wondered if this was possible, but never investigated it very deeply. Your question piqued my curiosity, so I searched a little and just discovered that elinks could do this. I've verified its behavior on a few web sites, but not from within mutt. Let us know if this works for you. Regards, Gary
Re: rendering color in html emails inside mutt
On Saturday, 09 February 2013 at 13:15, Gary Johnson wrote: On 2013-02-08, Eric Smith wrote: Hi. (For those deeply offended by manifestations of html in emails, please look away now). I mainly receive email from non-technical people. Recently, while in the chaos ahead of a deadline I missed some important email where answers to my questions where inserted inline in a red color. I have never managed to render color in html email, how is this possible? This is a function of the external program used to render HTML as text. The two that seem to be the most popular, lynx and w3m, don't seem to do this, but elinks does. So, all you should have to do is set your mailcap file to use elinks for text/html and configure elinks to use 256 colors. While running elinks, type esc to see the menu bar, then go to Setup menu - Terminal options and select under Color mode-256 color. I've often wondered if this was possible, but never investigated it very deeply. Your question piqued my curiosity, so I searched a little and just discovered that elinks could do this. I've verified its behavior on a few web sites, but not from within mutt. Let us know if this works for you. Elinks does work fine to view attachments in color. You can't get color when autoviewing though -- in this case, the elinks output is recolorized by the pager using color body rules, which mangle the underlying color.
Re: rendering color in html emails inside mutt
On 2013-02-09, Brendan Cully wrote: Elinks does work fine to view attachments in color. You can't get color when autoviewing though -- in this case, the elinks output is recolorized by the pager using color body rules, which mangle the underlying color. Even if allow_ansi is set? Regards, Gary
Re: rendering color in html emails inside mutt
On Saturday, 09 February 2013 at 13:27, Gary Johnson wrote: On 2013-02-09, Brendan Cully wrote: Elinks does work fine to view attachments in color. You can't get color when autoviewing though -- in this case, the elinks output is recolorized by the pager using color body rules, which mangle the underlying color. Even if allow_ansi is set? Yes, on my system at least, the first character of the line is colored but the rest are clobbered, in autoview mode. When I switch to view-attachment mode, everything looks fine. With allow_ansi unset, not even the first character is colored.
Re: rendering color in html emails inside mutt
* Brendan Cully bren...@kublai.com [2013-02-09 22:38]: On Saturday, 09 February 2013 at 13:27, Gary Johnson wrote: On 2013-02-09, Brendan Cully wrote: Elinks does work fine to view attachments in color. You can't get color when autoviewing though -- in this case, the elinks output is recolorized by the pager using color body rules, which mangle the underlying color. Even if allow_ansi is set? Yes, on my system at least, the first character of the line is colored but the rest are clobbered, in autoview mode. When I switch to view-attachment mode, everything looks fine. With allow_ansi unset, not even the first character is colored. You could give '-dump-color-mode 3' a try - it works quite good but you'll be in trouble if you try to print those HTML-messages ... ;-) HTH Stefan pgpnV9NXJwDBs.pgp Description: PGP signature
rendering color in html emails inside mutt
Hi. (For those deeply offended by manifestations of html in emails, please look away now). I mainly receive email from non-technical people. Recently, while in the chaos ahead of a deadline I missed some important email where answers to my questions where inserted inline in a red color. I have never managed to render color in html email, how is this possible? Thanks -- Eric Smith
Change color of responded messages
As the subject says, I would like to change the color of my responded mails, those marked with an r at right side. I've tried with the following, but ti didn't work: color index yellow black ~r -- Leonardo M. Ramé http://leonardorame.blogspot.com
Re: Change color of responded messages
On Wed, Jul 18, 2012 at 08:27:50AM -0300, Leonardo M. Ramé wrote: [..] color index yellow black ~r From the fine manual: ~r [MIN]-[MAX] messages with “date-received” in a Date range ~Q messages which have been replied to Dennis -- Dennis Guhl () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
Re: Change color of responded messages
On 2012-07-18 15:03:04 +0200, Dennis Guhl wrote: On Wed, Jul 18, 2012 at 08:27:50AM -0300, Leonardo M. Ramé wrote: [..] color index yellow black ~r From the fine manual: ~r [MIN]-[MAX]messages with “date-received” in a Date range ~Qmessages which have been replied to Dennis -- Dennis Guhl () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Great!, ~Q was the solution. -- Leonardo M. Ramé http://leonardorame.blogspot.com
Is there a way to display color for embeded code ?
Sometimes, we will see some embedded code in mail body. I want to know is there a way to show syntax color for those embedded code. Use external tool, or outside something. and so on. Any way, don't make the implement method complex. I know that vim can display corresponding syntax color for embedded code. for example, display lua code color in html. -- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html signature.asc Description: Digital signature
how to color one mail reply you in a thread ?
I want to color one special mail in a thread from one mailing list. for example: Subject . [r] `- (I replied here) | `- | `- (someone replied me at here, I want to color this mail in mutt color theme) how to do this ? -- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 11:46:48 CST, stardiviner wrote: I want to color one special mail in a thread from one mailing list. for example: Subject . [r] `- (I replied here) | `- | `- (someone replied me at here, I want to color this mail in mutt color theme) how to do this ? Try things like this, # messages from me color index magenta default ~P !~N !~T !~F #color index magenta white ~P ~N !~T !~F #color index magenta green~P ~T !~F #color index magenta red ~P ~F You can refer to this mutt colors definitions, http://aperiodic.net/phil/configs/mutt/colors -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
= On [2011-10-25 11:46:48 +0800]: stardiviner Said: I want to color one special mail in a thread from one mailing list. for example: Subject . [r] `- (I replied here) | `- | `- (someone replied me at here, I want to color this mail in mutt color theme) how to do this ? I have find out some solutions. If you have better way, please note me. color index color025color233 ~x .*@stardiviner # I'm in the References list. color index color045color233 ~h \^In-[Rr]eply-[Tt]o: .*@stardiviner\ # only my mail is replied by others in thread -- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html -- stardiviner GPG: 5D9F64D8 Twitter: @numbchild http://stardiviner.dyndns-blog.com/author.html signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 12:06:10 CST, du yang wrote: On Tuesday 10/25/11 11:46:48 CST, stardiviner wrote: I want to color one special mail in a thread from one mailing list. for example: Subject . [r] `- (I replied here) | `- | `- (someone replied me at here, I want to color this mail in mutt color theme) how to do this ? http://aperiodic.net/phil/configs/mutt/colors Sorry for I didn't exactly understand what you trying to do. If you want to color mails from someone special, you can try the expression '~t x...@xyx.com' in color command. It is case-insensitive. -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Re: how to color one mail reply you in a thread ?
On Tuesday 10/25/11 12:27:20 CST, du yang wrote: If you want to color mails from someone special, you can try the expression '~t x...@xyx.com' in color command. It is case-insensitive. Sorry again. the expression should like this '~f x...@xyx.com' ;-) -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/ signature.asc Description: Digital signature
Color difference between 'mutt' and 'screen -t mutt'
Hello, all, I've set most colors in mutt to red on black (for night vision reasons), when I start mutt directly by $ mutt I get http://tx0.org/2qx but when I open it 'in a new tab' in screen via $ screen -t 'mutt' mutt I get the expected http://tx0.org/2qy What on Earth can be going on? Sincerely yours, John B. -- I guess I'm gonna fade into Bolivian. -Mike Tyson ___ http://jbaber.freeshell.org
color does not work
problem: my color scheme can work before. But not, it can not work any more. all of mails in index are white, and mail context are white too. weird. I set some colors about index and body. I know it is fucking bad to say weird. Here is my muttrc config in github: https://github.com/numbchild/dotmutt But: I really can not do anything about that now. I forget what I did on my configuration files about mutt. And I try to recover it. But failed. I searched man muttrc. and tested some options. all failed. I tried all ways I thought. Is there anyone can give me some advise about colors ? I mean that is there something will affect mutt display colors ? like source file rank, and some option will unset colors etc. Thanks in advance. -- I will have my own life finally. I believe myself cause I can.
Re: color does not work
Quoth stardiviner on Thursday, 23 June 2011: problem: my color scheme can work before. But not, it can not work any more. all of mails in index are white, and mail context are white too. weird. I set some colors about index and body. I know it is fucking bad to say weird. Here is my muttrc config in github: https://github.com/numbchild/dotmutt But: I really can not do anything about that now. I forget what I did on my configuration files about mutt. And I try to recover it. But failed. I searched man muttrc. and tested some options. all failed. I tried all ways I thought. Is there anyone can give me some advise about colors ? I mean that is there something will affect mutt display colors ? like source file rank, and some option will unset colors etc. Thanks in advance. -- I will have my own life finally. I believe myself cause I can. Most likely this is a termcap/terminfo problem. What changed between when it worked and now? Did you upgrade mutt, ncurses/slang, or your terminal of choice? -- .O. | Sterling (Chip) Camden | http://camdensoftware.com ..O | sterl...@camdensoftware.com | http://chipsquips.com OOO | 2048R/D6DBAF91 | http://chipstips.com pgpQhyeyuBJ0Y.pgp Description: PGP signature
color index, only subscribed list can not be colored
I put subscribed mailing lists and color defining in two file. then source them in muttrc. I tested with this style: commit all of them, then remove commit a little by a little. Now I find which one causes this problem. I define a color for mailing list in color define file. {{ color index white black ~u color index white black ~l color index black green ~T # tagged color indicator brightwhite brightred }} ~u and ~l are about mailing list. when I set this, then I can not use tagged color to color mailing list entry. but indicator color can work on mailing list entry. weird other colors define are all fine. -- I will have my own life finally. I believe myself cause I can.
Re: Cannot get pager background color right
That did the trick, thanks a million. Also useful to know about the files in /etc -Paul On 30 May 2011 17:44, Jamie Paul Griffin ja...@gnix.co.uk wrote: just to add: the setting that would change the section of the pager shown in your picture is - color tilde foreground background
Cannot get pager background color right
All, I've searched a lot for this and cannot get the answer. If if you take a look at the following screenshot you can see the part containing the message is the terminal default which is what I want, but below that is a kind of light grey: http://i.imgur.com/jTkcW.png I'm using Mutt 1.5.20 from the Ubuntu repos and here is my current color settings: color normal default default color index brightgreen default ~N color error red default color tree white default color index brightblue default ~F color status white blue color header brightyellow default ^From: color header brightyellow default ^To: color header brightyellow default ^Subject: color header brightyellow default ^Date: color header brightyellow default ^CC: Can anyone suggest a setting to make the pager background color consistent? Thanks, -Paul
Re: Cannot get pager background color right
On Mon, May 30, 2011 at 12:49:48PM +0100, Paul Bourke wrote: All, I've searched a lot for this and cannot get the answer. If if you take a look at the following screenshot you can see the part containing the message is the terminal default which is what I want, but below that is a kind of light grey: http://i.imgur.com/jTkcW.png I'm using Mutt 1.5.20 from the Ubuntu repos and here is my current color settings: color normal default default color index brightgreen default ~N color error red default color tree white default color index brightblue default ~F color status white blue color header brightyellow default ^From: color header brightyellow default ^To: color header brightyellow default ^Subject: color header brightyellow default ^Date: color header brightyellow default ^CC: Can anyone suggest a setting to make the pager background color consistent? Are the color settings above definitely the only color modifiers you are using? - and have you checked the configuration files installed by ubuntu in /etc/Muttrc.d/ and also /etc/Muttrc. Quite often these people put other settings in there that can be overlooked. jamie
Re: Cannot get pager background color right
just to add: the setting that would change the section of the pager shown in your picture is - color tilde foreground background
Re: Mutt 256 color themes
On Tue, Jan 05, 2010 at 05:37:59PM +0900, Horacio Sanson wrote: Currently I am using the ivy league color theme from Aaron Toponce (see link below) with a couple of modifications to make it work in my transparent KDE Konsole. http://pthree.org/2008/10/22/ivy-league-theme-for-mutt/ I was looking for similar 256 color themes for mutt but there does not appear to be any on the whole Internet. Are there any other themes around? Or is anyone willing to share their colors? I did some before Christmas as I fancied something a bit different whilst xsnow was running in the background. You can find my themes here: http://www.s5h.net/wiki/Mutt Let me know what you think or if there are any particular colours you'd like and I'll see what I can do. -- Best regards, Ed http://www.s5h.net/ signature.asc Description: Digital signature
Color text from img2txt not displaying correctly in pager
Hi, I'm trying to use img2txt from libcaca to display images that are attached to mails. I have the following in my mailcap: image/*; img2txt %s; copiousoutput; I also have the following in my muttrc: set allow_ansi auto_view image/* When viewing a message with an image attached, I get the text output from img2txt but the colors are not correct. It's like it is only rendered with 8 colors rather than 256. I am using (u)rxvt-256color as my terminal and viewing images with img2txt directly in the terminal the colors are correct. img2txt has various format output options (caca, ansi, utf8 with ansi escapes etc.) but none render the color correctly. Could this be a problem with the configuration of mutt at compile time? The output of 'mutt -v' is as follows: `-- mutt -v Mutt 1.5.21 (2010-09-15) Copyright (C) 1996-2009 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: Linux 2.6.38-ARCH (x86_64) slang: 20204 libidn: 1.19 (compiled with 1.19) hcache backend: GDBM version 1.8.3. 10/15/2002 (built Jan 7 2011 13:53:17) Compile options: -DOMAIN -DEBUG -HOMESPOOL -USE_SETGID +USE_DOTLOCK -DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP +USE_SSL_OPENSSL -USE_SSL_GNUTLS +USE_SASL -USE_GSS +HAVE_GETADDRINFO -HAVE_REGCOMP +USE_GNU_REGEX +HAVE_COLOR -HAVE_START_COLOR -HAVE_TYPEAHEAD -HAVE_BKGDSET -HAVE_CURS_SET -HAVE_META -HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE -ISPELL SENDMAIL=/usr/sbin/sendmail MAILPATH=/var/mail PKGDATADIR=/usr/share/mutt SYSCONFDIR=/etc EXECSHELL=/bin/sh -MIXMASTER To contact the developers, please mail to mutt-...@mutt.org. To report a bug, please visit http://bugs.mutt.org/. patch-1.5.16hg.cd.trash_folder.vl.1 patch-1.5.19.sidebar.20090522.txt Any ideas what I can try to find out what the problem is? Mark pgpNXDPgng3WE.pgp Description: PGP signature
Re: view html in color
On Wed, Jan 26, 2011 at 03:53:22PM +0100, Eric Smith wrote: People more and more send html with their respnses in a different color :( Please let me have the maicap rule that can autodisplay these html mails in color in the pager. Put text/html;links -force-html %s or something to your preference in your ~/.mailcap, then open the text/html attachment. -- .
view html in color
People more and more send html with their respnses in a different color :( Please let me have the maicap rule that can autodisplay these html mails in color in the pager. Thanks -- - Eric Smith
Re: How to define a foler-level color?
On Sun, Nov 14, 2010 at 02:57:52PM +0800, Yue Wu wrote: As the title, I want to, say, highlight all messages with the subject vim in folder ml-r in color red, how to define such a color? You can use the color command: color { header | body } foreground background regexp The regexp can be (almost) any mutt search pattern. For you example above, you'd use something like this: folder-hook . uncolor color header brightblue default ~s vim folder-hook ml-r color header brightblue default ~s vim http://www.mutt.org/doc/devel/manual.html#color me
Re: How to define a foler-level color?
On Sun, Nov 14, 2010 at 02:57:52PM +0800, Yue Wu wrote: As the title, I want to, say, highlight all messages with the subject vim in folder ml-r in color red, how to define such a color? Folder hooks and color can do that. # For pager folder-hook . 'color header white black Subject: ' folder-hook 'ml-r' 'color header white red Subject: .*vim.*' # For index folder-hook . 'color index white black .' folder-hook 'ml-r' 'color index white red ~s .*vim.*' -- Monte
Re: How to define a foler-level color?
On Sun, Nov 14, 2010 at 07:23:45AM -0800, Michael Elkins wrote: On Sun, Nov 14, 2010 at 02:57:52PM +0800, Yue Wu wrote: As the title, I want to, say, highlight all messages with the subject vim in folder ml-r in color red, how to define such a color? You can use the color command: color { header | body } foreground background regexp Oops, this should have been the color index ... form if you want to color messages in the message list. me
Re: How to define a foler-level color?
On Sun, Nov 14, 2010 at 11:28:41AM -0400, Monte Stevens wrote: On Sun, Nov 14, 2010 at 02:57:52PM +0800, Yue Wu wrote: As the title, I want to, say, highlight all messages with the subject vim in folder ml-r in color red, how to define such a color? Folder hooks and color can do that. # For pager folder-hook . 'color header white black Subject: ' folder-hook 'ml-r' 'color header white red Subject: .*vim.*' # For index folder-hook . 'color index white black .' folder-hook 'ml-r' 'color index white red ~s .*vim.*' Thank all of you so kindly help. I thought there's a way to define a color for one folder without touching the default setting. -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China
How to define a foler-level color?
List, Hi! As the title, I want to, say, highlight all messages with the subject vim in folder ml-r in color red, how to define such a color? -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China
Re: some color definitions dont work
I don't know if it helps or applies to you, but I was unable to get the colors to work, but the devil is in the details. I was running on Solaris 10/x86 and installed mutt from the sunfreeware pre-built. No luck with colors under 1.5.17 but no problems at all with 1.5.20 with a lot of the issues being the load library dependencies. On Sat, Sep 18, 2010 at 02:16:53PM +0200, Matthias Apitz wrote: Hello, I'm really with no clue and sorry if this stupid or a FAQ, but I can't get some of the color settings to work in mutt 1.15.9 :-( What does work is: set color_after_eol=no color status brightgreen blue color indicator brightyellow red color normal black white What does not work is, for example: color header brightyellow red ^(To|From|Subject): The effect is with the above statement like 'brightgris white'. Same happens with color signature brightgreen blue setting this gives the signature in 'brightgris white'. What do I stupidly wrong? Thanks for a pointer. And yes. I have read the manual, already for some hours, and it is not my xterm, because it worked with 1.14.x Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ --- Brian R Cuttler brian.cutt...@wadsworth.org Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773 IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation.
Re: some color definitions dont work
El día Saturday, September 18, 2010 a las 04:37:06PM -0700, Chip Camden escribió: Are you using more than 16 color specifications? No. The problem must be caused by the way the FreeBSD's port is compiling (or patching) the source. If I run ./configure --enable-smtp by hand the colors are working fine with the same .muttrc. I will bring this to the attention of the maintainer of this port in FreeBSD. Thanks (and don't top post :-)) Udo, this is with PORTNAME= mutt-devel PORTVERSION=1.5.19 will forward the original problem description later; Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/
Re: some color definitions dont work
El día Sunday, September 19, 2010 a las 08:16:23AM +0200, g...@unixarea.de escribió: El día Saturday, September 18, 2010 a las 04:37:06PM -0700, Chip Camden escribió: Are you using more than 16 color specifications? No. The problem must be caused by the way the FreeBSD's port is compiling (or patching) the source. If I run ./configure --enable-smtp by hand the colors are working fine with the same .muttrc. I will bring this to the attention of the maintainer of this port in FreeBSD. Thanks (and don't top post :-)) Udo, this is with PORTNAME= mutt-devel PORTVERSION=1.5.19 will forward the original problem description later; I have played around with the ./configure of the port: the original 'make WITH_MUTT_SMTP=yes' runs: ./configure --disable-fcntl \ --with-ssl=/usr/local \ --with-sharedir=/usr/local/share/mutt --with-docdir=/usr/local/share/doc/mutt --sysconfdir=/usr/local/etc \ --disable-warnings \ --enable-external-dotlock \ --enable-pop \ --enable-imap \ --enable-smtp \ --enable-flock \ --with-libiconv-prefix=/usr/local \ --with-idn \ --disable-gpgme \ --with-gss \ --enable-compressed \ --disable-hcache \ --prefix=/usr/local \ --mandir=/usr/local/man \ --infodir=/usr/local/info/ \ --build=i386-portbld-freebsd8.0 as well this run by hand produces the problem with the color: ./configure --enable-imap --enable-smtp --with-ssl=/usr/local --with-sharedir=/usr/local/share/mutt --with-docdir=/usr/local/share/doc/mutt --sysconfdir=/usr/local/etc --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ while this is fine (deleted --with-ssl=/usr/local from ./configure): ./configure --enable-imap --enable-smtp --with-sharedir=/usr/local/share/mutt --with-docdir=/usr/local/share/doc/mutt --sysconfdir=/usr/local/etc --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ Don't know what could cause this problem exactly concerning --with-ssl=/usr/local; HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/
some color definitions dont work
Hello, I'm really with no clue and sorry if this stupid or a FAQ, but I can't get some of the color settings to work in mutt 1.15.9 :-( What does work is: set color_after_eol=no color status brightgreen blue color indicator brightyellow red color normal black white What does not work is, for example: color header brightyellow red ^(To|From|Subject): The effect is with the above statement like 'brightgris white'. Same happens with color signature brightgreen blue setting this gives the signature in 'brightgris white'. What do I stupidly wrong? Thanks for a pointer. And yes. I have read the manual, already for some hours, and it is not my xterm, because it worked with 1.14.x Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/
Re: some color definitions dont work
El día Saturday, September 18, 2010 a las 02:16:53PM +0200, Matthias Apitz escribió: Hello, I'm really with no clue and sorry if this stupid or a FAQ, but I can't get some of the color settings to work in mutt 1.15.9 :-( What does work is: set color_after_eol=no color status brightgreen blue color indicator brightyellow red color normal black white What does not work is, for example: color header brightyellow red ^(To|From|Subject): The effect is with the above statement like 'brightgris white'. Same happens with color signature brightgreen blue setting this gives the signature in 'brightgris white'. What do I stupidly wrong? Thanks for a pointer. And yes. I have read the manual, already for some hours, and it is not my xterm, because it worked with 1.14.x I have installed the 1.14 version too (local in HOME) and in the *same* xterm and with the same .muttrc you can see here the diff: http://www.unixarea.de/mutt-1.15.jpg http://www.unixarea.de/mutt-1.14.jpg Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/
Re: some color definitions dont work
Are you using more than 16 color specifications? Quoth Matthias Apitz on Saturday, 18 September 2010: El día Saturday, September 18, 2010 a las 02:16:53PM +0200, Matthias Apitz escribió: Hello, I'm really with no clue and sorry if this stupid or a FAQ, but I can't get some of the color settings to work in mutt 1.15.9 :-( What does work is: set color_after_eol=no color status brightgreen blue color indicator brightyellow red color normal black white What does not work is, for example: color header brightyellow red ^(To|From|Subject): The effect is with the above statement like 'brightgris white'. Same happens with color signature brightgreen blue setting this gives the signature in 'brightgris white'. What do I stupidly wrong? Thanks for a pointer. And yes. I have read the manual, already for some hours, and it is not my xterm, because it worked with 1.14.x I have installed the 1.14 version too (local in HOME) and in the *same* xterm and with the same .muttrc you can see here the diff: http://www.unixarea.de/mutt-1.15.jpg http://www.unixarea.de/mutt-1.14.jpg Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e g...@unixarea.de - w http://www.unixarea.de/ -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgpWfDT0s8Iw7.pgp Description: PGP signature
Re: mutt - color problem
On Tue, Aug 31, 2010 at 01:57:39PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: This is telling... #!/bin/sh for color in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 do echo `tput setaf ${color}``date` done output is as expected for the first 8 colors, that is Black, Red, Green, Yellow, Blue, Magenta, Cyan, White (on white...) When run on my Solaris 10 desktop I then get the inverse for the last 8. I do not get the inverse on the remote system. On Tue, Aug 31, 2010 at 12:22:00PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Chip, This works a little better # echo `tput setaf 1`hello`tput me` tput: unknown terminfo capability 'me' hello Where we are in red from hello onwards. So there are some colors available. On Tue, Aug 31, 2010 at 11:46:57AM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Chip, No, mutt is not producing any errors, its just failing, not only to set colors but even to highlight (or is it simply reverse) the black and white header and footer or provide inverse for the message I'm currently pointing to in the index. With mutt not complaining I'm guessing it is a terminal/display issue rather than a mutt issue, just hadn't realized that the new server (since nothing changed on my desktop) had, ya know, issues. I don't think its mutt, I think mutt is just a symptom, had hoped that everything would work out of the box. Trying to download newer sunfreeware mutt build but the download keeps stalling out on me. thanks, Brian On Tue, Aug 31, 2010 at 11:19:59AM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Hate ask, but I think I've tried the obvious... Moving from a Solaris 9/sparc box with mutt Mutt 1.4.1i (2003-03-19) to Solaris 10x86 with Mutt 1.5.17 (2007-11-01) and I'm finding that my colors and highlighting don't work at all. Checked terminal type, the same, didn't make any config changes, just # ssh'd into a different server. My desktop is Solaris 10x86 and that hasn't changed either. Its something with the server or with the specific build of mutt, I believe both from sunfreeware. Sorry to ask such a rudimenary question. Thanks for your help, Brian --- Brian R Cuttler brian.cutt...@wadsworth.org Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773 IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation. Rudimentary, yes. Easy, no. I probably don't know enough about Solaris to help you, but I can tell you that on FreeBSD I ran into several issues: 1. I had to build mutt with slang instead of ncurses. 2. The terminal definition I use has to be set up correctly in *both* termcap and terminfo. Specifically, it needs to have the correct number of colors specified (Co# in termcap) and the correct sequences for setting foreground/background color. 3. The terminal in which you are running mutt (urxvt in my case) has to be built with the same color options (256 color support, in my case). So, what kind of problem are you seeing? Is mutt
Re: mutt - color problem
Quoth Brian Cuttler on Wednesday, 01 September 2010: On Tue, Aug 31, 2010 at 01:57:39PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: On Tue, Aug 31, 2010 at 01:16:03PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: This is telling... #!/bin/sh for color in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 do echo `tput setaf ${color}``date` done output is as expected for the first 8 colors, that is Black, Red, Green, Yellow, Blue, Magenta, Cyan, White (on white...) When run on my Solaris 10 desktop I then get the inverse for the last 8. I do not get the inverse on the remote system. On Tue, Aug 31, 2010 at 12:22:00PM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Chip, This works a little better # echo `tput setaf 1`hello`tput me` tput: unknown terminfo capability 'me' hello Where we are in red from hello onwards. So there are some colors available. On Tue, Aug 31, 2010 at 11:46:57AM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Chip, No, mutt is not producing any errors, its just failing, not only to set colors but even to highlight (or is it simply reverse) the black and white header and footer or provide inverse for the message I'm currently pointing to in the index. With mutt not complaining I'm guessing it is a terminal/display issue rather than a mutt issue, just hadn't realized that the new server (since nothing changed on my desktop) had, ya know, issues. I don't think its mutt, I think mutt is just a symptom, had hoped that everything would work out of the box. Trying to download newer sunfreeware mutt build but the download keeps stalling out on me. thanks, Brian On Tue, Aug 31, 2010 at 11:19:59AM -0700, Chip Camden wrote: Quoth Brian Cuttler on Tuesday, 31 August 2010: Hate ask, but I think I've tried the obvious... Moving from a Solaris 9/sparc box with mutt Mutt 1.4.1i (2003-03-19) to Solaris 10x86 with Mutt 1.5.17 (2007-11-01) and I'm finding that my colors and highlighting don't work at all. Checked terminal type, the same, didn't make any config changes, just # ssh'd into a different server. My desktop is Solaris 10x86 and that hasn't changed either. Its something with the server or with the specific build of mutt, I believe both from sunfreeware. Sorry to ask such a rudimenary question. Thanks for your help, Brian --- Brian R Cuttler brian.cutt...@wadsworth.org Computer Systems Support(v) 518 486-1697 Wadsworth Center(f) 518 473-6384 NYS Department of HealthHelp Desk 518 473-0773 IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation. Rudimentary, yes. Easy, no. I probably don't know enough about Solaris to help you, but I can tell you that on FreeBSD I ran into several issues: 1. I had to build mutt with slang instead of ncurses. 2. The terminal definition I use has to be set up correctly in *both* termcap and terminfo. Specifically, it needs to have the correct number of colors specified (Co# in termcap) and the correct sequences for setting foreground/background color. 3. The terminal
Re: mutt - color problem
Chip, curie's mutt is built with slang, nnewton's is built with ncurses. That probably accounts for the difference. I finally got a download of a newer mutt version from sunfreeware and will install it on the Solaris x86 platform. Assuming that its also built with slang - do you know what I need to do to make it work ? thanks, Brian IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation.
Re: mutt - color problem
Quoth Brian Cuttler on Wednesday, 01 September 2010: Chip, curie's mutt is built with slang, nnewton's is built with ncurses. That probably accounts for the difference. I finally got a download of a newer mutt version from sunfreeware and will install it on the Solaris x86 platform. Assuming that its also built with slang - do you know what I need to do to make it work ? thanks, Brian The version I'm using is built with slang, and colors work here (a full 256 of them). Give it a try and we'll take it from there. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com| http://chipsquips.com pgp7jMykPHeZm.pgp Description: PGP signature