Steffen Nurpmeso wrote in
<20230220191015.bby4z%[email protected]>:
|Χάρης Καραχριστιανίδης wrote in
| <20230220184916.javb0%[email protected]>:
||Steffen Nurpmeso <[email protected]> wrote:
| ...
||>|> I installed bogofilter and put these lines in .mailrc.
| ...
||>|> ? spamrate 1-31
| ...
||Thank you! Is it a problem that I use imap? Inbox is imap. Manual says \
||it has to be stored localy for spam lookup.//
|
|We do download it all in order to do the spam check.
|(If not that would be a bug. .. Does not seem to be one?)
You can use IMAP search expressions to match for simple "shit" on
the server, move it away, then spamrate the rest locally.
To make local teaching easier i have
commandalias H spamham
commandalias S spamspam
I almost never have to use this no more. (Even a key-binding
could be used today, to make it even easier!)
For example, i download my mail via SSH like this (this is v14.10
so it will not work 1:1 on v14.9.24; on the server s-nail is
v14.9.24, and was even older for long, no -Y..; an excerpt only):
define load-sdaoden.eu {
\local set noheader
\!exec ssh [email protected] "\
{ \
{ \
echo 'move \"@f@FedEx|lottery\" \
\"@OBORON|\\[SPAM|Voice Message|\
beloved|business|charity|dear
friend|darlehen|donation|\
investment|kredit|loan|payment|urgent|voicemail|\
masturb|pädophi|pedophil|porn\" \
\"@^[[:space:]]*((hello|hi|re|reply|yo):?[[:space:]]*\
(there[[:space:]]*)?)?\$\" \
~/spam.mbox';\
\
echo 'move * ~/download.mbox'; \
} |\
mail -:/ -#f %:/var/spool/mail/steffen; \
} >/dev/null 2>&1 &&\
\
if [ -s ~/download.mbox ]; then \
cat ~/download.mbox &&\
rm ~/download.mbox;\
fi\
" >> ~/sec.arena/mail/download
\fi+download
\h
\spamr:n
\sea:s
\mov ` /var/tmp/${LOGNAME}/traffic/.spam~
\sea:n
}
But something similar is doable with IMAP search expressions,
which are executed on the server.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)