diff options
author | Moritz Poldrack <git@moritz.sh> | 2023-05-09 17:19:42 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-05-16 13:56:58 +0200 |
commit | 2040fc1885ca4b4bea07d91e9fc6a0aaebfe7133 (patch) | |
tree | 0df09ba088414a5d74081e6a61c68afc2141c5a8 /widgets/dirlist.go | |
parent | 0eaf05d3fa6295e7df06793a967d3389d2a0f7d8 (diff) | |
download | aerc-2040fc1885ca4b4bea07d91e9fc6a0aaebfe7133.tar.gz |
imap: use delimiter from server
To accommodate servers that use a delimiter other than "/" ("." being a
common alternative), the delimiter is fetched from the server when
connecting.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r-- | widgets/dirlist.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index da2fa69a..6a10c99a 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "math" - "os" "regexp" "sort" "time" @@ -79,7 +78,7 @@ func NewDirectoryList(acctConf *config.AccountConfig, dirlist.spinner.Start() if uiConf.DirListTree { - return NewDirectoryTree(dirlist, string(os.PathSeparator)) + return NewDirectoryTree(dirlist) } return dirlist |