diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-16 13:01:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-16 13:01:33 +0100 |
commit | d01c85616a5de48896910de75c6a4533c6e71015 (patch) | |
tree | a812f14b5f5a01c23d64b7a1c78d74dcba4ee590 /plugins/base | |
parent | e93346ffa90f6c09a9a57b48c6607925dc7ff46e (diff) | |
download | alps-d01c85616a5de48896910de75c6a4533c6e71015.tar.gz alps-d01c85616a5de48896910de75c6a4533c6e71015.zip |
Rename Session.Do to Session.DoIMAP
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/handlers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/handlers.go b/plugins/base/handlers.go index 3160026..c96dabf 100644 --- a/plugins/base/handlers.go +++ b/plugins/base/handlers.go @@ -43,7 +43,7 @@ func handleGetMailbox(ectx echo.Context) error { var mailboxes []*imap.MailboxInfo var msgs []imapMessage var mbox *imap.MailboxStatus - err = ctx.Session.Do(func(c *imapclient.Client) error { + err = ctx.Session.DoIMAP(func(c *imapclient.Client) error { var err error if mailboxes, err = listMailboxes(c); err != nil { return err @@ -128,7 +128,7 @@ func handleGetPart(ctx *koushin.Context, raw bool) error { var msg *imapMessage var part *message.Entity var mbox *imap.MailboxStatus - err = ctx.Session.Do(func(c *imapclient.Client) error { + err = ctx.Session.DoIMAP(func(c *imapclient.Client) error { var err error msg, part, err = getMessagePart(c, mboxName, uid, partPath) mbox = c.Mailbox() @@ -208,7 +208,7 @@ func handleCompose(ectx echo.Context) error { var inReplyTo *imapMessage var part *message.Entity - err = ctx.Session.Do(func(c *imapclient.Client) error { + err = ctx.Session.DoIMAP(func(c *imapclient.Client) error { var err error inReplyTo, part, err = getMessagePart(c, mboxName, uid, partPath) return err |