当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 关于procmail的配置
帖子发表于 : 2009-04-08 11:09 
头像

注册: 2007-09-04 5:23
帖子: 193
地址: 福建福州
送出感谢: 0 次
接收感谢: 0 次
关于procmail的配置:我的问题是这样的,我不知道我的配置文件有没有错误,但是无论怎么设置,邮件最后都会到达inbox这个邮箱里,有的时候会到达IT这个邮箱,高手帮忙看看我的配置文件有没有问题!


代码:
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/inbox/
LOGFILE=$MAILDIR/log
VERBOSE=off
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

:0:
* ^From:.*0828*
$MAILDIR/ABook/

:0:
* ^Subject:.*乐不思蜀*
$MAILDIR/ALbss/

:0:
* ^Subject:.*IT*
* ^Form:.*google*
$MAILDIR/IT/

:0:
* ^Subject:.*汽车*
$MAILDIR/Cars/

:0:
* ^Subject:.*新闻*
$MAILDIR/New/

:0:
* ^Subject:.*游戏*
$MAILDIR/Game/

:0:
* ^Subject:.*互联网*
$MAILDIR/Internet/

:0:
* ^Subject:.*python*
$MAILDIR/Python/

:0:
* ^Subject:.*老K实验室*
$MAILDIR/LaoK/





这个是getmail的:

代码:
[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
port = 995
username = jin18658424@gmail.com
password =
#
#[destination]
#type = Maildir
#path = ~/Mail/inbox/
[destination]
type = MDA_external
path = /usr/bin/procmail
#
[options]
verbose = 0
delete = true
message_log = ~/.getmail/getmail.log


这个muttrc:

代码:
#======================================================#
# Boring details
set realname = "datou"
set from = "jin18658424@gmail.com"
set use_from = yes
set envelope_from ="yes"

#set pop_last=yes
#set pop_pass=j0i8a2n8g
#set pop_user=jin18658424@gmail.com
#set pop_host=pops://pop.gmail.com
# Use a signature
#set signature="~/.signature"

#用快捷键G调用getmail
macro index G "!/usr/bin/getmail"

# Use msmtp rather than sendmail. Check that
# the path is correct for your system:
set sendmail="/usr/bin/msmtp"
# If not set in ~/.bashrc:
set spoolfile = ~/Mail/inbox

#======================================================#
# Folders
set mbox_type=Maildir
set mbox="$HOME/Mail/inbox"
set folder="$HOME/Mail" # Local mailboxes stored here
set record="+sent"           # Where to store sent messages
set postponed="+postponed"   # Where to store draft messages
set mbox_type=mbox           # Mailbox type   
set move=no                  # Don't move mail from spool

#======================================================#
# Watch these mailboxes for new mail, useful only if
# Procmail or Maildrop is used to sort mail.
#mailboxes ! +slrn +fetchmail +mutt
mailboxes +New
mailboxes +IT
mailboxes +ABooks
mailboxes +Albss
mailboxes +Cars
mailboxes +House
mailboxes +Game
mailboxes +Internet
mailboxes +Python
mailboxes +LaoK
#set sort_browser=alpha    # Sort mailboxes by alpha(bet)
set sort_browser=date # Sort mailboxes by date(LATEST first)

#======================================================#
# What to show and order of headers
ignore *
unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
         Cc: Reply-To: Subject: Mail-Followup-To:
hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
        Cc: Reply-To: Subject: Mail-Followup-To:

#======================================================#
# which editor do you want to use?
# vim of course!
set editor="gvim -c 'set tw=72 et' '+/^$' "
set edit_headers=yes      # See the headers when editing

#======================================================#
# Aliases

set alias_file = ~/Mail/mutt_aliases # In their own file
#source ~/mail/mutt_aliases           # Source them
#set sort_alias=alias                 # Sort alphabetically

#======================================================#
# Colours: defaults are a little bleak so experiment!

source ~/.mutt/mutt_colors            # In their own file

#======================================================#
# Lists: An example using the mutt-users list:

lists mutt-users
subscribe mutt-users
set followup_to=yes        # Sets 'Mail-Followup-To' header
set honor_followup_to=yes
fcc-hook mutt-user +mutt   # See your own posts using fcc

#======================================================#
# Odds and ends

set markers          # mark wrapped lines of text in the pager with a +
set smart_wrap       # Don't wrap mid-word
set pager_context=5  # Retain 5 lines of previous page when scrolling.
set status_on_top    # Status bar on top.
push <show-version>  # Shows mutt version at startup

#======================================================#
# Adam Jiang
# add following lines
set sort = 'threads'
set sort_aux = 'last-date-received'
set imap_check_subscribed

ignore "Authorication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc

# for mailing lists
lists ubuntu-users@lists.ubuntu.com
lists ubuntu-devel@lists.ubuntu.com
lists seasar-user@ml.seasar.org
lists issue@seasar.org
lists vim_use@googlegroups.com
lists uclibc@uclibc.org

subscribe ubuntu-users@lists.ubuntu.com
subscribe ubuntu-devel@lists.ubuntu.com
subscribe seasar-user@ml.seasar.org
subscribe issue@seasar.org
subscribe vim_use@googlegroups.com
subscribe uclibc@uclibc.org

#========================自定义设置=============================
#处理html格式的邮件
auto_view text/html



_________________
内练一口气,外练一口屁,不内不外练志气!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 5 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译