aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/worker.go')
-rw-r--r--worker/imap/worker.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/worker/imap/worker.go b/worker/imap/worker.go
index ade539af..125fba88 100644
--- a/worker/imap/worker.go
+++ b/worker/imap/worker.go
@@ -71,10 +71,9 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
w.config.addr = u.Host
if !strings.ContainsRune(w.config.addr, ':') {
- w.config.addr += ":" + u.Scheme
+ w.config.addr += ":" + w.config.scheme
}
- w.config.scheme = u.Scheme
w.config.user = u.User
case *types.Connect:
var (