/opt/imh/python3.13/lib/python3.13/__pycache__
NameSizeModeActions
abc.cpython-313.pyc79280644editdlrm
antigravity.cpython-313.pyc10000644editdlrm
argparse.cpython-313.pyc1040800644editdlrm
ast.cpython-313.pyc1030860644editdlrm
base64.cpython-313.pyc258320644editdlrm
bdb.cpython-313.pyc405800644editdlrm
bisect.cpython-313.pyc35120644editdlrm
bz2.cpython-313.pyc151800644editdlrm
calendar.cpython-313.pyc397080644editdlrm
cmd.cpython-313.pyc189770644editdlrm
code.cpython-313.pyc157990644editdlrm
codecs.cpython-313.pyc405720644editdlrm
codeop.cpython-313.pyc66550644editdlrm
colorsys.cpython-313.pyc45190644editdlrm
compileall.cpython-313.pyc206150644editdlrm
configparser.cpython-313.pyc689660644editdlrm
contextlib.cpython-313.pyc305090644editdlrm
contextvars.cpython-313.pyc2760644editdlrm
copy.cpython-313.pyc106450644editdlrm
copyreg.cpython-313.pyc75510644editdlrm
cProfile.cpython-313.pyc86790644editdlrm
csv.cpython-313.pyc207150644editdlrm
dataclasses.cpython-313.pyc478390644editdlrm
datetime.cpython-313.pyc4260644editdlrm
decimal.cpython-313.pyc30170644editdlrm
difflib.cpython-313.pyc720550644editdlrm
dis.cpython-313.pyc475320644editdlrm
doctest.cpython-313.pyc1076920644editdlrm
enum.cpython-313.pyc858660644editdlrm
filecmp.cpython-313.pyc150420644editdlrm
fileinput.cpython-313.pyc206480644editdlrm
fnmatch.cpython-313.pyc68190644editdlrm
fractions.cpython-313.pyc383840644editdlrm
ftplib.cpython-313.pyc423460644editdlrm
functools.cpython-313.pyc422860644editdlrm
genericpath.cpython-313.pyc78260644editdlrm
getopt.cpython-313.pyc84790644editdlrm
getpass.cpython-313.pyc73260644editdlrm
gettext.cpython-313.pyc225760644editdlrm
glob.cpython-313.pyc236810644editdlrm
graphlib.cpython-313.pyc102120644editdlrm
gzip.cpython-313.pyc319930644editdlrm
hashlib.cpython-313.pyc82910644editdlrm
heapq.cpython-313.pyc177850644editdlrm
hmac.cpython-313.pyc106750644editdlrm
imaplib.cpython-313.pyc626620644editdlrm
inspect.cpython-313.pyc1365370644editdlrm
io.cpython-313.pyc42900644editdlrm
ipaddress.cpython-313.pyc919790644editdlrm
keyword.cpython-313.pyc10560644editdlrm
linecache.cpython-313.pyc85670644editdlrm
locale.cpython-313.pyc590140644editdlrm
lzma.cpython-313.pyc157330644editdlrm
mailbox.cpython-313.pyc1187480644editdlrm
mimetypes.cpython-313.pyc249130644editdlrm
modulefinder.cpython-313.pyc284070644editdlrm
netrc.cpython-313.pyc93410644editdlrm
ntpath.cpython-313.pyc284840644editdlrm
nturl2path.cpython-313.pyc27520644editdlrm
numbers.cpython-313.pyc140470644editdlrm
opcode.cpython-313.pyc40770644editdlrm
operator.cpython-313.pyc173800644editdlrm
optparse.cpython-313.pyc675940644editdlrm
os.cpython-313.pyc458640644editdlrm
pdb.cpython-313.pyc1061180644editdlrm
pickle.cpython-313.pyc784190644editdlrm
pickletools.cpython-313.pyc804420644editdlrm
pkgutil.cpython-313.pyc199740644editdlrm
platform.cpython-313.pyc446900644editdlrm
plistlib.cpython-313.pyc431130644editdlrm
poplib.cpython-313.pyc184400644editdlrm
posixpath.cpython-313.pyc181150644editdlrm
pprint.cpython-313.pyc297130644editdlrm
profile.cpython-313.pyc225780644editdlrm
pstats.cpython-313.pyc378720644editdlrm
pty.cpython-313.pyc74200644editdlrm
pyclbr.cpython-313.pyc151590644editdlrm
pydoc.cpython-313.pyc1397200644editdlrm
py_compile.cpython-313.pyc100840644editdlrm
queue.cpython-313.pyc173480644editdlrm
quopri.cpython-313.pyc95750644editdlrm
random.cpython-313.pyc352710644editdlrm
reprlib.cpython-313.pyc111750644editdlrm
rlcompleter.cpython-313.pyc85870644editdlrm
runpy.cpython-313.pyc144060644editdlrm
sched.cpython-313.pyc76120644editdlrm
secrets.cpython-313.pyc25190644editdlrm
selectors.cpython-313.pyc263700644editdlrm
shelve.cpython-313.pyc133060644editdlrm
shlex.cpython-313.pyc148670644editdlrm
shutil.cpython-313.pyc674670644editdlrm
signal.cpython-313.pyc45590644editdlrm
site.cpython-313.pyc316620644editdlrm
smtplib.cpython-313.pyc473750644editdlrm
socket.cpython-313.pyc422340644editdlrm
socketserver.cpython-313.pyc346670644editdlrm
sre_compile.cpython-313.pyc6420644editdlrm
sre_constants.cpython-313.pyc6450644editdlrm
sre_parse.cpython-313.pyc6380644editdlrm
ssl.cpython-313.pyc652190644editdlrm
stat.cpython-313.pyc55380644editdlrm
statistics.cpython-313.pyc711130644editdlrm
string.cpython-313.pyc116660644editdlrm
stringprep.cpython-313.pyc252750644editdlrm
struct.cpython-313.pyc3400644editdlrm
subprocess.cpython-313.pyc819690644editdlrm
symtable.cpython-313.pyc232110644editdlrm
tabnanny.cpython-313.pyc124320644editdlrm
tarfile.cpython-313.pyc1258450644editdlrm
tempfile.cpython-313.pyc410080644editdlrm
textwrap.cpython-313.pyc179490644editdlrm
this.cpython-313.pyc14270644editdlrm
threading.cpython-313.pyc633120644editdlrm
timeit.cpython-313.pyc146530644editdlrm
token.cpython-313.pyc35880644editdlrm
tokenize.cpython-313.pyc254490644editdlrm
trace.cpython-313.pyc339780644editdlrm
traceback.cpython-313.pyc721390644editdlrm
tracemalloc.cpython-313.pyc274280644editdlrm
tty.cpython-313.pyc26790644editdlrm
turtle.cpython-313.pyc1751510644editdlrm
types.cpython-313.pyc155600644editdlrm
typing.cpython-313.pyc1545970644editdlrm
uuid.cpython-313.pyc323970644editdlrm
warnings.cpython-313.pyc295530644editdlrm
wave.cpython-313.pyc332520644editdlrm
weakref.cpython-313.pyc318180644editdlrm
webbrowser.cpython-313.pyc269010644editdlrm
zipapp.cpython-313.pyc104090644editdlrm
zipimport.cpython-313.pyc265220644editdlrm
_aix_support.cpython-313.pyc47320644editdlrm
_android_support.cpython-313.pyc76370644editdlrm
_apple_support.cpython-313.pyc34970644editdlrm
_collections_abc.cpython-313.pyc467080644editdlrm
_colorize.cpython-313.pyc40260644editdlrm
_compat_pickle.cpython-313.pyc72070644editdlrm
_compression.cpython-313.pyc78200644editdlrm
_ios_support.cpython-313.pyc27310644editdlrm
_markupbase.cpython-313.pyc124480644editdlrm
_opcode_metadata.cpython-313.pyc106930644editdlrm
_osx_support.cpython-313.pyc181420644editdlrm
_pydatetime.cpython-313.pyc945900644editdlrm
_pydecimal.cpython-313.pyc2170580644editdlrm
_pyio.cpython-313.pyc1117930644editdlrm
_pylong.cpython-313.pyc111730644editdlrm
_py_abc.cpython-313.pyc72070644editdlrm
_sitebuiltins.cpython-313.pyc49170644editdlrm
_strptime.cpython-313.pyc345000644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc585830644editdlrm
_threading_local.cpython-313.pyc55380644editdlrm
_weakrefset.cpython-313.pyc120640644editdlrm
__future__.cpython-313.pyc47370644editdlrm
__hello__.cpython-313.pyc9810644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/__pycache__/smtplib.cpython-313.pyc (47375B)
e SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSK r SSK r SSK Jr /SQrSrSrSrSrS rS r\R."S \R05r"S S \5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r "SS\5r!"SS\5r""SS\5r#"SS\5r$S r%S!r&S"r'S#r(S$r)SSK*r*S%r+"S'S(5r-\+(a"S)S*\-5r.\R_S*5 S+r0"S,S-\-5r1\2S.:XaS/r3\3"S05r4\3"S15RkS25r6\7"S35 S4r8\ RrRu5=r;(a(\8\;-r8\ RrRu5=r;(aM(\7"S5\<"\85-5 \-"S65r=\=R}S75 \=R\4\6\85 \=R5 gg!\,a S&r+GNf=f)8aSMTP/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 ". 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 ") >>> s.quit() N) body_encode) SMTPExceptionSMTPNotSupportedErrorSMTPServerDisconnectedSMTPResponseExceptionSMTPSenderRefusedSMTPRecipientsRefused SMTPDataErrorSMTPConnectError SMTPHeloErrorSMTPAuthenticationError quoteaddr quotedataSMTPi s i z auth=(.*)c\rSrSrSrSrg)rHz4Base class for all exceptions raised by this module.N__name__ __module__ __qualname____firstlineno____doc____static_attributes__r-/opt/imh/python3.13/lib/python3.13/smtplib.pyrrHs>rrc\rSrSrSrSrg)rKzThe 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. rNrrrrrrKrrc\rSrSrSrSrg)rRzNot 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. rNrrrrrrRsrrc\rSrSrSrSrSrg)rZaBase 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,XlX lX4UlgN) smtp_code smtp_errorargs)selfcodemsgs r__init__SMTPResponseException.__init__csK r)r+r)r*Nrrrrrr/rrrrrrZs  rrc\rSrSrSrSrSrg)rhzSender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets `sender' to the string that the SMTP refused. c:XlX lX0lXU4Ulgr()r)r*senderr+)r,r-r.r5s rr/SMTPSenderRefused.__init__os ' r)r+r5r)r*Nr1rrrrrhs  (rrc\rSrSrSrSrSrg)r uzAll recipient addresses refused. The errors for each recipient are accessible through the attribute 'recipients', which is a dictionary of exactly the same sort as SMTP.sendmail() returns. c XlU4Ulgr() recipientsr+)r,r:s rr/SMTPRecipientsRefused.__init__}s$M r)r+r:Nr1rrrr r us "rr c\rSrSrSrSrg)r z'The SMTP server didn't accept the data.rNrrrrr r s1rr c\rSrSrSrSrg)r z&Error during connection establishment.rNrrrrr r s0rr c\rSrSrSrSrg)r z"The server refused our HELO reply.rNrrrrr r s,rr c\rSrSrSrSrg)r zjAuthentication error. Most probably the server didn't accept the username/password combination provided. rNrrrrr r r"rr c[RRU5upX4S:Xa+UR5R S5(aU$SU-$SU-$)zQuote a subset of the email addresses defined by RFC 821. Should be able to handle anything email.utils.parseaddr can handle. rF)emailutils parseaddrstrip startswith addrstring displaynameaddrs rrrs[  --j9Kh&     ( ( - -  "" D=rcZ[RRU5upX4S:XaU$U$)NrE)rHrIrJrMs r _addr_onlyrRs/ --j9Kh& Krc f[R"SS[R"S[U55$)zuQuote data for email. Double leading '.', and change Unix newline '\n', or Mac '\r' into internet CRLF end-of-line. z(?m)^\.z..(?:\r\n|\n|\r(?!\n))resubCRLFdatas rrrs* 66*d &d3 55rc2[R"SSU5$)Ns(?m)^\.s..)rVrW)bindatas r_quote_periodsr]s 66+ug ..rc:[R"S[U5$)NrTrUrYs r _fix_eolsr_s FF*D$ 77rTFc~\rSrSrSrSrSrSrSrSr Sr Sr \ r SSS\RS4SjrS rS rS rS rS rS.SjrSrS/SjrSrS/SjrS/SjrS/SjrSrS/SjrSrSr Sr!S0Sjr"S0Sjr#Sr$Sr%\%r&Sr'Sr(S S!.S"jr)S1S#jr*S1S$jr+S1S%jr,S S!.S&jr-SS'.S(jr.S2S)jr/S3S*jr0S+r1S,r2S-r3g)4ra\This class manages a connection to an SMTP or ESMTP server. SMTP Objects: SMTP objects have the following attributes: helo_resp This is the message given by the server in response to the most recent HELO command. ehlo_resp This is the message given by the server in response to the most recent EHLO command. This is usually multiline. does_esmtp This is a True value _after you do an EHLO command_, if the server supports ESMTP. esmtp_features This is a dictionary, which, if the server supports ESMTP, will _after you do an EHLO command_, contain the names of the SMTP service extensions this server supports, and their parameters (if any). Note, all extension names are mapped to lower case in the dictionary. See each method's docstrings for details. In general, there is a method of the same name to perform each SMTP command. There is also a method called 'sendmail' that will do an entire mail transaction. rNehloFrFcXlX@l0UlSUlXPlSUlU(a4UR X5upgUS:waUR5 [Xg5eUbX0l g[R"5nSU;aXl gSn [R"[R"55n SU -Ul g![Ra N!f=f)aInitialize a new instance. If specified, `host` is the name of the remote host to which to connect. If specified, `port` specifies the port to which to connect. By default, smtplib.SMTP_PORT is used. If a host is specified the connect method is called, and if it returns anything other than a success code an SMTPConnectError is raised. If specified, `local_hostname` is used as the FQDN of the local host in the HELO/EHLO command. Otherwise, the local hostname is found using socket.getfqdn(). The `source_address` parameter takes a 2-tuple (host, port) for the socket to bind to as its source address before connecting. If the host is '' and port is 0, the OS default behavior will be used. asciirN.z 127.0.0.1z[%s])_hosttimeoutesmtp_featurescommand_encodingsource_address_auth_challenge_countconnectcloser local_hostnamesocketgetfqdn gethostbyname gethostnamegaierror) r,hostportrorhrkr-r.fqdnrPs rr/ SMTP.__init__s$    ',%&" ,,t2KTs{ &t11  %"0  >>#Dd{&*##!//0B0B0DED'-tm#s)CCCcU$r(rr,s r __enter__SMTP.__enter__s rcURS5up#US:wa [X#5eUR5 g![a Nf=f!UR5 f=f)NQUIT)docmdrrrn)r,r+r-messages r__exit__ SMTP.__exit__sY  JJv.MDs{+D:: JJL&    JJLs&$8A AAAAAcXlg)zSet the debug output level. A non-false value results in debug messages for connection and for all messages sent to and received from the server. N) debuglevel)r,rs rset_debuglevelSMTP.set_debuglevel"s %rcURS:aH[[RR5R 5/UQ7S[ R 06 g[US[ R 06 g)Nfile)rprintdatetimenowtimesysstderrr,r+s r _print_debugSMTP._print_debug+sM ??Q  (##'')..0 I4 Icjj I 4 )cjj )rcUbU(d [S5eURS:aURSX4UR5 [R "X4UUR5$)N0Non-blocking socket (timeout=0) is not supportedrz connect: to) ValueErrorrrrkrpcreate_connection)r,rurvrhs r _get_socketSMTP._get_socket1s`  wOP P ??Q    md\4;N;N O'' g(,(;(;= =rc&U(aX0lU(dRURS5URS5:Xa.URS5nUS:aUSUXS-Sp![U5nU(d UR n[R"SXU5 URXUR5Ul SUl UR5upVURS:aURS[!U55 XV4$![a [ S5ef=f)a@Connect to a host on a given port. If the hostname ends with a colon (`:') followed by a number, and there is no port specified, that suffix will be stripped off and the number interpreted as the port number to use. Note: This method is automatically invoked by __init__, if a host is specified during instantiation. :rNrznonnumeric portzsmtplib.connectconnect:)rkfindrfindintrOSError default_portrauditrrhsockrgetreplyrrrepr)r,rurvrkir-r.s rrm SMTP.connect;s "0 34::c?: 3AAv!"1XtEF|d5t9D$$D #T6$$T>  mmo  ??Q    j$s) 4{"5!"3445s  C::DcURS:aURS[U55 UR(ad[ U[ 5(aUR UR5n[R"SX5 URRU5 g[S5e![a UR5 [S5ef=f)zSend `s' to the server.rzsend:z smtplib.sendServer not connectedzplease run connect() firstN)rrrr isinstancestrencoderjrrsendallrrnr)r,ss rsend SMTP.send\s ??Q    gtAw / 99!S!!HHT223 IInd . E !!!$ ))EF F  E ,-CDD Es B,,&CcUS:XaUnOUSU3nSU;dSU;a0URSS5RSS5n[SU35eURU[35 g) zSend a command to the server.rF   z\nz\rz=command and arguments contain prohibited newline characters: N)replacerrrX)r,cmdr+rs rputcmd SMTP.putcmdosu 2:A%qA 19  $&..tU;AOPQsS  QCv,rc2/nURc URRS5UlURR[S-5nU(dUR 5 [S5eURS:aURS[U55 [U5[:aUR 5 [SS 5eURUS SRS 55 USS n[!U5nUS S S:waOMSR%U5nURS:aURSU<SU<35 XV4$![ a,nUR 5 [S[U5-5eSnAff=f!["a S nMf=f)apGet a reply from the server. Returns a tuple consisting of: - server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (multiline responses are converted to a single, multiline string). Raises SMTPServerDisconnected if end-of-file is reached. Nrbrz Connection unexpectedly closed: zConnection unexpectedly closedrzreply:izLine too long.s - zreply: retcode (z); Msg: )rrmakefilereadline_MAXLINErrnrrrrrlenrappendrKrrjoin)r,resplineer-errcodeerrmsgs rr SMTP.getreply|sx 99  **40DI 7yy))(Q,7  ,-MNN"!!(DJ74y8# +C1ABB KKQRz2 38D d) AayD 58D! ??Q    P Q9 7 ,-O/21v.677 7$  s)"E 9 F F'E>>F FFcDURX5 UR5$)z-Send a command, and return its response code.rr)r,rr+s rr SMTP.docmds C}}rcURSU=(d UR5 UR5up#X0lX#4$)z_SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. helo)rror helo_resp)r,namer-r.s rr SMTP.helos7 FD7D$7$78mmo {rc&0UlURURU=(d UR5 UR 5up#US:Xa*[ U5S:XaUR 5 [S5eX0lUS:waX#4$SUl [UR[5(d[UR55eURRS5RS5nUS UGHn[R!U5nU(aCURR#SS 5S -UR%S5S-URS'Mc[&R "S U5nU(dMUR)S 5R+5nUR,UR/S 5S R15n US:Xa2URR#US 5S -U -URU'GMXRU'GM X#4$)z_SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. rrrTzlatin-1rauthrFrz((?P[A-Za-z0-9][A-Za-z0-9\-]*) ?featureN)rirehlo_msgrorrrnr ehlo_resp does_esmtprbytesrdecodesplit OLDSTYLE_AUTHmatchgetgroupsrVgrouplowerstringendrK) r,rr-r.reach auth_matchmrparamss rrb SMTP.ehlos ! DMM4#>4+>+>?mmo  2:#c(a- JJL()?@ @ 3;; $..%00F$t~~2FF0~~$$Y/55d; GD',,T2J.2.A.A.E.Efb.Q/ * 1 1! 4Q 7/8##F+ DdKAq''),224!%% "2"34::<f$373F3F3J3J7TV3W!4"$*4+D''04:''056{rc<UR5UR;$)z7Does the server support a given SMTP service extension?)rri)r,opts rhas_extn SMTP.has_extnsyy{d1111rcLURSU5 UR5S$)z3SMTP 'help' command. Returns help text from server.helprrrs rr SMTP.helps# FD!}}q!!rc2SUlURS5$)z&SMTP 'rset' command -- resets session.rdrset)rjrrzs rr SMTP.rsets 'zz&!!rcFUR5 g![a gf=f)zInternal 'rset' command which ignores any SMTPServerDisconnected error. Used internally in the library, since the server disconnected error should appear to the application when the *next* command is issued, if we are doing an internal "safety" reset. N)rrrzs r_rset SMTP._rsets"  IIK%   s   c$URS5$)z-SMTP 'noop' command -- doesn't do anything :>noop)rrzs rr SMTP.noop szz&!!rcBSnU(aeUR(aT[SU55(a)URS5(aSUlO [ S5eSSR U5-nUR SS[U5<U<35 UR5$) aSMTP 'mail' command -- begins mail xfer session. This method may raise the following exceptions: SMTPNotSupportedError The options parameter includes 'SMTPUTF8' but the SMTPUTF8 extension is not supported by the server. rFc3F# UHoR5S:Hv M g7f)smtputf8N)r).0xs r SMTP.mail..s:'Q779j('s!rzutf-8z SMTPUTF8 not supported by serverrmailzfrom:) ranyrrjrrrrr)r,r5options optionlists rr SMTP.mails t:':::==,,,3D)/:<<sxx00J F9V+> !dnn&<499;q>0S0#yy{ t*s*'33+1'= !rTinitial_response_okcJUR5nU(aU"5OSnUb;[URS5SS9nURSUS-U-5upgSUlOURSU5upgSUlUS :XaU=RS- sl[ R "U5n[U"U5RS5SS9nURU5upgUR[:a[S [Xg45-5eUS :XaMUS ;aXg4$[Xg5e) aAuthentication command - requires response processing. 'mechanism' specifies which authentication mechanism is to be used - the valid values are those listed in the 'auth' element of 'esmtp_features'. 'authobject' must be a callable object taking a single argument: data = authobject(challenge) It will be called to process the server's challenge response; the challenge argument it is passed will be a bytes. It should return an ASCII string that will be base64 encoded and sent to the server. Keyword arguments: - initial_response_ok: Allow sending the RFC 4954 initial-response to the AUTH command, if the authentication methods supports it. NrdrF)eolAUTHrrriNz4Server AUTH mechanism infinite loop. Last response: i) upper encode_base64rrrlbase64 decodebytes _MAXCHALLENGErrr ) r, mechanism authobjectr"initial_responseresponser-r challenges rr SMTP.authhs!,OO% ,?JLT  '$%5%<%SUR<SUR<3$)z\Authobject to use with PLAIN authentication. Requires self.user and self.password to be set.)r5r8r:s r auth_plainSMTP.auth_plains"YY 66rcXUbURS:a UR$UR$)z\Authobject to use with LOGIN authentication. Requires self.user and self.password to be set.)rlr5r8r:s r auth_loginSMTP.auth_logins+   : :Q >99 == rcUR5 URS5(d [S5eURSR 5n/SQnUVs/sH nXd;dM UPM nnU(d [ S5eXsUlUlUHNnSUR5RSS5-n URU[X 5US9upU S ;aX4s $MP W es snf![a n U n S n A MkS n A ff=f) aLog in on an SMTP server that requires authentication. The arguments are: - user: The user name to authenticate with. - password: The password for the authentication. Keyword arguments: - initial_response_ok: Allow sending the RFC 4954 initial-response to the AUTH command, if the authentication methods supports it. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. This method will return normally if the authentication was successful. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPAuthenticationError The server didn't accept the username/ password combination. SMTPNotSupportedError The AUTH command is not supported by the server. SMTPException No suitable authentication method was found. rz,SMTP AUTH extension not supported by server.)zCRAM-MD5PLAINLOGINz(No suitable authentication method found.auth_-_r!r&N) rrrrirrr5r8rrrgetattrr )r,r5r8r"advertised_authlistpreferred_authsrauthlist authmethod method_namer-rrlast_exceptions rlogin SMTP.logins"8 ##%}}V$$'>@ @#11&9??A9&54_T2_4 JK K $(  4="J!J$4$4$6$>$>sC$HHK ##yy :(; ) =  :% <'&#/4&+ #!" #s$ C"$C"5$C'' C>1C99C>contextcUR5 URS5(d [S5eURS5up#US:Xa}[(d [ S5eUc[ R"5nURURURS9Ul SUl SUl SUl 0UlSUlX#4$[!X#5e) a;Puts the connection to the SMTP server into TLS mode. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server supports TLS, this will encrypt the rest of the SMTP session. If you provide the context parameter, the identity of the SMTP server and client can be checked. This, however, depends on whether the socket module really checks the certificates. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. starttlsz+STARTTLS extension not supported by server.STARTTLSrez&No SSL support included in this PythonNserver_hostnameF)rrrr _have_ssl RuntimeErrorssl_create_stdlib_context wrap_socketrrgrrrrirr)r,rUrreplys rrW SMTP.starttlss" ##%}}Z(('=? ? :.  3;9"#KLL446++DII<@JJ,HDIDI "DN!DN"$D #DO }(4 4rcUR5 /n[U[5(a[U5R S5nUR (aMUR S5(aURS[U5-5 UHnURU5 M URX5upUS:wa3US:XaUR5 OUR5 [XU5e0n [U[5(aU/nUHHn URX5upUS:wa US:waX4X'US:XdM/UR5 [U 5e [U 5[U5:XaUR5 [U 5eURU5upUS:wa2US:XaUR5 OUR5 [!X5eU $)a This command performs an entire mail transaction. The arguments are: - from_addr : The address sending this mail. - to_addrs : A list of addresses to send this mail to. A bare string will be treated as a list with 1 address. - msg : The message to send. - mail_options : List of ESMTP options (such as 8bitmime) for the mail command. - rcpt_options : List of ESMTP options (such as DSN commands) for all the rcpt commands. msg may be a string containing characters in the ASCII range, or a byte string. A string is encoded to bytes using the ascii codec, and lone \r and \n characters are converted to \r\n characters. If there has been no previous EHLO or HELO command this session, this method tries ESMTP EHLO first. If the server does ESMTP, message size and each of the specified options will be passed to it. If EHLO fails, HELO will be tried and ESMTP options suppressed. This method will return normally if the mail is accepted for at least one recipient. It returns a dictionary, with one entry for each recipient that was refused. Each entry contains a tuple of the SMTP error code and the accompanying error message sent by the server. This method may raise the following exceptions: SMTPHeloError The server didn't reply properly to the helo greeting. SMTPRecipientsRefused The server rejected ALL recipients (no mail was sent). SMTPSenderRefused The server didn't accept the from_addr. SMTPDataError The server replied with an unexpected error code (other than a refusal of a recipient). SMTPNotSupportedError The mail_options parameter includes 'SMTPUTF8' but the SMTPUTF8 extension is not supported by the server. Note: the connection will be open even after an exception is raised. Example: >>> import smtplib >>> s=smtplib.SMTP("localhost") >>> tolist=["one@one.org","two@two.org","three@three.org","four@four.org"] >>> msg = '''\ ... From: Me@my.org ... Subject: testin'... ... ... This is a test ''' >>> s.sendmail("me@my.org",tolist,msg) { "three@three.org" : ( 550 ,"User unknown" ) } >>> s.quit() In the above example, the message was accepted for delivery to three of the four addresses, and one was rejected, with the error code 550. If all addresses are accepted, then the method will return an empty dictionary. rdsizezsize=%dri)rrrr_rrrrrrrnrrrr rZr ) r, from_addrto_addrsr. mail_options rcpt_options esmtp_optsoptionr-rsenderrsrs rsendmail SMTP.sendmails@ ##% c3  C.''0C ??}}V$$!!)c#h"67&!!&)'yy7  3;s{  #D : : h $ $ zHD99T8LT $#+"&s{ +H55  x=CM ) JJL'1 1yy~  3;s{  + +rcPUR5 URS5nUcSnO[U5S:XaSnO [S5eUc=US-U;aXS-OXS-n[R R U/5S SnUcZXS -XS -XS -4Vs/sH nUcMUPM n n[R R U 5V s/sHoSPM nn [R"U5n U S U S Sn SRU/UQ5RS5 [R"5n U (a>[RR!XR"R%SS9S9n/UQSPSP7nO[RR!U 5nUR'U SS9 U R)5nSSS5 UR+X#WUU5$s snfs sn f![a& URS5(d [S5eSn Nf=f!,(df  N_=f)aConverts message to a bytestring and passes it to sendmail. The arguments are as for sendmail, except that msg is an email.message.Message object. If from_addr is None or to_addrs is None, these arguments are taken from the headers of the Message as described in RFC 2822 (a ValueError is raised if there is more than one set of 'Resent-' headers). Regardless of the values of from_addr and to_addr, any Bcc field (or Resent-Bcc field, when the Message is a resent) of the Message object won't be transmitted. The Message object is then serialized using email.generator.BytesGenerator and sendmail is called to transmit the message. If the sender or any of the recipient addresses contain non-ASCII and the server advertises the SMTPUTF8 capability, the policy is cloned with utf8 set to True for the serialization, and SMTPUTF8 and BODY=8BITMIME are asserted on the send. If the server does not support SMTPUTF8, an SMTPNotSupported error is raised. Otherwise the generator is called without modifying the policy. z Resent-DateNrFrzResent-z0message has more than one 'Resent-' header blockSenderFromrToBccCcz Resent-BccFrdrzOne or more source or delivery addresses require internationalized email support, but the server does not advertise the required SMTPUTF8 capabilityT)utf8)policySMTPUTF8z BODY=8BITMIMEr)linesep)rget_allrrrHrI getaddressescopyrrUnicodeEncodeErrorrrioBytesIO generatorBytesGeneratorrucloneflattengetvaluerl)r,r.rerfrgrhresent header_prefixf addr_fieldsamsg_copy internationalbytesmsggflatmsgs r send_messageSMTP.send_messagesN> ##%]+ >M [A %MOP P   -x7C?X56 #F$: ;  00)=a@CI  '*4+?'@'*5+@'A'*4+?'@'B-'B 'BK-',kk&>&>{&KL&K!&KHL99S> UO \ "  ! GGY** + 2 27 ;ZZ\XOO22ZZ%5%54%5%@3BKKzK?K OO228< IIhI /'')G}}Y'<)+ +9-M" !==,,+KLL!M  !\s1G)GG#G$9BH$-HH H%cURnSUlU(aUR5 URnSUlU(aUR5 gg!URnSUlU(aUR5 ff=f)z(Close the connection to the SMTP server.N)rrnr)r,rrs rrn SMTP.closesi 99DDI 99DDI 99DDI s *A-BcURS5nS=UlUl0UlSUlUR 5 U$)zTerminate the SMTP session.quitNF)rrrrirrn)r,ress rr SMTP.quits;jj *..   r)rlrgrjrrrrirrror8rrkrhr5 localhostrN)rF)rr()rr)NNrr)4rrrrrrrrrrrr SMTP_PORTrrp_GLOBAL_DEFAULT_TIMEOUTr/r{rrrrrmrrrrrrbrrrrrrrrZrrrrrr;r?rCrRrWrlrrnrrrrrrrs& 8J D DIHIJLQt77 $.4`%* =BG&  /b 1f2" " "*: D4"BF.2`I7 !<@@D#'+Z?A fP:>35K+Z rrcZ^\rSrSrSr\rS\RSSS.Sjjr U4Sjr Sr U=r $) SMTP_SSLiaThis is a subclass derived from SMTP that connects over an SSL encrypted socket (to use this class you need a socket module that was compiled with SSL support). If host is not specified, '' (the local host) is used. If port is omitted, the standard SMTP-over-SSL port (465) is used. local_hostname and source_address have the same meaning as they do in the SMTP class. context also optional, can contain a SSLContext. N)rhrkrUcpUc[R"5nX`l[R XX#UU5 gr()r]r^rUrr/)r,rurvrorhrkrUs rr/SMTP_SSL.__init__s1446"L MM$dG( *rc>URS:aURSX45 [TU] XU5nURR UUR S9nU$)NrrrY)rrsuperrrUr_rg)r,rurvrh new_socket __class__s rrSMTP_SSL._get_sockets["!!*tl;,TAJ11*BF**2NJ rrT)rFrN) rrrrr SMTP_SSL_PORTrrprr/rr __classcell__rs@rrrs1 %  * & > >$($ *  rricb^\rSrSrSrSrS\SS\R4U4Sjjr S U4Sjjr Sr U=r $) LMTPiaeLMTP - Local Mail Transfer Protocol The LMTP protocol, which is very similar to ESMTP, is heavily based on the standard SMTP client. It's common to use Unix sockets for LMTP, so our connect() method must support that as well as a regular host:port server. local_hostname and source_address have the same meaning as they do in the SMTP class. To specify a Unix socket, you must use an absolute path as the host, starting with a '/'. Authentication is supported, using the regular SMTP mechanism. When using a Unix socket, LMTP generally don't support or require any authentication, but your mileage might vary.lhlorFNc$>[TU]XUXES9 g)zInitialize a new instance.)rorkrhN)rr/)r,rurvrorkrhrs rr/ LMTP.__init__ s N(6  Irc>USS:wa[TU]XUS9$URbUR(d [S5e[R"[R [R 5UlUR[RLa%URRUR5 SUl URRU5 UR5upEURS:aURSU5 XE4$![aV URS:aURSU5 UR(aURR5 SUlef=f)z=Connect to the LMTP daemon, on either a Unix or a TCP socket.r/)rkNrz connect fail:r)rrmrhrrpAF_UNIX SOCK_STREAMrr settimeoutrrrrrnr)r,rurvrkr-r.rs rrm LMTP.connect&s 7c>7?4n?M M << #DLLOP P  fnnf6H6HIDI||6#A#AA $$T\\2DI II  d #mmo  ??Q    j# .{ "!!/48yy !DI   sBDA E6)rrr) rrrrrr LMTP_PORTrprr/rmrrrs@rrrs1 4HYt $f.L.LI rr__main__c[RRUS-5 [RR5 [RR 5R 5$)Nz: )rstdoutwriteflushstdinrrK)prompts rrrEsD $' yy!!#))++rrprq,zEnter message, end with ^D:rFzMessage length is %drr)Arrpr|rV email.utilsrH email.messageemail.generatorr*r6rzrremail.base64mimerr)__all__rrrXrrr,compileIrrrrrrrr r r r r rrRrr]r_r]r[ ImportErrorrrrrrrrfromaddrrtoaddrsrr.rrrrserverrrlrrrrrs'R   9 -       <. ?G?M]  M   (- ( "M "2)21,1-)-3 5/8Ii i V 4< NN:  /4/h z, f~HTl  %G '( C))$$& &$ &Dj))$$& &$ & 3s8 +, + F ! OOHgs+ KKM#YIs G**G65G6