aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/imap.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/imap/imap.go')
-rw-r--r--internal/imap/imap.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/imap/imap.go b/internal/imap/imap.go
index a6995af..4a18a94 100644
--- a/internal/imap/imap.go
+++ b/internal/imap/imap.go
@@ -39,8 +39,10 @@ func Connect(url config.Url) (*Client, error) {
log.Printf("Determined '%s' as toplevel, with '%s' as delimiter", client.toplevel, client.delimiter)
- if err = conn.ensureFolder(client.toplevel); err != nil {
- return nil, err
+ if toplevel != "" {
+ if err = conn.ensureFolder(client.toplevel); err != nil {
+ return nil, err
+ }
}
// the other connections