I have made a (very) simple sieve script to sort incoming emails, but I was wondering if it is possible to sort existing emails into folders using sieve? I'm very new to sieve and I couldn't find resources online on whether this was possible or not.

require ["fileinto"];

if address :is "from" ["[email protected]", "[email protected]", "[email protected]", "[email protected]"]
    fileinto "Family";

Many thanks.

  • 2
    What mail server are you using?
    – DavidPostill
    Mar 17, 2022 at 20:47
  • @DavidPostill I am using ProtonMail.
    – telometto
    Mar 18, 2022 at 6:25
  • After a brief look at the documentation it looks like sieve works on incoming mail only. Normal filters work on all emails.
    – DavidPostill
    Mar 18, 2022 at 7:37
  • Aw, bummer. Alright, I'll close the issue. Thank you for your help. EDIT: looks like I can't. Should I leave it as is, then?
    – telometto
    Mar 18, 2022 at 15:29
  • Proton Mail now supports running sieve on existing mail. It's in the drop down next to the filter (at least on Mail Plus accounts). Dec 21, 2023 at 3:15


You must log in to answer this question.

Browse other questions tagged .