Home
last modified time | relevance | path

Searched refs:email (Results 1 – 25 of 669) sorted by relevance

12345678910>>...27

/third_party/python/Doc/library/
Demail.rst1 :mod:`email` --- An email and MIME handling package
4 .. module:: email
6 email messages.
11 **Source code:** :source:`Lib/email/__init__.py`
15 The :mod:`email` package is a library for managing email messages. It is
16 specifically *not* designed to do any sending of email messages to SMTP
18 :mod:`smtplib` and :mod:`nntplib`. The :mod:`email` package attempts to be as
23 The overall structure of the email package can be divided into three major
27 The central component of the package is an "object model" that represents email
29 object model interface defined in the :mod:`~email.message` sub-module. The
[all …]
Demail.mime.rst1 :mod:`email.mime`: Creating email and MIME objects from scratch
4 .. module:: email.mime
7 **Source code:** :source:`Lib/email/mime/`
11 This module is part of the legacy (``Compat32``) email API. Its functionality
12 is partially replaced by the :mod:`~email.contentmanager` in the new API, but
19 :class:`~email.message.Message` objects by hand. In fact, you can also take an
20 existing structure and add new :class:`~email.message.Message` objects, move them
24 You can create a new object structure by creating :class:`~email.message.Message`
26 messages though, the :mod:`email` package provides some convenient subclasses to
31 .. currentmodule:: email.mime.base
[all …]
Demail.parser.rst1 :mod:`email.parser`: Parsing email messages
4 .. module:: email.parser
5 :synopsis: Parse flat text email messages to produce a message object structure.
7 **Source code:** :source:`Lib/email/parser.py`
12 created from whole cloth by creating an :class:`~email.message.EmailMessage`
14 using :meth:`~email.message.EmailMessage.set_content` and related methods, or
15 they can be created by parsing a serialized representation of the email
18 The :mod:`email` package provides a standard parser that understands most email
21 :class:`~email.message.EmailMessage` instance of the object structure. For
24 will return ``True`` from its :meth:`~email.message.EmailMessage.is_multipart`
[all …]
Demail.examples.rst3 :mod:`email`: Examples
6 Here are a few examples of how to use the :mod:`email` package to read, write,
7 and send simple email messages, as well as more complex MIME messages.
12 .. literalinclude:: ../includes/email-simple.py
16 from the :mod:`~email.parser` module:
18 .. literalinclude:: ../includes/email-headers.py
24 .. literalinclude:: ../includes/email-mime.py
27 Here's an example of how to send the entire contents of a directory as an email
30 .. literalinclude:: ../includes/email-dir.py
36 .. literalinclude:: ../includes/email-unpack.py
[all …]
Demail.policy.rst1 :mod:`email.policy`: Policy Objects
4 .. module:: email.policy
12 **Source code:** :source:`Lib/email/policy.py`
16 The :mod:`email` package's prime focus is the handling of email messages as
17 described by the various email and MIME RFCs. However, the general format of
18 email messages (a block of header fields each consisting of a name followed by
21 email. Some of these uses conform fairly closely to the main email RFCs, some
22 do not. Even when working with email, there are times when it is desirable to
24 interoperate with email servers that do not themselves follow the standards, or
28 Policy objects give the email package the flexibility to handle all these
[all …]
Demail.errors.rst1 :mod:`email.errors`: Exception and Defect classes
4 .. module:: email.errors
5 :synopsis: The exception classes used by the email package.
7 **Source code:** :source:`Lib/email/errors.py`
11 The following exception classes are defined in the :mod:`email.errors` module:
16 This is the base class for all exceptions that the :mod:`email` package can
24 :class:`~email.parser.Parser` class. It is derived from
26 by :mod:`~email.headerregistry`.
33 :meth:`~email.message.EmailMessage.set_boundary` method will raise this
35 :class:`~email.header.Header` may raise this error for certain base64
[all …]
Demail.generator.rst1 :mod:`email.generator`: Generating MIME documents
4 .. module:: email.generator
5 :synopsis: Generate flat text email messages from a message structure.
7 **Source code:** :source:`Lib/email/generator.py`
12 the email message represented by a message object structure. You will need to
18 As with the :mod:`email.parser` module, you aren't limited to the functionality
20 the bundled generator knows how to generate most email in a standards-compliant
21 way, should handle MIME and non-MIME email messages just fine, and is designed
23 assuming the same non-transforming :mod:`~email.policy` is used for both. That
25 :class:`~email.parser.BytesParser` class and then regenerating the serialized
[all …]
Demail.header.rst1 :mod:`email.header`: Internationalized headers
4 .. module:: email.header
7 **Source code:** :source:`Lib/email/header.py`
11 This module is part of the legacy (``Compat32``) email API. In the current API
13 dictionary-like API of the :class:`~email.message.EmailMessage` class. In
19 :rfc:`2822` is the base standard that describes the format of email messages.
21 a time when most email was composed of ASCII characters only. :rfc:`2822` is a
22 specification written assuming email contains only 7-bit ASCII characters.
24 Of course, as email has been deployed worldwide, it has become
26 email messages. The base standard still requires email messages to be
[all …]
Demail.encoders.rst1 :mod:`email.encoders`: Encoders
4 .. module:: email.encoders
5 :synopsis: Encoders for email message payloads.
7 **Source code:** :source:`Lib/email/encoders.py`
11 This module is part of the legacy (``Compat32``) email API. In the
13 the :meth:`~email.message.EmailMessage.set_content` method.
16 should not be called explicitly since the :class:`~email.mime.text.MIMEText`
22 When creating :class:`~email.message.Message` objects from scratch, you often
27 The :mod:`email` package provides some convenient encoders in its
29 :class:`~email.mime.audio.MIMEAudio` and :class:`~email.mime.image.MIMEImage`
Demail.iterators.rst1 :mod:`email.iterators`: Iterators
4 .. module:: email.iterators
7 **Source code:** :source:`Lib/email/iterators.py`
12 :meth:`Message.walk <email.message.Message.walk>` method. The
13 :mod:`email.iterators` module provides some useful higher level iterations over
27 <email.message.Message.get_payload>`.
53 import email
54 from email.iterators import _structure
59 >>> msg = email.message_from_file(somefile)
Demail.compat32-message.rst3 :mod:`email.message.Message`: Representing an email message using the :data:`~email.policy.compat32…
6 .. module:: email.message
7 :synopsis: The base class representing email messages in a fashion
13 :class:`~email.message.EmailMessage` class, without the methods added by that
16 :class:`~email.message.EmailMessage` class, are not recommended unless you are
22 policy :attr:`~email.policy.Compat32`. If you are going to use another policy,
23 you should be using the :class:`~email.message.EmailMessage` class instead.
25 An email message consists of *headers* and a *payload*. Headers must be
57 If *policy* is specified (it must be an instance of a :mod:`~email.policy`
60 <email.policy.Compat32>` policy, which maintains backward compatibility with
[all …]
/third_party/python/Lib/test/test_email/
Dtest_policy.py5 import email.errors
6 import email.policy
7 import email.parser
8 import email.generator
9 import email.message
10 from email import headerregistry
36 'header_factory': email.policy.EmailPolicy.header_factory,
38 'content_manager': email.policy.EmailPolicy.content_manager,
40 'message_factory': email.message.EmailMessage,
46 new_policy = email.policy.EmailPolicy()
[all …]
Dtest_email.py17 import email
18 import email.policy
20 from email.charset import Charset
21 from email.header import Header, decode_header, make_header
22 from email.parser import Parser, HeaderParser
23 from email.generator import Generator, DecodedGenerator, BytesGenerator
24 from email.message import Message
25 from email.mime.application import MIMEApplication
26 from email.mime.audio import MIMEAudio
27 from email.mime.text import MIMEText
[all …]
Dtest_parser.py2 import email
4 from email.message import Message, EmailMessage
5 from email.policy import default
19 msg = email.message_from_string("Subject: bogus\n\nmsg\n",
27 msg = email.message_from_file(source_file,
93 return email.message_from_file(f, *args, **kw)
96 parsers = (email.message_from_string, message_from_file)
99 return email.message_from_bytes(s.encode(), *args, **kw)
103 return email.message_from_binary_file(f, *args, **kw)
Dtest_pickleable.py5 import email
6 import email.message
7 from email import policy
8 from email.headerregistry import HeaderRegistry
48 msg_params['parsed'] = (email.message_from_string(textwrap.dedent("""\
57 msg_params['created'] = (email.message.Message(policy=policy.default),)
/third_party/node/tools/
Dupdate-authors.js45 author: match[1], email: match[2] property
49 mailmap.set(match[2].toLowerCase(), { email: match[1] }); property
53 author: match[1], email: match[2] property
59 author: match[1], email: match[2] property
74 /(^Author:|^Co-authored-by:)\s+(?<author>[^<]+)\s+(?<email><[^>]+>)/i;
79 let { author, email } = match.groups;
80 const emailLower = email.toLowerCase();
85 ({ author, email } = { author, email, ...replacement }); property
88 if (seen.has(email) ||
89 /@chromium\.org/.test(email) ||
[all …]
/third_party/libwebsockets/minimal-examples/api-tests/api-test-smtp_client/
Dmain.c19 email_sent_or_failed(struct lws_smtp_email *email, void *buf, size_t len) in email_sent_or_failed() argument
21 free(email); in email_sent_or_failed()
35 lws_smtp_email_t *email = (lws_smtp_email_t *) in smtp_test_instance_init() local
36 malloc(sizeof(*email) + 2048); in smtp_test_instance_init()
38 if (!email) in smtp_test_instance_init()
43 memset(email, 0, sizeof(*email)); in smtp_test_instance_init()
44 email->data = NULL /* email specific user data */; in smtp_test_instance_init()
45 email->email_from = "noreply@warmcat.com"; in smtp_test_instance_init()
46 email->email_to = "andy@warmcat.com"; in smtp_test_instance_init()
47 email->payload = (void *)&email[1]; in smtp_test_instance_init()
[all …]
/third_party/typescript/tests/cases/user/formik/
Dindex.tsx5 type MyData = {email: string, password: string};
27 email: '',
33 if (!values.email) {
34 errors.email = 'Required';
36 !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(values.email)
38 errors.email = 'Invalid email address';
70 type="email"
71 name="email"
74 value={values.email}
76 {touched.email && errors.email && <div>{errors.email}</div>}
/third_party/node/deps/npm/test/tap/
Dconfig-credentials.js80 email: undefined, property
115 email: 'ogd@aoaioxxysz.net' property
132 email: 'ogd@aoaioxxysz.net' property
167 email: 'ogd@aoaioxxysz.net' property
179 email: 'ogd@aoaioxxysz.net', property
197 email: 'ogd@aoaioxxysz.net' property
223 email: 'i@izs.me', property
239 email: 'ogd@aoaioxxysz.net', property
250 email: 'ogd@aoaioxxysz.net', property
268 email: 'ogd@aoaioxxysz.net', property
[all …]
/third_party/python/Lib/email/
Dcharset.py14 import email.base64mime
15 import email.quoprimime
17 from email import errors
18 from email.encoders import encode_7or8bit
362 return email.base64mime
364 return email.quoprimime
366 len64 = email.base64mime.header_length(header_bytes)
367 lenqp = email.quoprimime.header_length(header_bytes)
369 return email.base64mime
371 return email.quoprimime
[all …]
/third_party/typescript/tests/baselines/reference/convertToAsyncFunction/
DconvertToAsyncFunction_catchTypeArgument1.ts7 .resolve<APIResponse<{ email: string }>>({ success: true, data: { email: "" } })
8 .catch<APIResponse<{ email: string }>>(() => ({ success: false }));
18 .resolve<APIResponse<{ email: string; }>>({ success: true, data: { email: "" } });
20 const result: APIResponse<{ email: string; }> = ({ success: false });
/third_party/typescript/tests/baselines/reference/
DcomplicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.errors.txt5 …Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & Channel…
9 … Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
13 … type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
15 Type '"text" | "email"' is not assignable to type 'T & "text"'.
18 … type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
20 Type '"text" | "email"' is not assignable to type '"text"'.
21 Type '"email"' is not assignable to type '"text"'.
33 type: 'email';
63 !!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextC…
67 !!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<…
[all …]
/third_party/node/deps/npm/node_modules/npm-user-validate/
Dnpm-user-validate.js1 exports.email = email
13 email: {
48 function email (em) { function
50 return new Error(requirements.email.length)
53 return new Error(requirements.email.valid)
/third_party/node/deps/npm/lib/utils/
Dread-user-info.js10 exports.email = readEmail
60 function readEmail (msg, email, opts, isRetry) { argument
62 if (isRetry && email) {
63 const error = userValidate.email(email)
67 return email.trim()
71 return read({prompt: msg, default: email || ''})
/third_party/node/deps/npm/node_modules/normalize-package-data/lib/
Dfixer.js250 data.bugs = {email:data.bugs}
266 if(oldBugs.email) {
267 if(typeof(oldBugs.email) == "string" && emailRe.test(oldBugs.email))
268 data.bugs.email = oldBugs.email
273 if(!data.bugs.email && !data.bugs.url) {
354 var e = person.email || person.mail
355 var email = e ? (" <"+e+">") : ""
356 return name+email+url
363 var email = person.match(/<([^>]+)>/)
366 if (email) obj.email = email[1];

12345678910>>...27