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?

  • Oliver Lowe@hachyderm.io
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    5 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