this post was submitted on 11 Feb 2024
29 points (93.9% liked)

Linux

48208 readers
1640 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] otl@hachyderm.io 2 points 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