Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Support > Pruning messages basing on date and subject

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Support  /

Pruning messages basing on date and subject

[Zanin, Luciano]
Luciano Zanin
Newbie
Newbie
Posts: 54
Luciano Zanin - 04:33am, Jul 22 2022

Hello,
Does MD offer any solution to prune / delete old messages basing on date and subject?
Standard pruning option is based only on date and content filter rules only work on new messages, not existing ones.
So is there a way to delete old messages when they are older than x days and subject contains a certain string?

  (older msg: 3)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Luciano Zanin - Jul 22, 2022 10:32 am (#4 Total: 4)  

 

Photo of Author
Luciano Zanin
Newbie
Newbie
Posts: 54
Thank you,
anyway since we're dealing with email messages the creation datetime and the last edit datetime should be the same.

Instead, I made a little edit to the script since the files can't be deleted because they result locked by "another process". The process is the script itself, adding a "-List" before " | Remove-Item "
solves the problem.



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.