Skip to content
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

Merged
merged 13 commits into from
Jun 2, 2024

Conversation

azumakuniyuki
Copy link
Member

@azumakuniyuki azumakuniyuki commented May 29, 2024

  • Consolidate error messages scattered under Sisimai::Reason::* into Sisimai::Rhost::* classes for each email service
  • Sisimai::Rhost::YahooInc for https://senders.yahooinc.com/smtp-error-codes/
    • The following sample emails in set-of-emails/maildir/bsd:
      • rhost-yahooinc-01.eml
      • rhost-yahooinc-02.eml
      • rhost-yaoooinc-03.eml
  • Sisimai::Rhost::Apple for iCloud Mail
    • The following sample emails in set-of-emails/maildir/bsd:
      • rhost-apple-01.eml
      • rhost-apple-02.eml
      • rhost-apple-03.eml
      • rhost-apple-04.eml

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.60%. Comparing base (ec9885c) to head (d251407).

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.
📢 Have feedback on the report? Share it here.

# https://smtpfieldmanual.com/provider/apple
my $class = shift;
my $argvs = shift // return undef;
return $argvs->{'reason'} if $argvs->{'reason'};
Copy link
Member Author

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'};
Copy link
Member Author

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
Copy link
Member Author

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'],
Copy link
Member Author

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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@since v5.0.4

@azumakuniyuki azumakuniyuki merged commit c7463af into 5-stable Jun 2, 2024
5 checks passed
azumakuniyuki added a commit that referenced this pull request Jun 2, 2024
azumakuniyuki added a commit that referenced this pull request Jun 28, 2024
azumakuniyuki added a commit that referenced this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant