aboutsummaryrefslogtreecommitdiffstats
path: root/handlers.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Simon Ser <[email protected]> 2019-12-09 13:45:15 +0100
committerLibravatarLibravatar Simon Ser <[email protected]> 2019-12-09 13:45:15 +0100
commit61ffc105fd8480b0af4151e3fadb0751d38bea82 (patch)
tree352011041a9c9e6a4db3b8ed8a072e5c117bc7b3 /handlers.go
parentd1d43809577f85d2feec4bc61601ca9ade378b5b (diff)
downloadalps-61ffc105fd8480b0af4151e3fadb0751d38bea82.tar.gz
alps-61ffc105fd8480b0af4151e3fadb0751d38bea82.tar.bz2
alps-61ffc105fd8480b0af4151e3fadb0751d38bea82.zip
Use imap.BodyStructure.Filename and imap.Address.Address
The former fixes encoding issues in filenames. The latter is just for brevity.
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers.go b/handlers.go
index 21873a7..4615aa4 100644
--- a/handlers.go
+++ b/handlers.go
@@ -229,7 +229,7 @@ func handleCompose(ectx echo.Context) error {
if len(replyTo) > 0 {
msg.To = make([]string, len(replyTo))
for i, to := range replyTo {
- msg.To[i] = to.MailboxName + "@" + to.HostName
+ msg.To[i] = to.Address()
}
}
msg.Subject = inReplyTo.Envelope.Subject