Hallo,
* Joey Hess [Mon, Sep 05 2022, 03:13:41PM]:
> I agree, I would also need this in order to replace my useage of
> archivemail with mail-expire. I'm probably not unusual in having certian
> mailboxes full of messages that need to remain in there despite being
> old or unread.

Hmm, okay. What do you think about the following extension? Just
drafting for now. Seems like mbox and Maildir deviate on the status flag
naming, therefore I would probably add a readable set of filters.

   Message selection
       Messages can be filtered by their status flags, including or excluding 
them from being considered for expiration.  In case of conflicting choice, the 
message will be kept.

       --flags-in, -I
           Consider only messages which flags are matched by the flags listed 
in this option (comma-separated list). Possible flags are: Seen, Recent, 
Answered, Flagged, Draft, Deleted.  The meaning of Seen and Recent may vary
           depending on the mail storage format and the client editing message 
metadata.  For Maildir, Recent typically means "still in New area" and Seen is 
"MUA marked the message as actually read".

           EXAMPLE: -I Deleted,Seen

       --flags-not-in, -E
           Exclude the matched messages from expiration. See -I option for 
format description.

SEE ALSO
       https://www.rfc-editor.org/rfc/rfc3501#section-2.3.2, 
https://doc.dovecot.org/admin_manual/mailbox_formats/mbox/

Dev branch: 
https://salsa.debian.org/blade/mail-expire/-/commits/feat-992995-status-filter

Best regards,
Eduard.

Attachment: signature.asc
Description: PGP signature

Reply via email to