I am again deleting old mails. And I have inboxes with like 200 of them, it is hell.

I would like to autodelete mails that contain a date. If there are multiple dates, take the latest one. If that date is older than x days from today, delete the mail.

Is there something like that? Or some regex possible in native filters?

  • kixik@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    9 months ago

    Are you looking to clean up your client inbox, or the server inbox?

    If your client inbox, you don’t need a plugin, on the account settings synchronization & storage, on the section disk space, select the synchronize the most recent and specify the amount days, months, years, whatever.

    If you want to remove too old messages from the server, perhaps the server itself offers a way to do so…

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      I want to delete my mails? I use IMAP so this is the same and I will always delete all my old mails from everywhere.

      I dont think servers have more of those features than Thunderbird.

  • Shdwdrgn@mander.xyz
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    9 months ago

    So you’re not simply trying to delete old emails based on the date they were sent to you? It might help to know where these dates are located, if in the subject line or in the body. And is consistently a straightforward date like “2024-02-11”, or are you also trying to look for vague references like “Feb 11”? That might make a difference for how the question is answered, however a quick google search suggests that the FiltaQuilla add-on will support regular expressions in the message filters for addresses and subjects, while “Expression Search / GmailUI” adds expressions for body searches.

    • Pantherina@feddit.deOP
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      No that would be easy. Often that also works and is kinda enough, but invitations are always sent in different timespans ahead.

      Hm, seems like both addons are not what I need but if there is a good modern one that could be used as reference.

  • Oliver Lowe@hachyderm.io
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    9 months ago

    If you’ve done any programming, you could hook up a script to fdm (https://github.com/nicm/fdm).

    Rough logic, for each message:

    * match body with several timestamp regexps
    * parse matched messages
    * find dates in message body
    * parse final match
    * discard message if that is date earlier than now - x days

    @Pantherina @linux