Patch and compile mutt-1.5.20 with sidebar extension in GNU/Linux Debian

Пропатчить mutt-1.5.20:
callisto:~# cd build && wget ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz
callisto:~/build# wget http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt
callisto:~/build# extract mutt-1.5.20.tar.gz
callisto:~/build# cd mutt-1.5.20 && patch -p1 buffy.c ../patch-1.5.20.sidebar.20090619.txt
Удалить имеющийся mutt и заинсталлить необходимые для сборки пакеты:
callisto:~/build/mutt-1.5.20# apt-get remove mutt
callisto:~/build/mutt-1.5.20# apt-get build-dep mutt
callisto:~/build/mutt-1.5.20# apt-get install libssl-dev
Указать опции для сборки, собрать и установить:
callisto:~/build/mutt-1.5.20# ./configure --enable-pop --enable-imap --enable-smtp --with-gss --with-sasl --with-ssl --enable-locales-fix --enable-hcache
callisto:~/build/mutt-1.5.20# make && make install
Настроить muttrc:
$ cat ~/.muttrc
set realname = "Your Name"
set imap_user = "mailbox@gmail.com"
set imap_pass = "password"
set smtp_url = "smtp://mailbox@smtp.gmail.com:587"
set smtp_pass = "password"
set from = "mailbox@gmail.com"

set spoolfile = "imaps://imap.gmail.com:993/Inbox"
set folder = "imaps://imap.gmail.com:993"

set record = "+[Gmail]/Sent Mail"
set postponed = "+[Gmail]/Drafts"

set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates

set editor = "nano"
set charset = "koi8-r"
set imap_check_subscribed = yes
set move = no
set copy = yes
set delete = yes
set edit_hdrs
set include
set reply_to
#set nouse_domain
set abort_nosubject = yes
set attribution = " %n wrote:\n"
alternates '(username|altusername)([-+].*)?@.*'
set hdr_format = "%4C %Z %{%m/%d} %-15.15F (%4c) %s"
set pager_index_lines = 5

ignore *
unignore from subject to cc date x-mailer x-url user-agent
hdr_order from to cc date subject x-mailer user-agent

set sort = threads
set sort_aux = last-date-received

# Sidebar
set sidebar_width=34
set sidebar_visible = yes

# which mailboxes to list in the sidebar
#mailboxes =inbox =ml

# color of folders with new mail
#color sidebar_new yellow default

# ctrl-n, ctrl-p to select next, prev folder
# ctrl-o to open selected folder
bind index \CP sidebar-prev
bind index \CN sidebar-next
bind index \CO sidebar-open
bind pager \CP sidebar-prev
bind pager \CN sidebar-next
bind pager \CO sidebar-open

# I don't need these.  just for documentation purposes.  See below.
# sidebar-scroll-up
# sidebar-scroll-down

# Remap bounce-message function to "B"
bind index B bounce-message

# b toggles sidebar visibility
macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'

bind index g imap-fetch-mail
bind pager g imap-fetch-mail

# Colours for items in the index
color index brightcyan black ~N
# Hmm, don't like this.
#color index brightgreen black "~N (~x byers.world)|(~x byers.x)|(~x langly.levallois123.axialys.net)|(~x the.earth.li)"
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D

# Highlights inside the body of a message.
# URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"

# email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

# header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"


# Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black


# Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
# Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse

No comments:

Post a Comment