[英]procmail does not save emails in maildir/new
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/'
}
問題是, /mnt/data/maildir/nerdy_groups_and_lists/new
在例如/mnt/data/maildir/junk/new
或/mnt/data/maildir/nerdy_groups_and_lists/new
下找到我的電子郵件, /mnt/data/maildir/nerdy_groups_and_lists/new
在/mnt/data/maildir/junk
和/mnt/data/maildir/nerdy_groups_and_lists
下找到它們/mnt/data/maildir/nerdy_groups_and_lists
,mu4e找不到它們。 我究竟做錯了什么?
傳遞到maildir文件夾中的語法要求在目錄名上使用大寫的斜杠。 如您所知,如果沒有斜線,Procmail會以較舊的舊格式進行寫入,該格式會在目錄本身中創建單調編號的文件。 (還有一種MH模式,該模式使用MH約定創建文件,該約定使用帶有斜杠和點的dir/.
.。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.