module Sisimai::Lhost
Sisimai::Lhost
- Base class for Sisimai::Lhost::*
Public Class Methods
DELIVERYSTATUS()
click to toggle source
Data
structure for parsed bounce messages @return [Hash] Data
structure for delivery status @private
# File lib/sisimai/lhost.rb, line 11 def DELIVERYSTATUS return { 'spec' => nil, # Protocl specification 'date' => nil, # The value of Last-Attempt-Date header 'rhost' => nil, # The value of Remote-MTA header 'lhost' => nil, # The value of Received-From-MTA header 'alias' => nil, # The value of alias entry(RHS) 'agent' => nil, # MTA module name 'action' => nil, # The value of Action header 'status' => nil, # The value of Status header 'reason' => nil, # Temporary reason of bounce 'command' => nil, # SMTP command in the message body 'replycode' => nil, # SMTP Reply code 'diagnosis' => nil, # The value of Diagnostic-Code header 'recipient' => nil, # The value of Final-Recipient header 'softbounce' => nil, # Soft bounce or not 'feedbacktype' => nil, # Feedback Type } end
INDICATORS()
click to toggle source
@abstract Flags for position variable @return [Hash] Position flag data @private
# File lib/sisimai/lhost.rb, line 34 def INDICATORS return { :'deliverystatus' => (1 << 1), :'message-rfc822' => (1 << 2), } end
description()
click to toggle source
# File lib/sisimai/lhost.rb, line 75 def description; return ''; end
index()
click to toggle source
@abstract MTA list @return [Array] MTA list with order
# File lib/sisimai/lhost.rb, line 43 def index return %w[ Activehunter Amavis AmazonSES AmazonWorkMail Aol ApacheJames Barracuda Bigfoot Biglobe Courier Domino EZweb EinsUndEins Exchange2003 Exchange2007 Exim FML Facebook GMX GSuite GoogleGroups Gmail IMailServer InterScanMSS KDDI MXLogic MailFoundry MailMarshalSMTP MailRu McAfee MessageLabs MessagingServer Notes Office365 OpenSMTPD Outlook Postfix PowerMTA ReceivingSES SendGrid Sendmail SurfControl V5sendmail Verizon X1 X2 X3 X4 X5 X6 Yahoo Yandex Zoho MFILTER Qmail ] end
make()
click to toggle source
@abstract Parse bounce messages @param [Hash] mhead Message
headers of a bounce email @param [String] mbody Message
body of a bounce email @return [Hash] Bounce data list and message/rfc822 part @return [Nil] it failed to parse or the arguments are missing
# File lib/sisimai/lhost.rb, line 74 def make; return nil; end
path()
click to toggle source
@abstract Returns Sisimai::Lhost::* module path table @return [Hash] Module path table @since v4.25.6
# File lib/sisimai/lhost.rb, line 58 def path index = Sisimai::Lhost.index table = { 'Sisimai::ARF' => 'sisimai/arf', 'Sisimai::RFC3464' => 'sisimai/rfc3464', 'Sisimai::RFC3834' => 'sisimai/rfc3834', } index.each { |e| table['Sisimai::Lhost::' << e] = 'sisimai/lhost/' << e.downcase } return table end