Hi !
Could you pls give an example for CLI-Command?
I want to purge emails in a specific folder in only one specific account.
Or isn’t it possible?
Thx and best regards,
Matthias
Community
Hi !
Could you pls give an example for CLI-Command?
I want to purge emails in a specific folder in only one specific account.
Or isn’t it possible?
Thx and best regards,
Matthias
Yes, I’ve read this article. But:
“PURGE account folders Trash,Spam BEFORE 3w” → deletes for all acounts.
My acount name is called “ar”.
“PURGE account ar folders Trash,Spam BEFORE 3w” doesn’t work.
But what if you are using the PURGE command from your account?
like:
update domain test.tld
update account matthias
purge account folder Trash,Spam BEFORE 3w
“update account matthias” → invalid argument.
I guess, “update account” is not implemented but “update domain” is implemented.
Hello,
My fault to assume you have previously used CLI to executed commands.
Assuming you like to execute a CLI command into an account context (like the one associated to user.abc@test.tld) all you have to do is to navigate to that context (obviously after you have logged in). But an account is associated with a domain so you have first to navigate to the domain context (where you have other commands than the ones present at root level) and from there you may navigate to the needed account context.
Please find below an example of executing help
command into the account context associated with email address user.abc@test.tld:
<#> update domain test.tld
+OK: command successful
<domain#> update account user.abc
+OK: command successful
<domain-account#> help
-------------------------------------
The commands available for the Account context are:
EXIT/QUIT - exits CLI and closes connection to AXIGEN
HELP - prints this help message
BACK - cancels any changes made and switches back to the previous context
COMMIT - commits the changes made in this context
SHOW [ATTR <param>] - shows information about this context
LIST Aliases - lists aliases for current account
LIST Delegates - list delegate permissions for current account
LIST MEMBERSHIP [noGroups][noLists][sameDomain][directReference] - list groups and/or mailing lists referring to the current account
LIST Folders - lists folders for current account
...
PURGE account folders <folderName> [, <folderName>]* [<purgeCondition>] - purge mails from specified folders of the current user
...
REPAIR contacts in folder <folder> remove duplicates - removes duplicates from specified contacts folder based on first name, last name, email uniqueness
-------------------------------------
+OK: command successful
<domain-account#> quit
HTH,
Ioan
Hi!
OK, this works.
But only for folders = Trash and Spam.
I have a folder called “Test” in my Inbox.
When executing the command
“<domain-account#> purge account folders Test BEFORE 2w”
I get
“No selected folder allowed for purge in domain <computer.forum>”
So I followed th KB article and executed
<#> update domain my.domain
<domain#> config adminlimits
and
<domain-adminLimits#> set purgefolders (Trash,Spam,Test)
+OK: command successful
What is my mistake at this point?
Thx!
Hello,
What if you have Inbox/2023/Test
and Inbox/2024/Test
?
Could you please try to use a full path for the folder you are looking to purge?
So instead of Test
could you please use Inbox/Test
?
HTH,
Ioan
Sorry - the same result:
<domain-account#> purge account folders Inbox/Test BEFORE 2w
No selected folder allowed for purge in domain <my.domain>
Could you please confirm that you have added Inbox/Test
folder into the allowed purge folders list via
<domain-adminLimits#> set purgefolders (...
<#> update domain my.domain
+OK: command successful
<domain#> config adminlimits
+OK: command successful
<domain-adminLimits#> set purgefolders (Trash,Spam,Inbox/Test)
+OK: command successful
<domain-adminLimits#> back
switching back to previous context.
+OK: command successful
<domain#> update account matthias
+OK: command successful
<domain-account#> purge account folders Inbox/Test before 2w
No selected folder allowed for purge in domain <computer.forum>
+OK: command successful
Hello @CF-Matthias ,
After setting the value for the purgefolders parameter, please type commit twice, like in the example below:
<domain#> config adminlimits
+OK: command successful
<domain-adminLimits#> set purgefolders (“Inbox/Test”)
+OK: command successful
<domain-adminLimits#> commit
committing changes and switching back to previous context.
+OK: command successful
<domain#> commit
<#> update domain aa.aa
+OK: command successful
domain#> update account m3
+OK: command successful
<domain-account#> purge account folders “Inbox/Test” before 2w
Purge account = m3@aa.aa
Purge folders = (Inbox/Test)
Purge condition = “(BEFORE 2w) (before 2w)”
Folders found = 1
Folders not found = 0
Purged emails count = 0
Purged emails size = 0 bytes
+OK: command successful
<domain-account#>
Thank you,
Paul
Thx - now it works !!!