On 10:09 Fri 02 Jun 2023, steve wrote:
Hi,I receive every day pdf reports. I have now more than 1800 mails, which takes a lot of space. Every first day of the month, the report is a summary of the month, and I would like to only keep those one. I know how to filter mail using ~d. But that's only for one specific day. I tried something like ~d 1/*/* but got 'invalid month */*' Also tried ~d 1/[1-12]/2022 but got 'invalid month [1-12]/2022' How could I do?
How about running it on every month end, so you don't have to run it like for whole year(that was you were trying, right?) If you want to keep only the 1st date pdf and remove rest of days in month pdfs then you can simply do so , by doing ~d02/month/year-30/month/year ...likewise for the month having 31 days too. You can easily create an macro to bind it to a key to invoke that,so you don't have to remember the syntax. Not sure, if it solve your owes. Or probably I misread your need. -- Thanks, Bhaskar "Here's looking at you kid"-- Casablanca https://about.me/unixbhaskar
signature.asc
Description: PGP signature