1Mail::MIMEDefang::UtilMsa(i3l)::MIMEDefang::Utils DocumentMaatiilo:n:MIMEDefang::Utils(3)
2
3
4
6 Mail::MIMEDefang::Utils - Support methods used internally or by email
7 filters
8
10 Mail::MIMEDefang::Utils are a set of methods that can be called from
11 mimedefang-filter or by other methods.
12
14 time_str
15 Method that returns a string representing the current time.
16
17 hour_str
18 Method that returns a string representing the current hour.
19
20 synthesize_received_header
21 Method that synthesizes a valid Received: header to reflect re-
22 mailing. Needed by Apache SpamAssassin to correctly parse email
23 messages.
24
25 copy_or_link
26 Method that copies a file if it fails to create an hard link to the
27 original file.
28
29 read_results
30 Method that extracts an array of command, key, values from RESULTS
31 file, needed for regression tests.
32
33 re_match
34 Method that returns 1 if either Content-Disposition.filename or
35 Content-Type.name matches the regexp; 0 otherwise.
36
37 re_match_ext
38 Method that returns 1 if the EXTENSION part of either
39 Content-Disposition.filename or Content-Type.name matches regexp; 0
40 otherwise.
41
42 re_match_in_rar_directory
43 Method that returns 1 if the EXTENSION part of any file in the rar
44 archive matches regexp.
45
46 re_match_in_7zip_directory
47 Method that returns 1 if the EXTENSION part of any file in the 7zip
48 archive matches regexp.
49
50 re_match_in_zip_directory
51 Method that returns 1 if the EXTENSION part of any file in the zip
52 archive matches regexp.
53
54 md_copy_orig_msg_to_work_dir_as_mbox_file
55 Method that copies original INPUTMSG file into work directory for
56 virus-scanning as a valid mbox file.
57
58 gen_mx_id
59 Method that generates a random indentifier used by MIMEDefang to
60 create temporary files.
61
62
63
643.4.1 2023-07-20 Mail::MIMEDefang::Utils(3)