API always seems to set account to disabled

Issue #107 closed
Michael Shadle created an issue

Even trying the sandbox.

  • disabled=true
  • disabled=false
  • disabled=0
  • disabled=1

All of those change my mailbox to disabled. Only way to activate it again is to edit the account in the UI. A better field would probably be active or status where true or 1 means yes... having a negative condition gets kinda confusing (having to set disabled to false to make it active)

Either way right now, sending a PATCH of the email and disabled= any of those above all wind up making the account disabled. This should be the latest Poste as well, it's only 1-2 days old.

At first I thought it was just the sandbox, because of this: https://bitbucket.org/analogic/mailserver/issues/19/api-disabled-false-ignored-when-disabled

But that is old, and it is happening regardless

Comments (4)

  1. SH repo owner

    It seems no longer valid, i tried send something like this with POST and PATCH:

    json_encode([
        'disabled' => true
    ]);
    

    Its is working as it should be, closing...

  2. Kai Wang

    i have same problem, disable function is working, but i can't enable it, no matter disabled=true or 1 or 0 or false, the account always is disabled. need help.

  3. Log in to comment