-
Notifications
You must be signed in to change notification settings - Fork 1
/
fdm.conf
32 lines (25 loc) · 875 Bytes
/
fdm.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# .fdm.conf to filter emails and move them to respective directories
# based on matched rules. emails are fetched by mbsync, and not fdm.
set verify-certificates
set maximum-size 32M
$path = "%h/.mail/acct0"
$imp = "${path}/imp"
# account
account "acct0" maildir "${path}/inbox"
# define actions
action "drop" drop
action "keep" keep
action "inbox" maildir "${path}/inbox"
action "imp" maildir "${imp}"
# filter rules
match "^From:.*ding\.bat@gmail\.com" in headers action "imp"
match "^From:.*foo\.bar@google\.com" in headers action "imp"
# just keep remaining email in inbox
match all action "keep"
# for now, gmail fetch is done by mbsync/isync, so commented out
# following section
#account "acct0" imaps
# server "imap.gmail.com"
# user "[email protected]"
# pass $(security find-internet-password -s imap.gmail.com -r imap -a [email protected] -w) keep
# no-verify