()
| 147 | } |
| 148 | |
| 149 | func (s *Session) cleanSession() { |
| 150 | s.releaseLimits() |
| 151 | |
| 152 | s.mailFrom = "" |
| 153 | s.opts = smtp.MailOptions{} |
| 154 | s.msgMeta = nil |
| 155 | s.delivery = nil |
| 156 | s.deliveryErr = nil |
| 157 | s.msgCtx = nil |
| 158 | s.msgTask.End() |
| 159 | } |
| 160 | |
| 161 | func (s *Session) AuthPlain(username, password string) error { |
| 162 | // Executed before authentication and session initialization. |
no test coverage detected