1Mail::MIMEDefang::MailM(a3i)l::MIMEDefang::Mail DocumentatMiaoinl::MIMEDefang::Mail(3)
2
3
4
6 Mail::MIMEDefang::Mail - Mail and SMTP related methods for email
7 filters
8
10 Mail::MIMEDefang::Mail are a set of methods that can be called from
11 mimedefang-filter to send email messages or to run SMTP checks.
12
14 resend_message_one_recipient
15 Method that re-sends the message as if it came from original sender
16 to a single recipient.
17
18 resend_message_specifying_mode
19 Method that re-sends the message as if it came from original sender
20 to a list of recipients.
21
22 resend_message
23 Method that re-sends the message as if it came from original sender
24 to a list of recipients.
25
26 pretty_print_mail
27 Method that makes a pretty-printed version of the e-mail body no
28 longer than size characters.
29
30 get_smtp_return_code
31 Method that reads return codes from SMTP server, returns a four-
32 element list:(retval, code, dsn, text), where code is a 3-digit
33 SMTP code. Retval is 'CONTINUE', 'TEMPFAIL' or 'REJECT'.
34
35 get_smtp_extensions
36 Method that checks SMTP server's supported extensions. It expects
37 EHLO to have been sent already (artifact of get_smtp_return_code).
38 The sub returns a four-element list:(retval, code, dsn, exts)
39
40 • retval is 'CONTINUE', 'TEMPFAIL', or 'REJECT'.
41
42 • code is a 3-digit SMTP code.
43
44 • dsn is an extended SMTP status code
45
46 • exts is a hash of EXTNAME->EXTOPTS
47
48 md_check_against_smtp_server
49 Method that verifies a recipient against another SMTP server by
50 issuing a HELO / MAIL FROM: / RCPT TO: / QUIT sequence. The method
51 returns:
52
53 • ('CONTINUE', "OK") if recipient is OK
54
55 • ('TEMPFAIL', "err") if temporary failure
56
57 • ('REJECT', "err") if recipient is not OK.
58
59
60
613.3 2023-01-18 Mail::MIMEDefang::Mail(3)