aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-10-17 13:43:48 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-10-17 13:43:48 +0200
commit5b7263578b7c040830152f2226708212d48d68ef (patch)
treecb043a117b4497b66ee0f961c0f9dc878f23bb9d /internal
parenta3dc93cabc6303777673a12b4a69f3ed7d7480d8 (diff)
downloadfeed2imap-go-5b7263578b7c040830152f2226708212d48d68ef.tar.gz
feed2imap-go-5b7263578b7c040830152f2226708212d48d68ef.tar.bz2
feed2imap-go-5b7263578b7c040830152f2226708212d48d68ef.zip
Toplevel feed may have an empty target: Store directly in root.
Diffstat (limited to 'internal')
-rw-r--r--internal/imap/folder.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/imap/folder.go b/internal/imap/folder.go
index d7562b8..9386293 100644
--- a/internal/imap/folder.go
+++ b/internal/imap/folder.go
@@ -16,6 +16,10 @@ func (f Folder) Append(other Folder) Folder {
panic("Delimiters do not match")
}
+ if other.str == "" {
+ return f
+ }
+
var prefix string
if f.str == "" {
prefix = ""