From 0b38826a7327132bfc4b1406cc93b55fc9abb7f6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 27 Jun 2020 09:34:19 -0400 Subject: [PATCH] Simplify sender handle assignment in Model\Mail --- src/Model/Mail.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 098c20029..405635215 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -276,10 +276,7 @@ class Mail $recip_handle = $recipient['nickname'] . '@' . substr(DI::baseUrl(), strpos(DI::baseUrl(), '://') + 3); - $sender_nick = basename($me['url']); - $sender_host = substr($me['url'], strpos($me['url'], '://') + 3); - $sender_host = substr($sender_host, 0, strpos($sender_host, '/')); - $sender_handle = $sender_nick . '@' . $sender_host; + $sender_handle = $me['addr']; $handles = $recip_handle . ';' . $sender_handle;