| 1 | package Sisimai::Eb; | ||
| 2 | 101 | ▶ | use v5.26; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 101 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 101 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 101 | our $XeBYTE = 64 * 1024 * 1024; # 64MB: The maximum size of each email file in Maildir/, UNIX mbox. | |
| 7 | |||
| 8 | # _ ______ | ||
| 9 | # ___| |__ / / _ \ ___ __ _ ___ ___ _ __ | ||
| 10 | # / _ \ '_ \ / /| |_) / _ \/ _` / __|/ _ \| '_ \ | ||
| 11 | # | __/ |_) / / | _ < __/ (_| \__ \ (_) | | | | | ||
| 12 | # \___|_.__/_/ |_| \_\___|\__,_|___/\___/|_| |_| | ||
| 13 | 101 | our $ReAUTH = "AuthFailure"; | |
| 14 | 101 | our $ReFAMA = "BadReputation"; | |
| 15 | 101 | our $ReBLOC = "Blocked"; | |
| 16 | 101 | our $ReBODY = "ContentError"; | |
| 17 | 101 | our $ReSENT = "Delivered"; | |
| 18 | 101 | our $ReSIZE = "EmailTooLarge"; | |
| 19 | 101 | our $ReTIME = "Expired"; | |
| 20 | 101 | our $ReTTLS = "FailedSTARTTLS"; | |
| 21 | 101 | our $ReFEED = "Feedback"; | |
| 22 | 101 | our $ReFILT = "Filtered"; | |
| 23 | 101 | our $ReMOVE = "HasMoved"; | |
| 24 | 101 | our $ReHOST = "HostUnknown"; | |
| 25 | 101 | our $ReFULL = "MailboxFull"; | |
| 26 | 101 | our $ReUNIX = "MailerError"; | |
| 27 | 101 | our $ReINET = "NetworkError"; | |
| 28 | 101 | our $RePASS = "NoRelaying"; | |
| 29 | 101 | our $Re00MX = "NotAccept"; | |
| 30 | 101 | our $ReNRFC = "NotCompliantRFC"; | |
| 31 | 101 | our $Re___1 = "OnHold"; | |
| 32 | 101 | our $ReWONT = "PolicyViolation"; | |
| 33 | 101 | our $ReFROM = "Rejected"; | |
| 34 | 101 | our $ReQPTR = "RequirePTR"; | |
| 35 | 101 | our $ReRATE = "RateLimited"; | |
| 36 | 101 | our $ReSAFE = "SecurityError"; | |
| 37 | 101 | our $ReSPAM = "SpamDetected"; | |
| 38 | 101 | our $ReSTOP = "Suppressed"; | |
| 39 | 101 | our $ReQUIT = "Suspend"; | |
| 40 | 101 | our $ReCOMM = "SyntaxError"; | |
| 41 | 101 | our $RePROC = "SystemError"; | |
| 42 | 101 | our $ReDISK = "SystemFull"; | |
| 43 | 101 | our $Re___0 = "Undefined"; | |
| 44 | 101 | our $ReUSER = "UserUnknown"; | |
| 45 | 101 | our $ReAWAY = "Vacation"; | |
| 46 | 101 | our $ReEXEC = "VirusDetected"; | |
| 47 | |||
| 48 | # _ ______ _ | ||
| 49 | # ___| |__ / / ___|___ _ __ ___ _ __ ___ __ _ _ __ __| | | ||
| 50 | # / _ \ '_ \ / / | / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` | | ||
| 51 | # | __/ |_) / /| |__| (_) | | | | | | | | | | | (_| | | | | (_| | | ||
| 52 | # \___|_.__/_/ \____\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_| | ||
| 53 | 101 | our $CeHELO = "HELO"; | |
| 54 | 101 | our $CeEHLO = "EHLO"; | |
| 55 | 101 | our $CeMAIL = "MAIL"; | |
| 56 | 101 | our $CeRCPT = "RCPT"; | |
| 57 | 101 | our $CeDATA = "DATA"; | |
| 58 | 101 | our $CeQUIT = "QUIT"; | |
| 59 | 101 | our $CeRSET = "RSET"; | |
| 60 | 101 | our $CeNOOP = "NOOP"; | |
| 61 | 101 | our $CeVRFY = "VRFY"; | |
| 62 | 101 | our $CeETRN = "ETRN"; | |
| 63 | 101 | our $CeEXPN = "EXPN"; | |
| 64 | 101 | our $CeHELP = "HELP"; | |
| 65 | 101 | our $CeAUTH = "AUTH"; | |
| 66 | 101 | our $CeTTLS = "STARTTLS"; | |
| 67 | 101 | our $CeXFWD = "XFORWARD"; | |
| 68 | 101 | our $CeCONN = "CONN"; # CONN is a pseudo SMTP command used only in Sisimai | |
| 69 | |||
| 70 | # _ ___ _ _ | ||
| 71 | # ___| |__ / / \ ___| |_(_) ___ _ __ | ||
| 72 | # / _ \ '_ \ / / _ \ / __| __| |/ _ \| '_ \ | ||
| 73 | # | __/ |_) / / ___ \ (__| |_| | (_) | | | | | ||
| 74 | # \___|_.__/_/_/ \_\___|\__|_|\___/|_| |_| | ||
| 75 | # | ||
| 76 | # https://datatracker.ietf.org/doc/html/rfc3464#page-16 | ||
| 77 | # 2.3.3 Action field | ||
| 78 | # The Action field indicates the action performed by the Reporting-MTA as a result of its attempt | ||
| 79 | # to deliver the message to this recipient address. This field MUST be present for each recipient | ||
| 80 | # named in the DSN. | ||
| 81 | # | ||
| 82 | # The syntax for the action-field is: | ||
| 83 | # action-field = "Action" ":" action-value | ||
| 84 | # action-value = "failed" / "delayed" / "delivered" / "relayed" / "expanded" | ||
| 85 | # | ||
| 86 | # The action-value may be spelled in any combination of upper and lower case characters. | ||
| 87 | # | ||
| 88 | # "failed" indicates that the message could not be delivered to the recipient. | ||
| 89 | # The Reporting MTA has abandoned any attempts to deliver the message to this | ||
| 90 | # recipient. No further notifications should be expected. | ||
| 91 | # | ||
| 92 | # "delayed" indicates that the Reporting MTA has so far been unable to deliver or relay the | ||
| 93 | # message, but it will continue to attempt to do so. Additional notification | ||
| 94 | # messages may be issued as the message is further delayed or successfully | ||
| 95 | # delivered, or if delivery attempts are later abandoned. | ||
| 96 | # | ||
| 97 | # "delivered" indicates that the message was successfully delivered to the recipient address | ||
| 98 | # specified by the sender, which includes "delivery" to a mailing list exploder. | ||
| 99 | # It does not indicate that the message has been read. This is a terminal state | ||
| 100 | # and no further DSN for this recipient should be expected. | ||
| 101 | # | ||
| 102 | # "relayed" indicates that the message has been relayed or gatewayed into an environment | ||
| 103 | # that does not accept responsibility for generating DSNs upon successful delivery. | ||
| 104 | # This action-value SHOULD NOT be used unless the sender has requested notification | ||
| 105 | # of successful delivery for this recipient. | ||
| 106 | # | ||
| 107 | # "expanded" indicates that the message has been successfully delivered to the recipient | ||
| 108 | # address as specified by the sender, and forwarded by the Reporting-MTA beyond | ||
| 109 | # that destination to multiple additional recipient addresses. An action-value of | ||
| 110 | # "expanded" differs from "delivered" in that "expanded" is not a terminal state. | ||
| 111 | # Further "failed" and/or "delayed" notifications may be provided. | ||
| 112 | 101 | our $AeFAIL = "failed"; | |
| 113 | 101 | our $AeSTAY = "delayed"; | |
| 114 | 101 | our $AeSENT = "delivered"; | |
| 115 | 101 | our $AePASS = "relayed"; | |
| 116 | 101 | our $AeEXPN = "expanded"; | |
| 117 | |||
| 118 | 101 | 1; | |
| 119 | __END__ | ||