kbaum-mail 2.1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. data/CHANGELOG.rdoc +289 -0
  2. data/README.rdoc +575 -0
  3. data/Rakefile +72 -0
  4. data/TODO.rdoc +19 -0
  5. data/lib/mail.rb +113 -0
  6. data/lib/mail/attachments_list.rb +76 -0
  7. data/lib/mail/body.rb +243 -0
  8. data/lib/mail/configuration.rb +69 -0
  9. data/lib/mail/core_extensions/nil.rb +11 -0
  10. data/lib/mail/core_extensions/string.rb +19 -0
  11. data/lib/mail/elements/address.rb +306 -0
  12. data/lib/mail/elements/address_list.rb +74 -0
  13. data/lib/mail/elements/content_disposition_element.rb +30 -0
  14. data/lib/mail/elements/content_location_element.rb +25 -0
  15. data/lib/mail/elements/content_transfer_encoding_element.rb +21 -0
  16. data/lib/mail/elements/content_type_element.rb +35 -0
  17. data/lib/mail/elements/date_time_element.rb +26 -0
  18. data/lib/mail/elements/envelope_from_element.rb +34 -0
  19. data/lib/mail/elements/message_ids_element.rb +29 -0
  20. data/lib/mail/elements/mime_version_element.rb +26 -0
  21. data/lib/mail/elements/phrase_list.rb +21 -0
  22. data/lib/mail/elements/received_element.rb +30 -0
  23. data/lib/mail/encodings/base64.rb +18 -0
  24. data/lib/mail/encodings/encodings.rb +201 -0
  25. data/lib/mail/encodings/quoted_printable.rb +26 -0
  26. data/lib/mail/envelope.rb +35 -0
  27. data/lib/mail/field.rb +219 -0
  28. data/lib/mail/field_list.rb +33 -0
  29. data/lib/mail/fields/bcc_field.rb +53 -0
  30. data/lib/mail/fields/cc_field.rb +52 -0
  31. data/lib/mail/fields/comments_field.rb +41 -0
  32. data/lib/mail/fields/common/address_container.rb +16 -0
  33. data/lib/mail/fields/common/common_address.rb +128 -0
  34. data/lib/mail/fields/common/common_date.rb +51 -0
  35. data/lib/mail/fields/common/common_field.rb +64 -0
  36. data/lib/mail/fields/common/common_message_id.rb +57 -0
  37. data/lib/mail/fields/common/parameter_hash.rb +39 -0
  38. data/lib/mail/fields/content_description_field.rb +19 -0
  39. data/lib/mail/fields/content_disposition_field.rb +60 -0
  40. data/lib/mail/fields/content_id_field.rb +63 -0
  41. data/lib/mail/fields/content_location_field.rb +42 -0
  42. data/lib/mail/fields/content_transfer_encoding_field.rb +45 -0
  43. data/lib/mail/fields/content_type_field.rb +175 -0
  44. data/lib/mail/fields/date_field.rb +53 -0
  45. data/lib/mail/fields/from_field.rb +53 -0
  46. data/lib/mail/fields/in_reply_to_field.rb +52 -0
  47. data/lib/mail/fields/keywords_field.rb +43 -0
  48. data/lib/mail/fields/message_id_field.rb +80 -0
  49. data/lib/mail/fields/mime_version_field.rb +54 -0
  50. data/lib/mail/fields/optional_field.rb +11 -0
  51. data/lib/mail/fields/received_field.rb +62 -0
  52. data/lib/mail/fields/references_field.rb +53 -0
  53. data/lib/mail/fields/reply_to_field.rb +53 -0
  54. data/lib/mail/fields/resent_bcc_field.rb +53 -0
  55. data/lib/mail/fields/resent_cc_field.rb +53 -0
  56. data/lib/mail/fields/resent_date_field.rb +33 -0
  57. data/lib/mail/fields/resent_from_field.rb +53 -0
  58. data/lib/mail/fields/resent_message_id_field.rb +32 -0
  59. data/lib/mail/fields/resent_sender_field.rb +60 -0
  60. data/lib/mail/fields/resent_to_field.rb +53 -0
  61. data/lib/mail/fields/return_path_field.rb +62 -0
  62. data/lib/mail/fields/sender_field.rb +65 -0
  63. data/lib/mail/fields/structured_field.rb +36 -0
  64. data/lib/mail/fields/subject_field.rb +15 -0
  65. data/lib/mail/fields/to_field.rb +53 -0
  66. data/lib/mail/fields/unstructured_field.rb +117 -0
  67. data/lib/mail/header.rb +235 -0
  68. data/lib/mail/mail.rb +194 -0
  69. data/lib/mail/message.rb +1780 -0
  70. data/lib/mail/network/delivery_methods/file_delivery.rb +40 -0
  71. data/lib/mail/network/delivery_methods/sendmail.rb +62 -0
  72. data/lib/mail/network/delivery_methods/smtp.rb +110 -0
  73. data/lib/mail/network/delivery_methods/test_mailer.rb +40 -0
  74. data/lib/mail/network/retriever_methods/imap.rb +31 -0
  75. data/lib/mail/network/retriever_methods/pop3.rb +149 -0
  76. data/lib/mail/parsers/address_lists.rb +61 -0
  77. data/lib/mail/parsers/address_lists.treetop +19 -0
  78. data/lib/mail/parsers/content_disposition.rb +369 -0
  79. data/lib/mail/parsers/content_disposition.treetop +46 -0
  80. data/lib/mail/parsers/content_location.rb +133 -0
  81. data/lib/mail/parsers/content_location.treetop +20 -0
  82. data/lib/mail/parsers/content_transfer_encoding.rb +179 -0
  83. data/lib/mail/parsers/content_transfer_encoding.treetop +25 -0
  84. data/lib/mail/parsers/content_type.rb +512 -0
  85. data/lib/mail/parsers/content_type.treetop +58 -0
  86. data/lib/mail/parsers/date_time.rb +111 -0
  87. data/lib/mail/parsers/date_time.treetop +11 -0
  88. data/lib/mail/parsers/envelope_from.rb +188 -0
  89. data/lib/mail/parsers/envelope_from.treetop +32 -0
  90. data/lib/mail/parsers/message_ids.rb +42 -0
  91. data/lib/mail/parsers/message_ids.treetop +15 -0
  92. data/lib/mail/parsers/mime_version.rb +141 -0
  93. data/lib/mail/parsers/mime_version.treetop +19 -0
  94. data/lib/mail/parsers/phrase_lists.rb +42 -0
  95. data/lib/mail/parsers/phrase_lists.treetop +15 -0
  96. data/lib/mail/parsers/received.rb +68 -0
  97. data/lib/mail/parsers/received.treetop +11 -0
  98. data/lib/mail/parsers/rfc2045.rb +406 -0
  99. data/lib/mail/parsers/rfc2045.treetop +35 -0
  100. data/lib/mail/parsers/rfc2822.rb +5081 -0
  101. data/lib/mail/parsers/rfc2822.treetop +410 -0
  102. data/lib/mail/parsers/rfc2822_obsolete.rb +3607 -0
  103. data/lib/mail/parsers/rfc2822_obsolete.treetop +241 -0
  104. data/lib/mail/part.rb +82 -0
  105. data/lib/mail/parts_list.rb +34 -0
  106. data/lib/mail/patterns.rb +43 -0
  107. data/lib/mail/utilities.rb +163 -0
  108. data/lib/mail/vendor/treetop.rb +4 -0
  109. data/lib/mail/version.rb +10 -0
  110. data/lib/mail/version_specific/ruby_1_8.rb +84 -0
  111. data/lib/mail/version_specific/ruby_1_9.rb +77 -0
  112. data/lib/tasks/corpus.rake +125 -0
  113. data/lib/tasks/treetop.rake +10 -0
  114. metadata +188 -0
@@ -0,0 +1,40 @@
1
+ module Mail
2
+
3
+ # FileDelivery class delivers emails into multiple files based on the destination
4
+ # address. Each file is appended to if it already exists.
5
+ #
6
+ # So if you have an email going to fred@test, bob@test, joe@anothertest, and you
7
+ # set your location path to ~/tmp/mails then FileDelivery will create ~/tmp/mails
8
+ # if it does not exist, and put one copy of the email in three files, called
9
+ # "fred@test", "bob@test" and "joe@anothertest"
10
+ #
11
+ # Make sure the path you specify with :location is writable by the Ruby process
12
+ # running Mail.
13
+ class FileDelivery
14
+
15
+ if RUBY_VERSION >= '1.9.1'
16
+ require 'fileutils'
17
+ else
18
+ require 'ftools'
19
+ end
20
+
21
+ def initialize(values)
22
+ self.settings = { :location => './mails' }.merge!(values)
23
+ end
24
+
25
+ attr_accessor :settings
26
+
27
+ def deliver!(mail)
28
+ if ::File.respond_to?(:makedirs)
29
+ ::File.makedirs settings[:location]
30
+ else
31
+ ::FileUtils.mkdir_p settings[:location]
32
+ end
33
+
34
+ mail.destinations.uniq.each do |to|
35
+ ::File.open(::File.join(settings[:location], to), 'a') { |f| "#{f.write(mail.encoded)}\r\n\r\n" }
36
+ end
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,62 @@
1
+ module Mail
2
+ # A delivery method implementation which sends via sendmail.
3
+ #
4
+ # To use this, first find out where the sendmail binary is on your computer,
5
+ # if you are on a mac or unix box, it is usually in /usr/sbin/sendmail, this will
6
+ # be your sendmail location.
7
+ #
8
+ # Mail.defaults do
9
+ # delivery_method :sendmail
10
+ # end
11
+ #
12
+ # Or if your sendmail binary is not at '/usr/sbin/sendmail'
13
+ #
14
+ # Mail.defaults do
15
+ # delivery_method :sendmail, :location => '/absolute/path/to/your/sendmail'
16
+ # end
17
+ #
18
+ # Then just deliver the email as normal:
19
+ #
20
+ # Mail.deliver do
21
+ # to 'mikel@test.lindsaar.net'
22
+ # from 'ada@test.lindsaar.net'
23
+ # subject 'testing sendmail'
24
+ # body 'testing sendmail'
25
+ # end
26
+ #
27
+ # Or by calling deliver on a Mail message
28
+ #
29
+ # mail = Mail.new do
30
+ # to 'mikel@test.lindsaar.net'
31
+ # from 'ada@test.lindsaar.net'
32
+ # subject 'testing sendmail'
33
+ # body 'testing sendmail'
34
+ # end
35
+ #
36
+ # mail.deliver!
37
+ class Sendmail
38
+
39
+ def initialize(values)
40
+ self.settings = { :location => '/usr/sbin/sendmail',
41
+ :arguments => '-i -t' }.merge(values)
42
+ end
43
+
44
+ attr_accessor :settings
45
+
46
+ def deliver!(mail)
47
+ envelope_from = mail.return_path || mail.sender || mail.from_addrs.first
48
+ return_path = "-f \"#{envelope_from}\"" if envelope_from
49
+
50
+ arguments = [settings[:arguments], return_path].compact.join(" ")
51
+
52
+ Sendmail.call(settings[:location], arguments, mail.destinations.join(" "), mail)
53
+ end
54
+
55
+ def Sendmail.call(path, arguments, destinations, mail)
56
+ IO.popen("#{path} #{arguments} #{destinations}", "w+") do |io|
57
+ io.puts mail.encoded.to_lf
58
+ io.flush
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,110 @@
1
+ module Mail
2
+ # == Sending Email with SMTP
3
+ #
4
+ # Mail allows you to send emails using SMTP. This is done by wrapping Net::SMTP in
5
+ # an easy to use manner.
6
+ #
7
+ # === Sending via SMTP server on Localhost
8
+ #
9
+ # Sending locally (to a postfix or sendmail server running on localhost) requires
10
+ # no special setup. Just to Mail.deliver &block or message.deliver! and it will
11
+ # be sent in this method.
12
+ #
13
+ # === Sending via MobileMe
14
+ #
15
+ # Mail.defaults do
16
+ # delivery_method :smtp, { :address => "smtp.me.com",
17
+ # :port => 587,
18
+ # :domain => 'your.host.name',
19
+ # :user_name => '<username>',
20
+ # :password => '<password>',
21
+ # :authentication => 'plain',
22
+ # :enable_starttls_auto => true }
23
+ # end
24
+ #
25
+ # === Sending via GMail
26
+ #
27
+ # Mail.defaults do
28
+ # delivery_method :smtp, { :address => "smtp.gmail.com",
29
+ # :port => 587,
30
+ # :domain => 'baci.lindsaar.net',
31
+ # :user_name => '<username>',
32
+ # :password => '<password>',
33
+ # :authentication => 'plain',
34
+ # :enable_starttls_auto => true }
35
+ # end
36
+ #
37
+ # === Others
38
+ #
39
+ # Feel free to send me other examples that were tricky
40
+ #
41
+ # === Delivering the email
42
+ #
43
+ # Once you have the settings right, sending the email is done by:
44
+ #
45
+ # Mail.deliver do
46
+ # to 'mikel@test.lindsaar.net'
47
+ # from 'ada@test.lindsaar.net'
48
+ # subject 'testing sendmail'
49
+ # body 'testing sendmail'
50
+ # end
51
+ #
52
+ # Or by calling deliver on a Mail message
53
+ #
54
+ # mail = Mail.new do
55
+ # to 'mikel@test.lindsaar.net'
56
+ # from 'ada@test.lindsaar.net'
57
+ # subject 'testing sendmail'
58
+ # body 'testing sendmail'
59
+ # end
60
+ #
61
+ # mail.deliver!
62
+ class SMTP
63
+
64
+ def initialize(values)
65
+ self.settings = { :address => "localhost",
66
+ :port => 25,
67
+ :domain => 'localhost.localdomain',
68
+ :user_name => nil,
69
+ :password => nil,
70
+ :authentication => nil,
71
+ :enable_starttls_auto => true }.merge!(values)
72
+ end
73
+
74
+ attr_accessor :settings
75
+
76
+ # Send the message via SMTP.
77
+ # The from and to attributes are optional. If not set, they are retrieve from the Message.
78
+ def deliver!(mail)
79
+
80
+ # Set the envelope from to be either the return-path, the sender or the first from address
81
+ envelope_from = mail.return_path || mail.sender || mail.from_addrs.first
82
+ if envelope_from.blank?
83
+ raise ArgumentError.new('A sender (Return-Path, Sender or From) required to send a message')
84
+ end
85
+
86
+ destinations ||= mail.destinations if mail.respond_to?(:destinations) && mail.destinations
87
+ if destinations.blank?
88
+ raise ArgumentError.new('At least one recipient (To, Cc or Bcc) is required to send a message')
89
+ end
90
+
91
+ message ||= mail.encoded if mail.respond_to?(:encoded)
92
+ if message.blank?
93
+ raise ArgumentError.new('A encoded content is required to send a message')
94
+ end
95
+
96
+ smtp = Net::SMTP.new(settings[:address], settings[:port])
97
+ if settings[:enable_starttls_auto]
98
+ smtp.enable_starttls_auto if smtp.respond_to?(:enable_starttls_auto)
99
+ end
100
+
101
+ smtp.start(settings[:domain], settings[:user_name], settings[:password], settings[:authentication]) do |smtp|
102
+ smtp.sendmail(message, envelope_from, destinations)
103
+ end
104
+
105
+ self
106
+ end
107
+
108
+
109
+ end
110
+ end
@@ -0,0 +1,40 @@
1
+ module Mail
2
+ # The TestMailer is a bare bones mailer that does nothing. It is useful
3
+ # when you are testing.
4
+ #
5
+ # It also provides a template of the minimum methods you require to implement
6
+ # if you want to make a custom mailer for Mail
7
+ class TestMailer
8
+
9
+ # Provides a store of all the emails sent with the TestMailer so you can check them.
10
+ def TestMailer.deliveries
11
+ @@deliveries ||= []
12
+ end
13
+
14
+ # Allows you to over write the default deliveries store from an array to some
15
+ # other object. If you just want to clear the store,
16
+ # call TestMailer.deliveries.clear.
17
+ #
18
+ # If you place another object here, please make sure it responds to:
19
+ #
20
+ # * << (message)
21
+ # * clear
22
+ # * length
23
+ # * size
24
+ # * and other common Array methods
25
+ def TestMailer.deliveries=(val)
26
+ @@deliveries = val
27
+ end
28
+
29
+ def initialize(values)
30
+ @settings = {}
31
+ end
32
+
33
+ attr_accessor :settings
34
+
35
+ def deliver!(mail)
36
+ Mail::TestMailer.deliveries << mail
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,31 @@
1
+ module Mail
2
+
3
+ class IMAP
4
+
5
+ require 'net/imap'
6
+
7
+ def initialize(values)
8
+ self.settings = { :address => "localhost",
9
+ :port => 110,
10
+ :user_name => nil,
11
+ :password => nil,
12
+ :authentication => nil,
13
+ :enable_ssl => false }.merge!(values)
14
+ end
15
+
16
+ attr_accessor :settings
17
+
18
+ def first(options = {}, &block)
19
+ imap = Net::IMAP.new(settings[:address], settings[:port], settings[:enable_ssl])
20
+ imap.login(settings[:user_name], settings[:password])
21
+ imap.examine('INBOX')
22
+ uids = imap.uid_search('ALL')
23
+ uids = uids[0,options[:count]] if options[:count]
24
+ uids.each do |message_id|
25
+ fetch_data = imap.uid_fetch(message_id, ['BODY.PEEK[HEADER]'])
26
+ fetch_data.each{|fd| yield Mail.new(fd.attr['BODY[HEADER]'])}
27
+ end
28
+
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,149 @@
1
+ # encoding: utf-8
2
+
3
+ module Mail
4
+ # The Pop3 retriever allows to get the last, first or all emails from a POP3 server.
5
+ # Each email retrieved (RFC2822) is given as an instance of +Message+.
6
+ #
7
+ # While being retrieved, emails can be yielded if a block is given.
8
+ #
9
+ # === Example of retrieving Emails from GMail:
10
+ #
11
+ # Mail.defaults do
12
+ # retriever_method :pop3, { :address => "pop.gmail.com",
13
+ # :port => 995,
14
+ # :user_name => '<username>',
15
+ # :password => '<password>',
16
+ # :enable_ssl => true }
17
+ # end
18
+ #
19
+ # Mail.all #=> Returns an array of all emails
20
+ # Mail.first #=> Returns the first unread email
21
+ # Mail.last #=> Returns the first unread email
22
+ #
23
+ # You can also pass options into Mail.find to locate an email in your pop mailbox
24
+ # with the following options:
25
+ #
26
+ # what: last or first emails. The default is :first.
27
+ # order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
28
+ # count: number of emails to retrieve. The default value is 10. A value of 1 returns an
29
+ # instance of Message, not an array of Message instances.
30
+ #
31
+ # Mail.find(:what => :first, :count => 10, :order => :asc)
32
+ # #=> Returns the first 10 emails in ascending order
33
+ #
34
+ class POP3
35
+ require 'net/pop'
36
+
37
+ def initialize(values)
38
+ self.settings = { :address => "localhost",
39
+ :port => 110,
40
+ :user_name => nil,
41
+ :password => nil,
42
+ :authentication => nil,
43
+ :enable_ssl => false }.merge!(values)
44
+ end
45
+
46
+ attr_accessor :settings
47
+
48
+ # Get the oldest received email(s)
49
+ #
50
+ # Possible options:
51
+ # count: number of emails to retrieve. The default value is 1.
52
+ # order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
53
+ #
54
+ def first(options = {}, &block)
55
+ options ||= {}
56
+ options[:what] = :first
57
+ options[:count] ||= 1
58
+ find(options, &block)
59
+ end
60
+
61
+ # Get the most recent received email(s)
62
+ #
63
+ # Possible options:
64
+ # count: number of emails to retrieve. The default value is 1.
65
+ # order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
66
+ #
67
+ def last(options = {}, &block)
68
+ options ||= {}
69
+ options[:what] = :last
70
+ options[:count] ||= 1
71
+ find(options, &block)
72
+ end
73
+
74
+ # Get all emails.
75
+ #
76
+ # Possible options:
77
+ # order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
78
+ #
79
+ def all(options = {}, &block)
80
+ options ||= {}
81
+ options[:count] = :all
82
+ find(options, &block)
83
+ end
84
+
85
+ # Find emails in a POP3 mailbox. Without any options, the 5 last received emails are returned.
86
+ #
87
+ # Possible options:
88
+ # what: last or first emails. The default is :first.
89
+ # order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
90
+ # count: number of emails to retrieve. The default value is 10. A value of 1 returns an
91
+ # instance of Message, not an array of Message instances.
92
+ #
93
+ def find(options = {}, &block)
94
+ options = validate_options(options)
95
+
96
+ start do |pop3|
97
+ mails = pop3.mails
98
+ mails.sort! { |m1, m2| m2.number <=> m1.number } if options[:what] == :last
99
+ mails = mails.first(options[:count]) if options[:count].is_a? Integer
100
+
101
+ if options[:what].to_sym == :last && options[:order].to_sym == :desc ||
102
+ options[:what].to_sym == :first && options[:order].to_sym == :asc ||
103
+ mails.reverse!
104
+ end
105
+
106
+ if block_given?
107
+ mails.each do |mail|
108
+ yield Mail.new(mail.pop)
109
+ end
110
+ else
111
+ emails = []
112
+ mails.each do |mail|
113
+ emails << Mail.new(mail.pop)
114
+ end
115
+ emails.size == 1 && options[:count] == 1 ? emails.first : emails
116
+ end
117
+
118
+ end
119
+ end
120
+
121
+ private
122
+
123
+ # Set default options
124
+ def validate_options(options)
125
+ options ||= {}
126
+ options[:count] ||= 10
127
+ options[:order] ||= :asc
128
+ options[:what] ||= :first
129
+ options
130
+ end
131
+
132
+ # Start a POP3 session and ensures that it will be closed in any case.
133
+ def start(config = Mail::Configuration.instance, &block)
134
+ raise ArgumentError.new("Mail::Retrievable#pop3_start takes a block") unless block_given?
135
+
136
+ pop3 = Net::POP3.new(settings[:address], settings[:port], isapop = false)
137
+ pop3.enable_ssl(verify = OpenSSL::SSL::VERIFY_NONE) if settings[:enable_ssl]
138
+ pop3.start(settings[:user_name], settings[:password])
139
+
140
+ yield pop3
141
+ ensure
142
+ if defined?(pop3) && pop3 && pop3.started?
143
+ pop3.reset # This clears all "deleted" marks from messages.
144
+ pop3.finish
145
+ end
146
+ end
147
+
148
+ end
149
+ end
@@ -0,0 +1,61 @@
1
+ # Autogenerated from a Treetop grammar. Edits may be lost.
2
+
3
+
4
+ module Mail
5
+ module AddressLists
6
+ include Treetop::Runtime
7
+
8
+ def root
9
+ @root ||= :primary_address
10
+ end
11
+
12
+ include RFC2822
13
+
14
+ module PrimaryAddress0
15
+ def addresses
16
+ [first_addr] + other_addr.elements.map { |o| o.addr_value }
17
+ end
18
+ end
19
+
20
+ module PrimaryAddress1
21
+ def addresses
22
+ [first_addr] + other_addr.elements.map { |o| o.addr_value }
23
+ end
24
+ end
25
+
26
+ def _nt_primary_address
27
+ start_index = index
28
+ if node_cache[:primary_address].has_key?(index)
29
+ cached = node_cache[:primary_address][index]
30
+ @index = cached.interval.end if cached
31
+ return cached
32
+ end
33
+
34
+ i0 = index
35
+ r1 = _nt_address_list
36
+ r1.extend(PrimaryAddress0)
37
+ if r1
38
+ r0 = r1
39
+ else
40
+ r2 = _nt_obs_addr_list
41
+ r2.extend(PrimaryAddress1)
42
+ if r2
43
+ r0 = r2
44
+ else
45
+ @index = i0
46
+ r0 = nil
47
+ end
48
+ end
49
+
50
+ node_cache[:primary_address][start_index] = r0
51
+
52
+ r0
53
+ end
54
+
55
+ end
56
+
57
+ class AddressListsParser < Treetop::Runtime::CompiledParser
58
+ include AddressLists
59
+ end
60
+
61
+ end