Opened 7 years ago

Closed 7 years ago

#5467 closed Bug/Something is broken (fixed)

Need Spam Filter on Individual Account for another User

Reported by: https://id.mayfirst.org/lclement.fight.org Owned by: Daniel Kahn Gillmor
Priority: Medium Component: Tech
Keywords: spam filter Cc: lclement@…
Sensitive: no

Description

Hey guys,

Can you set up the server level spam filter for the account: zahara on Didier. Thanks

Reference https://support.mayfirst.org/ticket/5377

Change History (2)

comment:1 Changed 7 years ago by Daniel Kahn Gillmor

Owner: set to Daniel Kahn Gillmor
Status: newassigned

i'll do this now. Langston, if you don't already have the privileges to do something like this yourself, we should find some way for you to be able to do that.

comment:2 Changed 7 years ago by Daniel Kahn Gillmor

Resolution: fixed
Status: assignedclosed

I've set up the sub-maildir and set up incoming mail filter. I looked into moving old mail from the current inbox, but there doesn't seem to be anything there, so there was nothing to move.

0 zahara@didier:~$ maildirmake ~/Maildir/.detected-spam
0 zahara@didier:~$ ls -l ~/.mailfilter
ls: cannot access /home/members/fight/sites/critpath.org/users/zahara/.mailfilter: No such file or directory
2 zahara@didier:~$ cat > ~/.mailfilter <<'EOF'
> logfile "$HOME/mailfilter.log"
> 
> # get rid of spam
> if (/^X-Spam-Flag: YES/)
> {
>         to "Maildir/.detected-spam/"
> }
> EOF
0 zahara@didier:~$ mv -i $(grep --files-with-matches '^X-Spam-Flag: YES$' ~/Maildir/cur/* ) ~/Maildir/.detected-spam/cur/
grep: /home/members/fight/sites/critpath.org/users/zahara/Maildir/cur/*: No such file or directory
mv: missing destination file operand after `/home/members/fight/sites/critpath.org/users/zahara/Maildir/.detected-spam/cur/'
Try `mv --help' for more information.
1 zahara@didier:~$ 

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.