diff options
author | Robin Jarry <robin@jarry.cc> | 2023-06-07 00:57:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-07 00:57:40 +0200 |
commit | c0f4b2632045b53f08f1c9f6e1b0e56713ec7ba4 (patch) | |
tree | 3809035df3baff5e2ff4858895c6158491ad2ff1 /worker/jmap/mboxstate.go | |
parent | 9e27c777d4c818dd4a9f265d174686ea988f9955 (diff) | |
download | aerc-jmap.tar.gz aerc-jmap.zip |
wipjmap
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/jmap/mboxstate.go')
-rw-r--r-- | worker/jmap/mboxstate.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/jmap/mboxstate.go b/worker/jmap/mboxstate.go index 0ee8bde3..975d18ed 100644 --- a/worker/jmap/mboxstate.go +++ b/worker/jmap/mboxstate.go @@ -17,6 +17,9 @@ type MailboxState struct { } func (s *MailboxState) FullPath(all map[jmap.ID]*MailboxState) string { + if s.mbox == nil { + return s.dir + } if s.mbox.ParentID == "" { return s.mbox.Name } |