diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-08 10:52:28 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-08 10:52:28 +0100 |
commit | 97b314b6e7854612a2be31b2c46ad8907456551b (patch) | |
tree | dd4fbfd2efa72d241ac2d0d91c9a9791db593874 /plugins | |
parent | f6758264b2448771d3d7a6b85937c13b57888e81 (diff) | |
download | alps-97b314b6e7854612a2be31b2c46ad8907456551b.tar.gz alps-97b314b6e7854612a2be31b2c46ad8907456551b.zip |
Add Server.Reload
This only reloads templates for now. In the future it'll also reload
Lua plugins.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/base/imap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/imap.go b/plugins/base/imap.go index 3e268db..8c2040f 100644 --- a/plugins/base/imap.go +++ b/plugins/base/imap.go @@ -239,7 +239,7 @@ func searchMessages(conn *imapclient.Client, mboxName, query string, page int) ( } total = len(nums) - from := page*messagesPerPage + from := page * messagesPerPage to := from + messagesPerPage if from >= len(nums) { return nil, total, nil |