Skip to content
Snippets Groups Projects
Commit 6643c53b authored by Christophe Ninucci's avatar Christophe Ninucci
Browse files

implement move mailbox in nushell client

parent b398218e
No related branches found
No related tags found
No related merge requests found
Pipeline #87386 passed
......@@ -176,3 +176,6 @@ cython_debug/
# client-nushell .env files
tools/client-nushell/.env*
!tools/client-nushell/.env.example.nu
# nix container image
nix/result
......@@ -303,9 +303,12 @@ export def "check contexts" [--full, --log_request] {
}
# move mailbox
export def "move mailbox" [--full, --log_request] {
# http get --full=$full -u $env.API_USER -p $env.API_PASS -H (headers) -e $"($env.API_URL)/system/move_mailbox/($domain_name)/($user_name)?($parameters | url build-query)"
echo "Not yet implemented"
export def "move mailbox" [domain_name: string, user_name: string, --full, --log_request] {
mut parameters = {}
if $log_request {
$parameters.log_request = "force"
}
http get --full=$full -H (headers) -e $"($env.API_URL)/system/move_mailbox/($domain_name)/($user_name)?($parameters | url build-query)"
}
# get mailqueue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment