about summary refs log tree commit diff stats
path: root/worker/imap
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-20 19:20:20 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-20 19:28:04 -0400
commit2dc436555d8bfa6f2409173d87cd0fec2b2385cf (patch)
tree73e589fc1ff64fa5f4362a9500a739703ea6a27c /worker/imap
parentcc90cd21610e7c78bc2cd9b04840fa1266617e6f (diff)
downloadaerc-2dc436555d8bfa6f2409173d87cd0fec2b2385cf.tar.gz
Load IMAP worker for imap+insecure
Diffstat (limited to 'worker/imap')
-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 ade539a..125fba8 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 (