Skip to content

Commit

Permalink
Keep backward compatibility: The value of "smtpagent" is "JSON::$AGEN…
Browse files Browse the repository at this point in the history
…TNAME" #333
  • Loading branch information
azumakuniyuki committed Nov 14, 2019
1 parent 52cbc34 commit 093863a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Sisimai/Lhost/AmazonSES.pm
Expand Up @@ -354,7 +354,7 @@ sub json {
return undef unless $recipients;

for my $e ( @$dscontents ) {
$e->{'agent'} = __PACKAGE__->smtpagent;
$e->{'agent'} = 'JSON::AmazonSES';
}

if( exists $argvs->{'mail'}->{'headers'} ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Sisimai/Lhost/SendGrid.pm
Expand Up @@ -295,7 +295,7 @@ sub json {
$v->{'status'} ||= Sisimai::SMTP::Status->find($diagnostic) || '';
$v->{'replycode'} ||= Sisimai::SMTP::Reply->find($diagnostic) || '';
$v->{'diagnosis'} = $argvs->{'reason'} || '';
$v->{'agent'} = __PACKAGE__->smtpagent;
$v->{'agent'} = 'JSON::SendGrid';

# Generate pseudo message/rfc822 part
$rfc822head = {
Expand Down

0 comments on commit 093863a

Please sign in to comment.