Skip to content

Commit 2d638ae

Browse files
committed
Update email calls as API endpoint has changed
1 parent d620234 commit 2d638ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

email.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (c *UserContext) DeleteEmailAccount(domain string, name string) error {
5050
body.Set("domain", domain)
5151
body.Set("user", name)
5252

53-
if _, err := c.makeRequestOld(http.MethodPost, "API_POP?action=delete", body, &response); err != nil {
53+
if _, err := c.makeRequestOld(http.MethodPost, "API_EMAIL_POP?action=delete", body, &response); err != nil {
5454
return err
5555
}
5656

@@ -145,7 +145,7 @@ func (c *UserContext) UpdateEmailAccount(emailAccount EmailAccount) error {
145145
body.Set("quota", cast.ToString(emailAccount.DiskQuota))
146146
body.Set("limit", cast.ToString(emailAccount.SendQuota))
147147

148-
if _, err := c.makeRequestOld(http.MethodPost, "API_POP?action=modify", body, &response); err != nil {
148+
if _, err := c.makeRequestOld(http.MethodPost, "API_EMAIL_POP?action=modify", body, &response); err != nil {
149149
return err
150150
}
151151

0 commit comments

Comments
 (0)