la5nta / wl2k-go

A Winlink framework for Go.
https://getpat.io
MIT License
50 stars 20 forks source link

cmd/wl2k: Refresh folder view (web ui) when content changes #11

Closed martinhpedersen closed 8 years ago

martinhpedersen commented 8 years ago

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.