server: seeker - fetch messages, filter, send via mqtt
This commit is contained in:
25
server/seeker/opt/fetch/mail/procmailrc
Normal file
25
server/seeker/opt/fetch/mail/procmailrc
Normal file
@ -0,0 +1,25 @@
|
||||
LOGFILE=/opt/fetch/mail/procmail.log
|
||||
|
||||
:0 fhw
|
||||
| formail -I "X-Keyword: 0"
|
||||
|
||||
:0 fBW
|
||||
* ? grep -iqf /opt/fetch/mail/keywords/full-disclosure
|
||||
| formail -I "X-Keyword: 1"
|
||||
|
||||
:0
|
||||
* ^X-Keyword: 0
|
||||
/dev/null
|
||||
|
||||
:0c
|
||||
| formail -I "" >> /opt/fetch/mail/mail.bodies
|
||||
|
||||
:0
|
||||
| formail -I "" | /usr/bin/mosquitto_pub -h mqtt.lxc.br0tkasten.de -i seeker -t notify/full-disclosure -s
|
||||
|
||||
|
||||
:0
|
||||
/dev/null
|
||||
|
||||
#:0
|
||||
#/opt/fetch/mail/mail.mbox
|
Reference in New Issue
Block a user