[MlMt] Delete messages completely in the Deleted Messages Folder older than a month?

Randall Gellens mailmate at randy.pensive.org
Sat Aug 3 15:25:23 EDT 2024


On 2 Aug 2024, at 5:52, Henry Seiden wrote:

> Randall,
>
> Yes. This would reduce the number of rule from one per account to 1 
> per duration (about half the number of rules, since I use a one day 
> duration and a two week duration on Junk and a two week and 4 week 
> duration on Deleted Messages rules.
>
> Are the Rules name referring to the MailMate names or the actual name 
> of the IMAP folders? For instance Mailbox refers to Deleted Messages 
> as either an IMAP name of Deleted or Deleted Messages server names.
>
> I take it the rules work immediately at the time the rule determines a 
> match?
>
> As to conditions,  selecting the mailboxes involved in a time period 
> as being in each specific Account’s IMAP folders (E.G. Junk) to set 
> the “Expunge Junk 2 DAY” Rule?
>
> On the Rule setting for a date of receipt  for example @14 Days after 
> receipt (date is later than…) where do you set the number of days or 
> weeks or months? I don’t see number field.

The configuration of the smart mailbox (virtual mailbox) selects the 
real mailboxes that it will operate on. Double-clicking the mailbox name 
opens the pane that selects the mailbox it applies to. Here is an 
auto-expunge smart mailbox that operates on messages in multiple 
mailboxes:

![](cid:D193B112-EA30-44F6-8230-90B25E75B2EF at randy.pensive.org "smart 
mailbox.png")

In the upper right corner of this pane, there are four icons. The second 
of these is "Conditions for messages displayed." Click that and add a 
rule that selects messages that you want to delete. (If you have 
multiple periods, create a compound condition in parts.) Here are the 
conditions for the same smart mailbox:

![](cid:6861BADF-0119-4B4C-9CA5-AC4B000EA4E1 at randy.pensive.org "smart 
mailbox conditions.png")

Select the mailbox and right-click its name, then select "Edit rules" to 
open the pane for adding, changing, and deleting rules.

The rules of the mailbox do the actual permanent deletion. I have two 
rules, one for messages tagged as "Junk" and the other for messages 
without the tag.

The rule for messages not tagged as junk:

![](cid:F7ED25C9-4854-4D56-BDEE-5B109FBEDF5C at randy.pensive.org "rule 
1.png")


The rule for messages tagged as junk:

![](cid:F238AFF8-F063-48FF-B65D-76BC85934AEF at randy.pensive.org "rule 
2.png")

As you can see, I use the "Date Received" field as it is the date 
MailMate received the message from the server. You could use the "Date" 
header field, but that's set by the sender and could be wrong, or the 
message might have been delayed in transit (as an example, I have some 
messages with bad "Date:" header fields, set to years before the message 
was actually sent).

To add "Date-Received", in the Conditions box, select "Other" at the 
bottom of the list, Type "Date" into the search box, and select 
"Date-Received".

In these examples, the rules include the same conditions as on the smart 
mailbox itself. This is not necessary: it's fine to have no conditions 
on the rules, just the action of deleting permanently. The conditions on 
the smart mailbox do the work of selecting the messages.

--Randall




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240803/ddb5350d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smart mailbox.png
Type: image/png
Size: 115530 bytes
Desc: not available
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240803/ddb5350d/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smart mailbox conditions.png
Type: image/png
Size: 136338 bytes
Desc: not available
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240803/ddb5350d/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rule 2.png
Type: image/png
Size: 148835 bytes
Desc: not available
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240803/ddb5350d/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rule 1.png
Type: image/png
Size: 153551 bytes
Desc: not available
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20240803/ddb5350d/attachment-0007.png>


More information about the mailmate mailing list