aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-08 10:52:28 +0100
committerSimon Ser <contact@emersion.fr>2020-01-08 10:52:28 +0100
commit97b314b6e7854612a2be31b2c46ad8907456551b (patch)
treedd4fbfd2efa72d241ac2d0d91c9a9791db593874 /plugins/base
parentf6758264b2448771d3d7a6b85937c13b57888e81 (diff)
downloadalps-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/base')
-rw-r--r--plugins/base/imap.go2
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