免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2138 | 回复: 0
打印 上一主题 下一主题

OpenSUSE下mutt配置文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-20 11:59 |只看该作者 |倒序浏览

                注意红色部分的替换
1:.procmailrc
PATH=/bin:/sbin:/usr/bin:/usr/sbin
SHELL=/bin/bash
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox
LOGFILE=$MAILDIR/.procmaillog
2:.fechmailrc
set postmaster[color="#ff0000"] yourid
defaults
protocol pop3
mda "formail -s procmail"
antispam -1
ssl sslcertck keep
sslcertpath '[color="#ff0000"]/home/loin/Mail/certs/'
poll pop.gmail.com with uidl
user '[color="#ff0000"]emailaddress' there with password '[color="#ff0000"]password' is '[color="#ff0000"]yourid' here
options flush fetchall
3:.muttrc
# $Id$
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# ME's personal .muttrc (Mutt 0.92.5)
#
# The format of this file is one command per line. Everything after a pound
# sign (#) is a comment, unless a backward slash (\) precedes it. Note: In
# folder-hook and send-hook you need to account for two levels of dequoting
# (see manual).
#
# Note: $folder should be set _before_ any other path vars where `+' or `='
# is used because paths are expanded when parsed
#
set folder=~/Mail          # where i keep my mailboxes
#set abort_unmodified=yes     # automatically abort replies if I don't
# change the message
set alias_file=~/.mail_aliases     # where I keep my aliases
#set allow_8bit               # never do Q-P encoding on legal 8-bit chars
set arrow_cursor          # use -> instead of hiliting the whole line
#set ascii_chars          # use ASCII instead of ACS chars for threads
#set askbcc
#set askcc
#set attribution="On %d, %n wrote:"     # how to attribute replies
set autoedit               # go to the editor right away when composing
#set auto_tag               # always operate on tagged messages
#set charset="iso-8859-1"     # character set for your terminal
set noconfirmappend          # don't ask me if i want to append to mailboxes
#set confirmcreate          # prompt when creating new files
set copy=yes               # always save a copy of outgoing messages
set delete=yes               # purge deleted messages without asking
set edit_headers          # let me edit the message header when composing
#set editor="emacs -nw"          # editor to use when composing messages
#set bounce=yes               # don't ask about bouncing messages, just do it
#set fast_reply               # skip initial prompts when replying
#set fcc_attach               # keep attachments in copies of sent messages?
#set force_name               # fcc by recipient, create if mailbox doesn't exist
#set forward_decode          # weed and MIME decode forwaded messages
#set forward_format="[%a: %s]"     # subject to use when forwarding messages
#set forward_quote          # quote the header and body of forward msgs
#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
#set hdrs               # include `my_hdr' lines in outgoing messages
#set header               # include message header when replying
set help               # show the help lines
#set history=20               # number of lines of history to remember
#set hostname="mutt.org"     # my DNS domain
set include               # always include messages when replying
#set indent_string="> "          # how to quote replied text
#set locale="C"               # locale to use for printing time
#set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
set nomark_old               # i don't care about whether a message is old
set mail_check=10          # how often to poll for new mail
set mbox=~/Mail/seen                # where to store read messages
#set menu_scroll          # no implicit next-page/prev-page
#set metoo               # remove my address when replying
set mime_forward          # use message/rfc822 type to forward messages
set move=yes          # don't ask about moving messages, just do it
#set pager=less               # some people prefer an external pager
#set pager_context=3          # no. of lines of context to give when scrolling
#set pager_format="-%S- %-20.20f %s"     # format of the pager status bar
set pager_index_lines=6          # how many index lines to show in the pager
#set pager_stop               # don't move to the next message on next-page
#set pgp_strict_enc          # use Q-P encoding when needed for PGP
set postponed=~/Mail/draft     # mailbox to store postponed messages in
set postpone=yes
#set post_indent_string='---end quoted text---'
#set print=ask-yes          # ask me if I really want to print messages
set print_command=/bin/false     # how to print things (I like to save trees)
set noprompt_after     # ask me for a command after the external pager exits
#set quote_regexp="^ *[a-zA-Z]*[>:#}]"     # how to catch quoted text
set read_inc=25               # show progress when reading a mailbox
#set recall               # prompt to recall postponed messages
set record=~/Mail/sent #default location to save outgoing mail
set reply_to               # always use reply-to if present
#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
#set resolve          # move to the next message when an action is performed
#set reverse_alias          # attempt to look up my names for people
set reverse_name          # use my address as it appears in the message
# i am replying to
set nosave_empty          # remove files when no messages are left
#set save_name               # save outgoing messages by recipient, if the
set sendmail=/usr/bin/msmtp     # how to deliver mail
#set shell="/bin/zsh"          # program to use for shell escapes
#set signature="~/.signature"     # file which contains my signature
# I subscribe to a lot of mailing lists, so this is _very_ useful. This
# groups messages on the same subject to make it easier to follow a
# discussion. Mutt will draw a nice tree showing how the discussion flows.
set sort=threads          # primary sorting method
#set sort_aux=reverse-date-received     # how to sort subthreads
#set sort_aux=last-date          # date of the last message in thread
set sort_browser=reverse-date     # how to sort files in the dir browser
set spoolfile=~/Mail/inbox                # where my new mail is located
#set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d?
Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?
%l]---(%s)-%>-(%P)---"
#set status_on_top          # some people prefer the status bar on top
#set strict_threads          # don't thread by subject
set tilde               # virtual lines to pad blank lines in the pager
#set timeout=0               # timeout for prompt in the index menu
#set tmpdir=~/tmp          # where to store temp files
#set to_chars=" +TCF"
#set use_8bitmime          # enable the -B8BITMIME sendmail flag
set nouse_domain          # don't qualify local addresses with $domain
#set use_from               # always generate the `From:' header field
set implicit_autoview=yes     # pager shows parts having a mailcap viewer
set pgp_verify_sig=no          # don't automatically verify message signatures
#set visual=vim               # editor invoked by ~v in the builtin editor
#set nowait_key               # prompt when a pipe returns normal status
set write_inc=25          # show progress while writing mailboxes
# only enable the following IFF you have sendmail 8.8.x or you will not
# be able to send mail!!!
#set dsn_notify='failure,delay'     # when to return an error message
#set dsn_return=hdrs          # what to return in the error message
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Header fields I don't normally want to see
#
ignore *          # this means "ignore all lines by default"
# I do want to see these fields, though!
unignore     from: subject to cc mail-followup-to \
date x-mailer x-url # this shows how nicely wrap long lines
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Color definitions
#
color normal     white black
color attachment brightyellow black
color hdrdefault cyan black
color indicator black cyan
color markers     brightred black
color quoted     green black
color signature cyan black
color status     brightgreen blue
color tilde     blue black
color tree     red black
color header     brightgreen black ^From:
color header     brightcyan black ^To:
color header     brightcyan black ^Reply-To:
color header     brightcyan black ^Cc:
color header     brightblue black ^Subject:
color body     brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body     brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
# attributes when using a mono terminal
#mono header underline ^(From|Subject):
mono quoted bold
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Key bindings
#
#     maps:
#          alias          alias menu
#          attach          attachment menu
#          browser          directory browser
#          compose          compose menu
#          index          message index
#          pgp          pgp menu
#          postpone     postponed message recall menu
#          generic          generic keymap for all of the above
#          editor          line editor
#          pager          text viewer
#         
bind generic "\e last-entry
bind generic { top-page
bind generic } bottom-page
bind generic \177 last-entry
macro index \cb " urlview"     # simulate the old browse-url function
macro index S "+spam"
macro pager S "+spam"
macro index G "!fetchmail -a -m 'procmail -d %T'\r"
macro pager G "!fetchmail -a -m 'procmail -d %T'\r"
#macro index \#     "bug"     # search for bugs
#macro index "\""     " set realname=\"real hairy macro\" ?realname" # and a comment to boot!
#macro index f1     "woohoo!"
bind pager G bottom     # just like vi and less
#macro    pager    \Ck      " pgp -kaf"    # a comment is valid here
#macro pager X " morepgp"     # pipe PGP message to a script
#bind editor \cy eol     # make ^Y jump to the end of the line
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# User Defined Headers
#
#my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment
#my_hdr X-Operating-System: `uname -a`
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify default filename when saving messages
#
#     save-hook [!]
#
#  is provided as default when saving messages from
#save-hook mutt- =mutt-mail
#save-hook aol\\.com$ +spam
save-hook ^judge +diplomacy
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Multiple spool mailboxes
#
#     mbox-hook [!]
#
# Read mail in  is moved to  when  is
# closed.
#mbox-hook =mutt-users.in =mutt-users
#mbox-hook +TEST +inbox
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Change settings based upon message recipient
#
#     send-hook [!]
#
#  is executed when sending mail to an address matching
#send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User '
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify where to save composed messages
#
#     fcc-hook [!]
#
#  is recipient(s),  is where to save a copy
#fcc-hook joe +joe
#fcc-hook bob +bob
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Change settings based on mailbox
#
#     folder-hook [!]
#
#  is executed when opening a mailbox matching
#folder-hook .          'set sort=date-sent'
#folder-hook mutt     'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
#folder-hook =mutt     my_hdr Revolution: \#9 # real comment
#folder-hook .          'set reply_regexp="^re:[ \t]*"'
# this mailing list prepends "[WM]" to all non reply subjects, so set
# $reply_regexp to ignore it
# Warning: May break threads for other people.
#folder-hook +wmaker     'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Aliases
#
#     alias   [ ,  ... ]
#alias exam "\# to annoy michael"
#alias me Michael Elkins  # me!
alias mutt-dev Mutt Development List  # power users
alias mutt-users Mutt User List
alias mutt-announce Mutt Announcement List
alias wmaker WindowMaker Mailing List
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Mailboxes to watch for new mail
#
#     mailboxes  [  ... ]
#
mailboxes ! +mutt-dev +mutt-users +open-pgp +wmaker +hurricane +vim +ietf \
+drums
#mailboxes `echo $HOME/Mail/*`
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify the order of the headers to appear when displaying a message
#
#     hdr_order  [  ... ]
#
unhdr_order *                    # forget the previous settings
hdr_order date from subject to cc
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Identify mailing lists I subscribe to
#
#     lists  [  ... ]
lists ^mutt-dev@mutt\\.org$ ^mutt-users@mutt\\.org$
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Automatically use entries from ~/.mailcap to view these MIME types
#
#     auto_view  [  ... ]
auto_view application/x-gunzip
auto_view application/x-gzip
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Scoring
#
#     score  
#
# 9999 and -9999 are special values which cause processing of hooks to stop
# at that entry. If you prefix the score with an equal sign (=), the score
# is assigned to the message and processing stops.
#score '~f ^me@cs\.hmc\.edu$' 1000
#score '~t mutt | ~c mutt' =500
#score '~f aol\.com$' -9999
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# I use Mutt on several different machines, so I put local config commands
# in a separate file so I can have the rest of the settings the same on all
# machines.
#
#source ~/.muttrc-local     # config commands local to this site
# EOF
4:.msmtprc
#Set default values for all following accounts
defaults
tls on
tls_trust_file [color="#00ff00"]/home/loin/Mail/certs/Thawte_Premium_Server_CA.pem
logfile ~/Mail/msmtplog
account gmail            
host [color="#993366"]smtp.gmail.com
from [color="#ff0000"]EmailAddress
auth on
user[color="#ff0000"] IdOfYours
password[color="#ff0000"] password
account default : gmail
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/104210/showart_2056267.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP