A go-imap backend that proxies all commands and responses to another IMAP server.
package main import ( "log""github.com/emersion/go-imap/server""github.com/emersion/go-imap-proxy" ) funcmain(){be:=proxy.NewTLS("mail.example.org:993", nil) // Create a new servers:=server.New(be) s.Addr=":1143"// Since we will use this server for testing only, we can allow plain text// authentication over unencrypted connectionss.AllowInsecureAuth=truelog.Println("Starting IMAP server at localhost:1143") iferr:=s.ListenAndServe(); err!=nil{log.Fatal(err) } }MIT