Merge branch 'outbound'
[mailpopbox.git] / pop3.go
diff --git a/pop3.go b/pop3.go
index 56e37711ca8d2196220b651fd8026f5d0d0601b0..20f94bf6a36cfb5c6c618a242962757c89eb9230 100644 (file)
--- a/pop3.go
+++ b/pop3.go
@@ -104,7 +104,7 @@ func (server *pop3Server) Name() string {
 
 func (server *pop3Server) OpenMailbox(user, pass string) (pop3.Mailbox, error) {
        for _, s := range server.config.Servers {
-               if user == "mailbox@"+s.Domain && pass == s.MailboxPassword {
+               if user == MailboxAccount+s.Domain && pass == s.MailboxPassword {
                        return server.openMailbox(s.MaildropPath)
                }
        }