Empty all users SPAM folder / View as.. option ?

Discussion in 'General' started by Indicium, May 27, 2017.

  1. Indicium

    Indicium New Member

  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Make sure you have iterate_query uncommented in /etc/dovecot/dovecot-sql.conf then as root run
    Code:
    doveadm expunge -A mailbox "SPAM" all
    Not possible in the out-of-box configuration, but you could setup dovecot "master users": https://wiki2.dovecot.org/Authentication/MasterUsers
     
    Indicium likes this.
  3. Indicium

    Indicium New Member

    Hello,

    I've tried the SPAM option and got this.

    root@host:~# doveadm expunge -A mailbox "SPAM" all
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM
    doveadm([email protected]): Error: Syncing mailbox 'SPAM' failed: Mailbox doesn't exist: SPAM

    Email accounts do existe, and are working. iterate_query it's uncommented.

    Thanks for your reply.
    AH
     
  4. florian030

    florian030 Well-Known Member HowtoForge Supporter

    If you no SPAM-Folder you can not delete mails in this folder. Check your imap-folder names.
     
    Indicium likes this.
  5. Indicium

    Indicium New Member

    DOH ME! hahaha Sorry, yes, the SPAM folder is named "Junk".

    Thanks, that worked.
    AH

    PD will post about the other fix later.
     

Share This Page