messenger-monitor-bundle icon indicating copy to clipboard operation
messenger-monitor-bundle copied to clipboard

Command messenger:monitor:purge reduced options

Open golliholzland opened this issue 2 years ago • 6 comments

It would be nice to accept customized ranges such ass 2 weeks / 3 weeks ....

golliholzland avatar Oct 27 '23 08:10 golliholzland

messenger:monitor:purge --older-than="2 weeks ago" doesn't work?

kbond avatar Oct 28 '23 15:10 kbond

messenger:monitor:purge --older-than="2 weeks ago" doesn't work?

No, we are limited to the defined ENUM
image

golliholzland avatar Oct 30 '23 08:10 golliholzland

Got it, yeah, I'll need to refactor this to allow what you describe.

kbond avatar Oct 31 '23 14:10 kbond

I just had another Idea : it would be beneficial to include a "keep" option. This "keep" option should accept an integer value, and its purpose should be to specify how many of the most recent messages should be retained for each type of transport. Additionally, it would be helpful if we could customize this retention setting for each type of transport.

golliholzland avatar Oct 31 '23 15:10 golliholzland

it would be beneficial to include a "keep" option

Yes, that would line up with the behaviour of the messenger:monitor:schedule:purge.

kbond avatar Oct 31 '23 15:10 kbond

it would be beneficial to include a "keep" option

Yes, that would line up with the behaviour of the messenger:monitor:schedule:purge.

I tried this but it didn't work, I check it again. Thanks for the fast answer

golliholzland avatar Oct 31 '23 16:10 golliholzland