Re: fetchamil / procmail as non root : unable to call script

2023-06-21 Thread BASSAGET Cédric
Hi Joel, thanks for your response, you solved my problem. But I still don't understand why ! :) with : $ cat ~/.procmailrc LOGFILE=procmail.log VERBOSE=yes :0 * ^Message-ID: \/.* | ./curl_molene.sh $MATCH $ cat ~/curl_molene.sh #!/bin/bash /usr/bin/curl "http://url/alerte.php?messageid=$1"; it w

Re: fetchamil / procmail as non root : unable to call script

2023-06-21 Thread Joel Roth
On Tue, Jun 20, 2023 at 07:52:24AM +0200, BASSAGET Cédric wrote: > Hello > I'm using fetchamil / procmail to fetch mails from an POP server and parse > it then launch a script or system call : > > > # cat .fetchmailrc > set logfile fetchmail.log > poll imaps.dom.tld proto POP3 > user "u...@dom.tl

Re: fetchamil / procmail as non root : unable to call script

2023-06-21 Thread Nicolas George
BASSAGET Cédric (12023-06-21): > Same result : log seems fine, but /tmp/test.txt still does not exist : > > procmail: Executing " echo "whoami" > /tmp/test.txt" > procmail: Assigning "LASTFOLDER= echo "whoami" > /tmp/test.txt" > Subject: test > Folder: echo "whoami" > /tmp/test.txt > 1825 The

Re: fetchamil / procmail as non root : unable to call script

2023-06-21 Thread BASSAGET Cédric
Hello Tomas, Same result : log seems fine, but /tmp/test.txt still does not exist : procmail: Executing " echo "whoami" > /tmp/test.txt" procmail: Assigning "LASTFOLDER= echo "whoami" > /tmp/test.txt" Subject: test Folder: echo "whoami" > /tmp/test.txt 1825 Regards Le mar. 20 juin 2023 à 08:

Re: fetchamil / procmail as non root : unable to call script

2023-06-20 Thread Christoph Brinkhaus
Am Tue, Jun 20, 2023 at 07:52:24AM +0200 schrieb BASSAGET Cédric: Bonjour Cédric, > Hello > I'm using fetchamil / procmail to fetch mails from an POP server and parse > it then launch a script or system call : [...] > This work fine when calling fetchamil as root with "fetchamil -f > .fetchmail

Re: fetchamil / procmail as non root : unable to call script

2023-06-19 Thread tomas
On Tue, Jun 20, 2023 at 07:52:24AM +0200, BASSAGET Cédric wrote: > Hello > I'm using fetchamil / procmail to fetch mails from an POP server and parse > it then launch a script or system call : > > > # cat .fetchmailrc > set logfile fetchmail.log > poll imaps.dom.tld proto POP3 > user "u...@dom.tl

fetchamil / procmail as non root : unable to call script

2023-06-19 Thread BASSAGET Cédric
Hello I'm using fetchamil / procmail to fetch mails from an POP server and parse it then launch a script or system call : # cat .fetchmailrc set logfile fetchmail.log poll imaps.dom.tld proto POP3 user "u...@dom.tld" pass "xx" preconnect "date >> ~/fetchmail.log" ssl fetchall keep no rewrite