aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/imap.go
diff options
context:
space:
mode:
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
}