:
Subject: Re: Can't locate Mail/SpamAssassin/Plugin/SpamCop.pm:
lib/Mail/SpamAssassin/Plugin/SpamCop.pm: Permission denied
Update: the cd /home/rd solves the problem!
I did not realize that the reportspam-line.sh is just called once and I have
to restart it
try "mkdir -m 000 lib&
em when reporting spam using
> > > > > > > spamassassin -rD
> > > > > > >
> > > > > > > I monitor an imap directory using inotifywait:
> > > > > > >
> > > > > > > inotifywait --monitor --quiet --
/Plugin/SpamCop.pm: lib/Mail/SpamAssassin/
Plugin/SpamCop.pm: Permission denied at (eval 31) line 1.
Thanks
Rainer
Am Donnerstag, 19. April 2018, 10:08:24 CEST schrieb Jesse Norell:
> Somewhat of a guess, but try adding "cd /home/rd/" at the top of your
> script. I've had a similar
gt; > > > > inotifywait --monitor --quiet --event moved_to,create --
> > > > > format '%f'
> > > > > /home/rd/
> > > > > Maildir/.SPAM-learned/cur/ | /home/rd/bin/reportspam-line.sh
> > > > > 2>&1
> > > > &
s like
Apr 18 18:44:40.902 [5112] warn: plugin: failed to parse plugin (from @INC):
Can't locate Mail/SpamAssassin/Plugin/SpamCop.pm: lib/Mail/SpamAssassin/
Plugin/SpamCop.pm: Permission denied at (eval 31) line 1.
I have seen similar commands when ./lib/Mail/SpamAssassin/Plugin/SpamCop.pm
direc
/home/rd/
> >>> Maildir/.SPAM-learned/cur/ | /home/rd/bin/reportspam-line.sh 2>&1
> >>>
> >>> and then report spam using
> >>>
> >>> rd@netcup:~$ cat bin/reportspam-line.sh
> >>> !#/bin/bash
> >>>
>
le read line
do
echo "$line"
spamassassin -rD < /home/rd/Maildir/.SPAM-learned/cur/$line
done < "${1:-/dev/stdin}"
rd@netcup:~$
Then spamassassin report errors like
Apr 18 18:44:40.902 [5112] warn: plugin: failed to parse plugin (from
@INC):
Can't locate Mail/SpamAssassin/
portspam-line.sh
> > !#/bin/bash
> >
> > while read line
> > do
> >
> > echo "$line"
> > spamassassin -rD < /home/rd/Maildir/.SPAM-learned/cur/$line
> >
> > done < "${1:-/dev/stdin}"
> > rd@netcup:~$
&g
t;
> while read line
> do
> echo "$line"
> spamassassin -rD < /home/rd/Maildir/.SPAM-learned/cur/$line
> done < "${1:-/dev/stdin}"
> rd@netcup:~$
>
> Then spamassassin report errors like
>
> Apr 18 18:44:40.902 [5112] warn: plugin
n: plugin: failed to parse plugin (from @INC):
Can't locate Mail/SpamAssassin/Plugin/SpamCop.pm: lib/Mail/SpamAssassin/
Plugin/SpamCop.pm: Permission denied at (eval 31) line 1.
Apr 18 18:44:40.902 [5112] dbg: plugin: loading
Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
Apr 18 18:44:4
10 matches
Mail list logo