aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'session.go')
-rw-r--r--session.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/session.go b/session.go
index 950b324..8ea9634 100644
--- a/session.go
+++ b/session.go
@@ -57,6 +57,7 @@ type Session struct {
pings chan struct{}
timer *time.Timer
store Store
+ notice string
imapLocker sync.Mutex
imapConn *imapclient.Client // protected by locker, can be nil
@@ -183,6 +184,16 @@ func (s *Session) PopAttachment(uuid string) *Attachment {
return a
}
+func (s *Session) PutNotice(n string) {
+ s.notice = n
+}
+
+func (s *Session) PopNotice() string {
+ n := s.notice
+ s.notice = ""
+ return n
+}
+
// Store returns a store suitable for storing persistent user data.
func (s *Session) Store() Store {
return s.store