.procmailrc
· 475 B · Text
Raw
## Match subject and move to a folder
:0:
* ^Subject.*<WHAT TO MATCH>
folder
## Match sender and move to a folder
:0:
* ^From.*<SENDER WITH ESCAPED DOTS>
folder
## Match subject and move to a folder
:0:
* ^Subject.*<WHAT TO MATCH>
folder
## Send notification to another email, store message on this server
## Can use matching rules instead of just *
:0c
*
| formail -czxSubject: | mail -s "You have mail" <receiver address>
## Forward and store
:0c
*
! <receiver address>
1 | ## Match subject and move to a folder |
2 | :0: |
3 | * ^Subject.*<WHAT TO MATCH> |
4 | folder |
5 | |
6 | ## Match sender and move to a folder |
7 | :0: |
8 | * ^From.*<SENDER WITH ESCAPED DOTS> |
9 | folder |
10 | |
11 | ## Match subject and move to a folder |
12 | :0: |
13 | * ^Subject.*<WHAT TO MATCH> |
14 | folder |
15 | |
16 | ## Send notification to another email, store message on this server |
17 | ## Can use matching rules instead of just * |
18 | :0c |
19 | * |
20 | | formail -czxSubject: | mail -s "You have mail" <receiver address> |
21 | |
22 | ## Forward and store |
23 | :0c |
24 | * |
25 | ! <receiver address> |