ok
Direktori : /proc/thread-self/root/proc/self/root/lib64/python3.6/__pycache__/ |
Current File : //proc/thread-self/root/proc/self/root/lib64/python3.6/__pycache__/smtplib.cpython-36.pyc |
3 \�� � @ sn d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl mZ dddddd d ddd ddgZdZdZdZdZdZejdej�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�Z G dd � d e�Z!G dd� de�Z"G d d� de�Z#d!d � Z$d"d#� Z%d$d� Z&d%d&� Z'd'd(� Z(yddl)Z)W n e*k �r� d)Z+Y nX d*Z+G d+d� d�Z,e+�r�G d,d-� d-e,�Z-ej.d-� d.Z/G d/d0� d0e,�Z0e1d1k�rjd2d3� Z2e2d4�Z3e2d5�j4d6�Z5e6d7� d8Z7x ej8j9� Z:e:�s$P e7e: Z7�qW e6d9e;e7� � e,d:�Z<e<j=d;� e<j>e3e5e7� e<j?� dS )<a SMTP/ESMTP client class. This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP Authentication) and RFC 2487 (Secure SMTP over TLS). Notes: Please remember, when doing ESMTP, that the names of the SMTP service extensions are NOT the same thing as the option keywords for the RCPT and MAIL commands! Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> print(s.help()) This is Sendmail version 8.8.4 Topics: HELO EHLO MAIL RCPT DATA RSET NOOP QUIT HELP VRFY EXPN VERB ETRN DSN For more info use "HELP <topic>". To report bugs in the implementation send email to sendmail-bugs@sendmail.org. For local information send email to Postmaster at your site. End of HELP info >>> s.putcmd("vrfy","someone@here") >>> s.getreply() (250, "Somebody OverHere <somebody@here.my.org>") >>> s.quit() � N)�body_encode� SMTPException�SMTPServerDisconnected�SMTPResponseException�SMTPSenderRefused�SMTPRecipientsRefused� SMTPDataError�SMTPConnectError� SMTPHeloError�SMTPAuthenticationError� quoteaddr� quotedata�SMTP� i� z s i z auth=(.*)c @ s e Zd ZdZdS )r z4Base class for all exceptions raised by this module.N)�__name__� __module__�__qualname__�__doc__� r r �/usr/lib64/python3.6/smtplib.pyr G s c @ s e Zd ZdZdS )�SMTPNotSupportedErrorz�The command or option is not supported by the SMTP server. This exception is raised when an attempt is made to run a command or a command with an option which is not supported by the server. N)r r r r r r r r r J s r c @ s e Zd ZdZdS )r z�Not connected to any SMTP server. This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the SMTP instance before connecting it to a server. N)r r r r r r r r r Q s c @ s e Zd ZdZdd� ZdS )r a2 Base class for all exceptions that include an SMTP error code. These exceptions are generated in some instances when the SMTP server returns an error code. The error code is stored in the `smtp_code' attribute of the error, and the `smtp_error' attribute is set to the error message. c C s || _ || _||f| _d S )N)� smtp_code� smtp_error�args)�self�code�msgr r r �__init__b s zSMTPResponseException.__init__N)r r r r r r r r r r Y s c @ s e Zd ZdZdd� ZdS )r z�Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets `sender' to the string that the SMTP refused. c C s"