| 1 | package Sisimai::Lhost; | ||
| 2 | 91 | ▶ | use v5.26; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 91 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 91 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 91 | ▶ | use Sisimai::RFC5322; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 91 | ▶ | use constant INDICATORS => { 'deliverystatus' => (1 << 1), 'message-rfc822' => (1 << 2) }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 91 | ▶ | use constant BannerDTAG => [ |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | # smail-3.2.0.108/src/ | ||
| 10 | # notify.c:61|static char *log_banner = "\ | ||
| 11 | # notify.c:62||------------------------- Message log follows: -------------------------|\n"; | ||
| 12 | # notify.c:63|static char *addr_error_banner = "\ | ||
| 13 | # notify.c:64||------------------------- Failed addresses follow: ---------------------|\n"; | ||
| 14 | # notify.c:65|static char *text_banner = "\ | ||
| 15 | # notify.c:66||------------------------- Message text follows: ------------------------|\n"; | ||
| 16 | "|------------------------- Message log follows: -------------------------|", # 0. Smail 3 | ||
| 17 | "|------------------------- Failed addresses follow: ---------------------|", # 1. Smail 3 | ||
| 18 | "|------------------------- Message text follows: ------------------------|", # 2. Smail 3 | ||
| 19 | "|------------------------- Message header follows: ----------------------|", # 3. Deutsche Telekom | ||
| 20 | # "|----------- Message text follows: (body too large, truncated) ----------|", # 4. Deutsche Telekom | ||
| 21 | 91 | ]; | |
| 22 | 5499 | ▶ | sub DELIVERYSTATUS { |
|
Subroutine
DELIVERYSTATUS: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 23 | # Data structure for decoded bounce messages | ||
| 24 | # @private | ||
| 25 | # @return [Hash] Data structure for delivery status | ||
| 26 | return { | ||
| 27 | 5499 | 'spec' => '', # Protocl specification | |
| 28 | 'date' => '', # The value of Last-Attempt-Date header | ||
| 29 | 'rhost' => '', # The value of Remote-MTA header | ||
| 30 | 'lhost' => '', # The value of Received-From-MTA header | ||
| 31 | 'alias' => '', # The value of alias entry(RHS) | ||
| 32 | 'agent' => '', # MTA name | ||
| 33 | 'action' => '', # The value of Action header | ||
| 34 | 'status' => '', # The value of Status header | ||
| 35 | 'reason' => '', # Temporary reason of bounce | ||
| 36 | 'command' => '', # SMTP command in the message body | ||
| 37 | 'replycode', => '', # SMTP Reply Code | ||
| 38 | 'diagnosis' => '', # The value of Diagnostic-Code header | ||
| 39 | 'recipient' => '', # The value of Final-Recipient header | ||
| 40 | 'feedbacktype' => '', # Feedback Type | ||
| 41 | }; | ||
| 42 | } | ||
| 43 | 1 | ▶ | sub description { return '' } |
|
Subroutine
description: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 44 | 170 | ▶ | sub index { |
|
Subroutine
index: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 45 | # Alphabetical sorted MTA module list | ||
| 46 | # @return [Array] MTA list with order | ||
| 47 | 170 | return [qw| | |
| 48 | Activehunter AmazonSES ApacheJames Biglobe Courier Domino DeutscheTelekom DragonFly EZweb | ||
| 49 | EinsUndEins Exchange2003 Exchange2007 Exim FML GMX GoogleGroups GoogleWorkspace Gmail | ||
| 50 | IMailServer KDDI MailFoundry Mimecast MailMarshal MessagingServer Notes OpenSMTPD Postfix | ||
| 51 | Sendmail TrendMicro V5sendmail Verizon X1 X2 X3 X6 Zoho mFILTER qmail | ||
| 52 | |]; | ||
| 53 | } | ||
| 54 | |||
| 55 | 89 | ▶ | sub path { |
|
Subroutine
path: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 56 | # Returns Sisimai::Lhost::* module path table | ||
| 57 | # @return [Hash] Module path table | ||
| 58 | # @since v4.25.6 | ||
| 59 | 89 | my $class = shift; | |
| 60 | 89 | my $index = __PACKAGE__->index; | |
| 61 | 89 | my $table = { | |
| 62 | 'Sisimai::ARF' => 'Sisimai/ARF.pm', | ||
| 63 | 'Sisimai::RFC3464' => 'Sisimai/RFC3464.pm', | ||
| 64 | 'Sisimai::RFC3834' => 'Sisimai/RFC3834.pm', | ||
| 65 | }; | ||
| 66 | 89 | $table->{ __PACKAGE__.'::'.$_ } = 'Sisimai/Lhost/'.$_.'.pm' for @$index; | |
| 67 | 89 | return $table; | |
| 68 | } | ||
| 69 | |||
| 70 | 1 | ▶ | sub inquire { |
|
Subroutine
inquire: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 71 | # Method of a parent class to decode a bounce message of each MTA | ||
| 72 | # @param [Hash] mhead Message headers of a bounce email | ||
| 73 | # @param [String] mbody Message body of a bounce email | ||
| 74 | # @return [Hash] Bounce data list and message/rfc822 part | ||
| 75 | # @return [undef] failed to decode or the arguments are missing | ||
| 76 | 1 | return undef; | |
| 77 | } | ||
| 78 | |||
| 79 | 91 | 1; | |
| 80 | __END__ | ||