-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement some classes in Sisimai::Rhost::* #523
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5-stable #523 +/- ##
============================================
+ Coverage 85.54% 85.60% +0.06%
============================================
Files 132 134 +2
Lines 6570 6599 +29
Branches 1937 1942 +5
============================================
+ Hits 5620 5649 +29
Misses 301 301
Partials 649 649 ☔ View full report in Codecov by Sentry. |
# https://smtpfieldmanual.com/provider/apple | ||
my $class = shift; | ||
my $argvs = shift // return undef; | ||
return $argvs->{'reason'} if $argvs->{'reason'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code above should be removed and checked at Sisimai::Rhost->get
method.
# https://www.postmastery.com/yahoo-postmaster/ | ||
my $class = shift; | ||
my $argvs = shift // return undef; | ||
return $argvs->{'reason'} if $argvs->{'reason'}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code above should be removed and checked at Sisimai::Rhost->get
method.
@@ -125,6 +125,7 @@ sub list { | |||
Rhost/NTTDOCOMO.pm | |||
Rhost/Spectrum.pm | |||
Rhost/Tencent.pm | |||
Rhost/YahooInc.pm | |||
SMTP.pm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rhost/Apple.pm
should be added
@@ -4,6 +4,7 @@ use strict; | |||
use warnings; | |||
|
|||
state $RhostClass = { | |||
'Apple' => ['.mail.icloud.com', '.apple.com', '.me.com'], | |||
'Cox' => ['cox.net'], | |||
'FrancePTT' => ['.laposte.net', '.orange.fr', '.wanadoo.fr'], | |||
'GoDaddy' => ['smtp.secureserver.net', 'mailstore1.secureserver.net'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'GoDaddy' => ['.secureserver.net'],
# @return [String] The bounce reason for Apple | ||
# @see https://support.apple.com/en-us/102322 | ||
# https://www.postmastery.com/icloud-postmastery-page/ | ||
# https://smtpfieldmanual.com/provider/apple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@since v5.0.4
Sisimai::Reason::*
intoSisimai::Rhost::*
classes for each email serviceSisimai::Rhost::YahooInc
for https://senders.yahooinc.com/smtp-error-codes/set-of-emails/maildir/bsd
:rhost-yahooinc-01.eml
rhost-yahooinc-02.eml
rhost-yaoooinc-03.eml
Sisimai::Rhost::Apple
for iCloud Mailset-of-emails/maildir/bsd
:rhost-apple-01.eml
rhost-apple-02.eml
rhost-apple-03.eml
rhost-apple-04.eml