From d41066017ba48055952d98817d2f7d5db3db944f Mon Sep 17 00:00:00 2001 From: alexopenline Date: Fri, 25 Apr 2025 16:22:18 +0300 Subject: [PATCH] fix mailbox email address --- api/rest/handlers/mailboxes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/rest/handlers/mailboxes.go b/api/rest/handlers/mailboxes.go index 96583d5..84bebdf 100644 --- a/api/rest/handlers/mailboxes.go +++ b/api/rest/handlers/mailboxes.go @@ -283,7 +283,7 @@ func (h *MailboxHandler) GetMailboxByEmail() gin.HandlerFunc { username := parts[0] domain := parts[1] - mailbox, err := h.services.MailboxService.GetMailboxByEmailAddress(ctx, domain+"@"+username) + mailbox, err := h.services.MailboxService.GetMailboxByEmailAddress(ctx, username+"@"+domain) if err != nil { spans.TraceError(errors.Wrap(err, "Error retrieving mailbox")) c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})