LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2015, 10:49 AM   #1
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Rep: Reputation: Disabled
Mutt


I am trying to no avail to change the background color (black) of mutt when it is started. Any suggestions?

Thanks.
 
Old 01-17-2015, 10:52 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Add this to your ~/.muttrc:
Code:
color <object> <foreground> <background>
See man muttrc:
Quote:
color object foreground background [ regexp ]
color index foreground background [ pattern ]
uncolor index pattern [ pattern ... ]

If your terminal supports color, these commands can be used to assign fore‐
ground/background combinations to certain objects. Valid objects are: attachment,
body, bold, header, hdrdefault, index, indicator, markers, message, normal, quoted,
quotedN, search, signature, status, tilde, tree, underline. The body and header
objects allow you to restrict the colorization to a regular expression. The index
object permits you to select colored messages by pattern.

Valid colors include: white, black, green, magenta, blue, cyan, yellow, red,
default, colorN.
 
Old 01-17-2015, 11:52 AM   #3
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Original Poster
Rep: Reputation: Disabled
Yes, I have tried these, but can't seem to find the mutt window background parameter.
 
Old 01-17-2015, 11:54 AM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
What exactly have you tried in your .muttrc?
 
Old 01-17-2015, 11:58 AM   #5
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
What exactly have you tried in your .muttrc?
# This configuration file contains the default settings used by old debian
# packages (< 0.94).

set quote_regexp="^[ \t]*[a-zA-Z\.]*>" # Default: "^([ \t]*[>|#:}])+"

#
# More header weeding
#
ignore Resent- Precedence In-Reply-To Return-Receipt-To Mailer X400
ignore Originator X-Loop X-Mailing-List X-Listprocessor X-Face
ignore X-Received X-Mailer X-Envelope-To X-Sender X-Attribution

# Usenet headers can occur for Cc-ed messages; they can still be
# recognized by the Newsgroups header.
ignore Path Lines NNTP-Posting-Host X-Newsreader X-Submitted-Via

#
# Key bindings
#

bind editor <delete> delete-char


set from = "me@my.net"
set realname = "admin"

color hdrdefault white red
color attachment yellow default

color header brightyellow default "^date:"
mono header bold "^date:"
color header brightyellow default "^to:"
mono header bold "^to:"
color header brightyellow default "^from:"
mono header bold "^from:"
color header brightyellow default "^subject:"
mono header bold "^subject:"

color quoted green default
color quoted1 cyan default
color quoted2 green default
color quoted3 cyan default

color error red default # error messages
color message white blue # message informational messages
color indicator blue red
color status white blue # status lines in the folder index sed for the mini-help line
color tree red default # the "tree" display of threads within the folder index
color search white blue # search matches found with search within the internal pager
color markers red default # The markers indicate a wrapped line hen showing messages with looong lines

color index yellow default '~O'
color index yellow default '~N'
color index brightred default '~F' # Flagged Messages are important!
color index blue default '~D' # Deleted Mails - use dark color as these are already "dealt with"

Last edited by battles; 01-17-2015 at 12:01 PM.
 
Old 01-17-2015, 12:19 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Code:
color normal <foreground colour> <background colour>
 
Old 01-17-2015, 12:42 PM   #7
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

Original Poster
Rep: Reputation: Disabled
Thank you very much. That was it. I just couldn't find it in the examples I was consulting.
 
Old 01-17-2015, 12:50 PM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mutt does not change the "unread" flag on the IMAP server and other Mutt questions TobiSGD Linux - Software 1 10-09-2012 08:44 AM
mutt does not honour mutt.rc 'use_from' entry when accepting piped input davidchall Linux - Software 0 05-28-2012 02:13 AM
MUTT michijo Linux - Software 1 04-01-2012 09:37 PM
Mutt experts - Mutt won't use the Maildir I specify in .muttrc moistTowelette Debian 2 08-24-2009 08:04 AM
Mutt question: "How can I configure mutt for not automarking as read??" xowl Linux - Software 0 09-25-2007 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration