Sample Header Ad - 728x90

How to get a filename of copied email by procmail and pass it to a script?

0 votes
1 answer
207 views
I'm trying to execute script when email arrives my server and pass its filename to that script. First part is done, procmail executes script each time an email arrives. Before executing script it copies email to the specific directory. :0c procmail-dir/ :0 fw | /usr/bin/python3 /home/user/script.py How can I get a filename/path to just saved email in procmail-dir and pass it to a script.py?
Asked by VIPPER (115 rep)
Mar 25, 2020, 09:52 PM
Last activity: Mar 26, 2020, 05:54 AM