filter on date

Bhaskar Chowdhury unixbhaskar at gmail.com
Fri Jun 2 12:03:24 UTC 2023


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20230602/392bf71d/attachment.asc>


More information about the Mutt-users mailing list