diff options
Diffstat (limited to 'session.go')
-rw-r--r-- | session.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,9 +58,9 @@ func (s *Session) Username() string { return s.username } -// Do executes an IMAP operation on this session. The IMAP client can only be -// used from inside f. -func (s *Session) Do(f func(*imapclient.Client) error) error { +// DoIMAP executes an IMAP operation on this session. The IMAP client can only +// be used from inside f. +func (s *Session) DoIMAP(f func(*imapclient.Client) error) error { s.locker.Lock() defer s.locker.Unlock() |