aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/imap.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 22:09:58 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-19 22:09:58 +0200
commit76f0beb3db5ef7b3ecac6354bc29a76fef27829a (patch)
tree3e92f899f9174fc50f0e575097b861e40e9a60d2 /internal/imap/imap.go
parent9b982a82c150c65a5f72c9b548053553b2c3b0fb (diff)
downloadfeed2imap-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/imap.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/imap/imap.go b/internal/imap/imap.go
index ac24b9d..f2a9082 100644
--- a/internal/imap/imap.go
+++ b/internal/imap/imap.go
@@ -120,8 +120,7 @@ func Connect(url *url.URL) (*Client, error) {
log.Printf("Determined '%s' as toplevel, with '%s' as delimiter", client.toplevel, client.delimiter)
- // Go to toplevel folder by default, so that the rest is relative
- if err = client.selectToplevel(); err != nil {
+ if err = client.EnsureFolder(client.toplevel); err != nil {
return nil, err
}