Move the mailbox@ string to a MailboxAccount constant.
[mailpopbox.git] / pop3.go
diff --git a/pop3.go b/pop3.go
index 01b753cbbcb5b157ba27c742f10e8e0cffd4adab..ba5fd36aa7879b419de42e490639fb4fb2628914 100644 (file)
--- a/pop3.go
+++ b/pop3.go
@@ -98,7 +98,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)
                }
        }