#api POST /admin/add-mail-account #api POST /admin/remove-mail-account
{"ok":false,"error":"Not authorized."} {"ok":false,"error":"Please enter a mail server."} {"ok":false,"error":"Please enter an e-mail address."} {"ok":false,"error":"Please enter a password."} insert into email_accounts (user_id,email,host,password) values ($[@_login_id],'$[mail_email]','$[mail_host]','$[mail_password]') on duplicate key update host='$[mail_host]', password='$[mail_password]' {"ok":true} {"ok":false,"error":"Could not connect with those credentials: $[_imaperr]"} {"ok":false,"error":"No account specified."} delete from email_accounts where id=$[account_id] and user_id=$[@_login_id] {"ok":true}