【问题标题】:procmail does not save emails in maildir/newprocmail 不在 maildir/new 中保存电子邮件
【发布时间】:2017-04-04 15:01:27
【问题描述】:

Procmail 将所有新电子邮件直接保存在所需的 maildir 文件夹中,而不是 maildir/new。我的 .procmailrc 如下:

SHELL=/bin/bash
LINEBUF=4096
PATH=/bin:/usr/bin:/usr/local/bin:/opt/local/bin
VERBOSE=off
MAILDIR=/mnt/data/maildir
DEFAULT=$MAILDIR/inbox/ # See the slash!
LOGFILE=$HOME/procmaillog
FORMAIL=/opt/local/bin/formail
SENDMAIL=/usr/sbin/sendmail

# Nuke duplicate messages
:0 Wh: msgid.lock
| $FORMAIL -D 8192 msgid.cache
:0 a: 
$MAILDIR/duplicates

# SpamAssassin sample procmailrc
:0fw: spamassassin.lock
* < 256000
| spamassassin-5.24 

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
$MAILDIR/junk

# All mail tagged as spam (eg. with a score higher than the set threshold)
:0:
* ^X-Spam-Status: Yes
$MAILDIR/junk

:0:
* ^List-id: .*(somelist_id|someother_list_id|etc)
$MAILDIR/nerdy_groups_and_lists

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "
  :0 fhw
  | sed -e '1s/^/F/'
}

问题是,而不是在 e.g. 下找到我的电子邮件。 /mnt/data/maildir/junk/new/mnt/data/maildir/nerdy_groups_and_lists/new 我分别在/mnt/data/maildir/junk/mnt/data/maildir/nerdy_groups_and_lists 下找到它们,而mu4e 找不到它们。我做错了什么?

【问题讨论】:

  • 你是来自未来,还是你打错了 SpamAssassin 的版本号?最新版本是 3.4.1。
  • @triplee: spamassassin-5.24 --version 导致SpamAssassin version 3.4.1 running on Perl version 5.24.1 ;)

标签: procmail mu4e


【解决方案1】:

传递到 maildir 文件夹的语法要求目录名称的尾部有一个重要的斜杠。如您所见,如果没有斜线,Procmail 会以较旧的传统格式写入,该格式会在目录本身中创建单调编号的文件。 (还有一种 MH 模式,它使用 MH 约定创建文件,它使用带有斜线和点的 dir/.。)

【讨论】:

    猜你喜欢
    • 2015-07-02
    • 2011-11-18
    • 2021-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    相关资源
    最近更新 更多