Currently the folder view is refreshed after /api/connect. If something outside the web ui alters the mailbox content, the view should refresh.
We could use some cross-platform file system notification system like https://github.com/go-fsnotify/fsnotify, but maybe we should wait until it get's merged with go standard library?
One quick fix would be to simply reload the folder on regular intervals.
Currently the folder view is refreshed after /api/connect. If something outside the web ui alters the mailbox content, the view should refresh.
We could use some cross-platform file system notification system like https://github.com/go-fsnotify/fsnotify, but maybe we should wait until it get's merged with go standard library?
One quick fix would be to simply reload the folder on regular intervals.