-
Notifications
You must be signed in to change notification settings - Fork 26
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
Sisimai::Lhost::DragonFly #526
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 5-stable #526 +/- ##
============================================
+ Coverage 85.51% 85.53% +0.01%
============================================
Files 134 135 +1
Lines 6602 6650 +48
Branches 1937 1950 +13
============================================
+ Hits 5646 5688 +42
- Misses 305 307 +2
- Partials 651 655 +4 ☔ View full report in Codecov by Sentry. |
lib/Sisimai/Lhost/DragonFly.pm
Outdated
my $mbody = shift // return undef; | ||
|
||
return undef unless index($mhead->{'subject'}, 'Mail delivery failed') > -1; | ||
return undef unless index($mhead->{'from'}, 'MAILER-DAEMON <>') > -1; |
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 line above may not be needed (MAILER-DAEMON)
lib/Sisimai/Lhost/DragonFly.pm
Outdated
next if length $v->{'rhost'} > 0; | ||
|
||
my $p = [split(' ', $e, 3)]; | ||
$v->{'rhost'} ||= index($p->[0], '.') > 1 ? $p->[0] : $p->[1]; |
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.
Remove ||
lib/Sisimai/Lhost/DragonFly.pm
Outdated
# Original message follows. | ||
$v = $dscontents->[-1]; | ||
|
||
if( index($e, 'There was an error delivering your mail to <') > -1 ) { |
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.
== 0
Sisimai::Lhost::DragonFly
set-of-emails/maildir/bsd/lhost-dragonfly-*.eml