diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 22:09:58 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 22:09:58 +0200 |
commit | 76f0beb3db5ef7b3ecac6354bc29a76fef27829a (patch) | |
tree | 3e92f899f9174fc50f0e575097b861e40e9a60d2 /internal/imap/client.go | |
parent | 9b982a82c150c65a5f72c9b548053553b2c3b0fb (diff) | |
download | feed2imap-go-76f0beb3db5ef7b3ecac6354bc29a76fef27829a.tar.gz feed2imap-go-76f0beb3db5ef7b3ecac6354bc29a76fef27829a.tar.bz2 feed2imap-go-76f0beb3db5ef7b3ecac6354bc29a76fef27829a.zip |
SELECT is not necessary for most operations -- skip it
Diffstat (limited to '')
-rw-r--r-- | internal/imap/client.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/imap/client.go b/internal/imap/client.go index 7440ed7..7569fb8 100644 --- a/internal/imap/client.go +++ b/internal/imap/client.go @@ -84,16 +84,6 @@ func (client *Client) list(folder string) (*imap.MailboxInfo, int, error) { return mbox, found, nil } -func (client *Client) selectToplevel() (err error) { - err = client.EnsureFolder(client.toplevel) - - if err == nil { - _, err = client.c.Select(client.toplevel, false) - } - - return -} - func (client *Client) fetchDelimiter() error { mbox, _, err := client.list("") if err != nil { |