Deactivate "channel email account" via cli?

hi guys and thank you for your great work here, I have searched a lot but I can’t find an answer, so I wanted to try here. is it possible to deactivate an email account via CLI? I am working on a script to automate zammad updates so it can run at night via ansible and no human has to watch it, I want to stop zammad from fetching emails and update afterwards, when everything worked fine then I would like to activate the account again. can anyone help me with the CLI command? cheers Ringo

Sure…

Channel.find(<ID>).update(active: false) would deactivate a specific channel.
Keep in mind that you have to remember the active channels you’ve set to inactive so you can re-activate them.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.