]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: s/e-mail/email
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Dec 2021 10:02:18 +0000 (11:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Dec 2021 22:48:13 +0000 (23:48 +0100)
Consistency is king. Following the lead in everything curl.

Closes #8159

28 files changed:
docs/FEATURES.md
docs/INTERNALS.md
docs/KNOWN_BUGS
docs/MAIL-ETIQUETTE
docs/cmdline-opts/form.d
docs/cmdline-opts/mail-rcpt.d
docs/examples/imap-append.c
docs/examples/imap-authzid.c
docs/examples/imap-copy.c
docs/examples/imap-fetch.c
docs/examples/imap-search.c
docs/examples/imap-store.c
docs/examples/pop3-authzid.c
docs/examples/pop3-dele.c
docs/examples/pop3-retr.c
docs/examples/pop3-top.c
docs/examples/smtp-authzid.c
docs/examples/smtp-expn.c
docs/examples/smtp-mail.c
docs/examples/smtp-mime.c
docs/examples/smtp-vrfy.c
docs/libcurl/curl_mime_init.3
docs/libcurl/curl_mime_subparts.3
docs/libcurl/libcurl-tutorial.3
docs/libcurl/opts/CURLOPT_MIMEPOST.3
lib/imap.c
lib/smtp.c
tests/data/test648

index 38e2ac3ed320c85f312402719f80b3be98a3bb6b..a52d5da3a50cd7f6abea78de999c295ab330da28 100644 (file)
 
  - authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (9), Kerberos 5
    (4) and External.
- - send e-mails
+ - send emails
  - mail from support
  - mail size support
  - mail auth support for trusted server-to-server relaying
  - authentication: Clear Text, APOP and SASL
  - SASL based authentication: Plain, Login, CRAM-MD5, Digest-MD5, NTLM (9),
    Kerberos 5 (4) and External.
- - list e-mails
- - retrieve e-mails
+ - list emails
+ - retrieve emails
  - enhanced command support for: CAPA, DELE, TOP, STAT, UIDL and NOOP via
    custom requests
  - via http-proxy
    Kerberos 5 (4) and External.
  - list the folders of a mailbox
  - select a mailbox with support for verifying the UIDVALIDITY
- - fetch e-mails with support for specifying the UID and SECTION
- - upload e-mails via the append command
+ - fetch emails with support for specifying the UID and SECTION
+ - upload emails via the append command
  - enhanced command support for: EXAMINE, CREATE, DELETE, RENAME, STATUS,
    STORE, COPY and UID via custom requests
  - via http-proxy
index 875d7399836e0439b8249b4d5e54bda97f261047..b0f55de5e9048298bdd20f8f7ef9d0c8bc877b07 100644 (file)
@@ -357,7 +357,7 @@ LDAP
 E-mail
 ======
 
- The e-mail related source code is in `lib/imap.c`, `lib/pop3.c` and
+ The email related source code is in `lib/imap.c`, `lib/pop3.c` and
  `lib/smtp.c`.
 
 <a name="general"></a>
index 7987b5d367029c138c1129650074d2f00ca980ba..dabd8c005896d7b9a356f617353cd383020643b2 100644 (file)
@@ -570,7 +570,7 @@ problems may have been fixed or changed somewhat since this was written.
 6.4 Negotiate and Kerberos V5 need a fake user name
 
  In order to get Negotiate (SPNEGO) authentication to work in HTTP or Kerberos
- V5 in the e-mail protocols, you need to  provide a (fake) user name (this
+ V5 in the email protocols, you need to  provide a (fake) user name (this
  concerns both curl and the lib) because the code wrongly only considers
  authentication if there's a user name provided by setting
  conn->bits.user_passwd in url.c  https://curl.se/bug/view.cgi?id=440 How?
index 5cad67fea209e42a66f37249de0ea3adeb889daf..eef37d3398a9bdcf7af842eee0e04228a46a7f3b 100644 (file)
@@ -225,7 +225,7 @@ MAIL ETIQUETTE
       A: Because it messes up the order in which people normally read text.
       Q: Why is top-posting such a bad thing?
       A: Top-posting.
-      Q: What is the most annoying thing in e-mail?
+      Q: What is the most annoying thing in email?
 
   Apart from the screwed up read order (especially when mixed together in a
   thread when someone responds using the mandated bottom-posting style), it
index b7cd093dcbf5d4e000c4cabe24039b4d6c6d6d7b..12012daa66652fd011799c15f821f776f30b99e3 100644 (file)
@@ -107,7 +107,7 @@ followed by a content type specification.
 .br
 - a multipart can be terminated with a '=)' argument.
 
-Example: the following command sends an SMTP mime e-mail consisting in an
+Example: the following command sends an SMTP mime email consisting in an
 inline part in two alternative formats: plain text and HTML. It attaches a
 text file:
 
index 240f7e5c4fcba6da444857bddda7db53e4364061..8a3b43c154f607bfdf00481602002856cbac0e40 100644 (file)
@@ -7,7 +7,7 @@ Category: smtp
 Example: --mail-rcpt user@example.net smtp://example.com
 See-also: mail-rcpt-allowfails
 ---
-Specify a single e-mail address, user name or mailing list name. Repeat this
+Specify a single email address, user name or mailing list name. Repeat this
 option several times to send to multiple recipients.
 
 When performing an address verification (VRFY command), the recipient should be
index e36cb10c0b22055fb9068fad739ca957a4b9aae6..045f896b8b31358b04ce139afc15c9714a5bdb05 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to send e-mails
+ * IMAP example showing how to send emails
  * </DESC>
  */
 
index 12b566e89bd145a6e4ba81ad8cc7f3d03545109b..cfa6fe44802f7423e0f47ff5ffb8cd3959502714 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to retreieve e-mails from a shared mailed box
+ * IMAP example showing how to retreieve emails from a shared mailed box
  * </DESC>
  */
 
index 3efa71389a701ff3bd1ae3e85eff8119b7462953..4d3040381df95a95755a4728a5c2e73055608622 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to copy an e-mail from one folder to another
+ * IMAP example showing how to copy an email from one folder to another
  * </DESC>
  */
 
index 0fa584ae2aa80f0018d2c573c156c3ed2d87cc1f..d8356e23ca36b2200b94cffac0e91dd31143484f 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to retreieve e-mails
+ * IMAP example showing how to retreieve emails
  * </DESC>
  */
 
index da3f2f99dcc4f2756c7398c2d1b5719e8b28bd2f..2ef6941aae38b34b91c9a3680454af6d468dbbdb 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to search for new e-mails
+ * IMAP example showing how to search for new emails
  * </DESC>
  */
 
index 9a87a7993596a1839f409c767ebe0f251637aff2..fb45fc4036624f208cd39d9653c15089c2780051 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * IMAP example showing how to modify the properties of an e-mail
+ * IMAP example showing how to modify the properties of an email
  * </DESC>
  */
 
index 55a9ef6192a1826f0ec98f6f1c28e7a24ed8b390..45e36362f5802fb2d96693b5ee787c7e4fd08cf0 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * POP3 example showing how to retrieve e-mails from a shared mailbox
+ * POP3 example showing how to retrieve emails from a shared mailbox
  * </DESC>
  */
 
index ce6deee2059deaa9483fbdc7f7ff4590e2c1fca1..ff732d14c878619be6ee029a1c5166df77a78e29 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * POP3 example showing how to delete e-mails
+ * POP3 example showing how to delete emails
  * </DESC>
  */
 
index aef20d49e67679345de0198c11ddf4225485f58a..39b0e96a407edaff6d5d37ad0482203034106148 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * POP3 example showing how to retrieve e-mails
+ * POP3 example showing how to retrieve emails
  * </DESC>
  */
 
index 56d76a61a86028b6cba5ef4d0157dcb902f6be45..696570b8d908a9579a7c22dc368c3271cada40a9 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * POP3 example showing how to retrieve only the headers of an e-mail
+ * POP3 example showing how to retrieve only the headers of an email
  * </DESC>
  */
 
index b315b215c7486f3443fc3bb05a26404c29f8e08e..e3b95114b856415df336663b84112cac41bb88e2 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * Send e-mail on behalf of another user with SMTP
+ * Send email on behalf of another user with SMTP
  * </DESC>
  */
 
index 2c11c4f84e430045984847933062838369c7e961..f02b56d1d187276d24d5460879646c249363b6ad 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * SMTP example showing how to expand an e-mail mailing list
+ * SMTP example showing how to expand an email mailing list
  * </DESC>
  */
 
@@ -29,7 +29,7 @@
 #include <string.h>
 #include <curl/curl.h>
 
-/* This is a simple example showing how to expand an e-mail mailing list.
+/* This is a simple example showing how to expand an email mailing list.
  *
  * Notes:
  *
index 2c0cfb2531c17b6e72942490ebd49533c2331c01..df50f80f6afc3f4d2c084a4552e27fd573395bdb 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * Send e-mail with SMTP
+ * Send email with SMTP
  * </DESC>
  */
 
index 564f920d289aa9d3df57b6d42506e41670ef7142..91dfe0530767804aa9094f0ce7e41e37a93a45cc 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * SMTP example showing how to send mime e-mails
+ * SMTP example showing how to send mime emails
  * </DESC>
  */
 
@@ -52,17 +52,17 @@ static const char *headers_text[] = {
 };
 
 static const char inline_text[] =
-  "This is the inline text message of the e-mail.\r\n"
+  "This is the inline text message of the email.\r\n"
   "\r\n"
-  "  It could be a lot of lines that would be displayed in an e-mail\r\n"
+  "  It could be a lot of lines that would be displayed in an email\r\n"
   "viewer that is not able to handle HTML.\r\n";
 
 static const char inline_html[] =
   "<html><body>\r\n"
-  "<p>This is the inline <b>HTML</b> message of the e-mail.</p>"
+  "<p>This is the inline <b>HTML</b> message of the email.</p>"
   "<br />\r\n"
   "<p>It could be a lot of HTML data that would be displayed by "
-  "e-mail viewers able to handle HTML.</p>"
+  "email viewers able to handle HTML.</p>"
   "</body></html>\r\n";
 
 
@@ -109,7 +109,7 @@ int main(void)
     mime = curl_mime_init(curl);
 
     /* The inline part is an alternative proposing the html and the text
-       versions of the e-mail. */
+       versions of the email. */
     alt = curl_mime_init(curl);
 
     /* HTML message. */
index 26819a50af820cfbd6fff820368f6f8b22263188..3720351d315d7a9bb1ad2e282eddf7d3529d119c 100644 (file)
@@ -21,7 +21,7 @@
  ***************************************************************************/
 
 /* <DESC>
- * SMTP example showing how to verify an e-mail address
+ * SMTP example showing how to verify an email address
  * </DESC>
  */
 
@@ -29,7 +29,7 @@
 #include <string.h>
 #include <curl/curl.h>
 
-/* This is a simple example showing how to verify an e-mail address from an
+/* This is a simple example showing how to verify an email address from an
  * SMTP server.
  *
  * Notes:
index 9a553aa73e713095c57262982ded7a1c96ab2eca..fbce2b2f89c6af1c6a1e87e082cfd8ff54f8b155 100644 (file)
@@ -36,7 +36,7 @@ using option \fICURLOPT_MIMEPOST(3)\fP within a \fIcurl_easy_setopt(3)\fP
 call.
 
 Using a mime handle is the recommended way to post an HTTP form, format and
-send a multi-part e-mail with SMTP or upload such an e-mail to an IMAP server.
+send a multi-part email with SMTP or upload such an email to an IMAP server.
 .SH EXAMPLE
 .nf
  CURL *easy = curl_easy_init();
index 06c331f7923443b885d93cd6af431ee12b993807..af842dbdf568fcdcf782cf28f59519e40ac29d39 100644 (file)
@@ -45,7 +45,7 @@ is retained. It is possible to unassign previous part's contents by setting
 .SH EXAMPLE
 .nf
  /* The inline part is an alternative proposing the html and the text
-    versions of the e-mail. */
+    versions of the email. */
  alt = curl_mime_init(curl);
 
  /* HTML message. */
index c031968b0a59f4a5c3561c62c6f8143caadd838d..266495b44ee4b2bc4e07b00e6a4ea16705479d1b 100644 (file)
@@ -1188,12 +1188,12 @@ this behavior by setting \fICURLOPT_FTP_USE_EPRT(3)\fP to zero.
 
 .SH "MIME API revisited for SMTP and IMAP"
 In addition to support HTTP multi-part form fields, the MIME API can be used
-to build structured e-mail messages and send them via SMTP or append such
+to build structured email messages and send them via SMTP or append such
 messages to IMAP directories.
 
-A structured e-mail message may contain several parts: some are displayed
+A structured email message may contain several parts: some are displayed
 inline by the MUA, some are attachments. Parts can also be structured as
-multi-part, for example to include another e-mail message or to offer several
+multi-part, for example to include another email message or to offer several
 text formats alternatives. This can be nested to any level.
 
 To build such a message, you prepare the nth-level multi-part and then include
@@ -1202,19 +1202,19 @@ it as a source to the parent multi-part using function
 bound to its parent multi-part, a nth-level multi-part belongs to it and
 should not be freed explicitly.
 
-E-mail messages data is not supposed to be non-ascii and line length is
-limited: fortunately, some transfer encodings are defined by the standards
-to support the transmission of such incompatible data. Function
+Email messages data is not supposed to be non-ascii and line length is
+limited: fortunately, some transfer encodings are defined by the standards to
+support the transmission of such incompatible data. Function
 \fIcurl_mime_encoder(3)\fP tells a part that its source data must be encoded
 before being sent. It also generates the corresponding header for that part.
-If the part data you want to send is already encoded in such a scheme,
-do not use this function (this would over-encode it), but explicitly set the
+If the part data you want to send is already encoded in such a scheme, do not
+use this function (this would over-encode it), but explicitly set the
 corresponding part header.
 
 Upon sending such a message, libcurl prepends it with the header list
 set with \fICURLOPT_HTTPHEADER(3)\fP, as 0th-level mime part headers.
 
-Here is an example building an e-mail message with an inline plain/html text
+Here is an example building an email message with an inline plain/html text
 alternative and a file attachment encoded in base64:
 
 .nf
index cb4b00bdb0f06ab37cba3fd45d414d5e65414ce2..8956be7df42a1d75d000827cf70fc3bbdc649597 100644 (file)
@@ -34,7 +34,7 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MIMEPOST, mime);
 Pass a mime handle previously obtained from \fIcurl_mime_init(3)\fP.
 
 This setting is supported by the HTTP protocol to post forms and by the
-SMTP and IMAP protocols to provide the e-mail data to send/upload.
+SMTP and IMAP protocols to provide the email data to send/upload.
 
 This option is the preferred way of posting an HTTP form, replacing and
 extending the deprecated \fICURLOPT_HTTPPOST(3)\fP option.
index bea964f79a9877311bc1f79b4924d1a4233dc009..958ad1456c1b85d451bd6ab8d8deb3320a0f5849 100644 (file)
@@ -329,7 +329,7 @@ static bool imap_endofresp(struct Curl_easy *data, struct connectdata *conn,
   /* Do we have a continuation response? This should be a + symbol followed by
      a space and optionally some text as per RFC-3501 for the AUTHENTICATE and
      APPEND commands and as outlined in Section 4. Examples of RFC-4959 but
-     some e-mail servers ignore this and only send a single + instead. */
+     some email servers ignore this and only send a single + instead. */
   if(imap && !imap->custom && ((len == 3 && line[0] == '+') ||
      (len >= 2 && !memcmp("+ ", line, 2)))) {
     switch(imapc->state) {
index 8e0b0460968ede8581d93230044379321501699d..6c0829378350eb7ecb7906acc8e94634bbe39e85 100644 (file)
@@ -222,7 +222,7 @@ static bool smtp_endofresp(struct Curl_easy *data, struct connectdata *conn,
 
   /* Do we have a command response? This should be the response code followed
      by a space and optionally some text as per RFC-5321 and as outlined in
-     Section 4. Examples of RFC-4954 but some e-mail servers ignore this and
+     Section 4. Examples of RFC-4954 but some email servers ignore this and
      only send the response code instead as per Section 4.2. */
   if(line[3] == ' ' || len == 5) {
     char tmpline[6];
index 15a75e7cd19258ce87c6e219c0ac7bd712f85973..3683530d749bd9ae5c94269ed76a4d5a323f38cf 100644 (file)
@@ -27,7 +27,7 @@ To: another
 body\r
 </stdin>
  <command>
-smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F '=This is the e-mail inline text with a very long line containing the special character = and that should be split by encoder.;headers=Content-disposition: "inline";encoder=quoted-printable' -F "=@log/test%TESTNUMBER.txt;encoder=base64" -H "From: different" -H "To: another"
+smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F '=This is the email inline text with a very long line containing the special character = and that should be split by encoder.;headers=Content-disposition: "inline";encoder=quoted-printable' -F "=@log/test%TESTNUMBER.txt;encoder=base64" -H "From: different" -H "To: another"
 </command>
 <file name="log/test%TESTNUMBER.txt">
 This is an attached file.
@@ -60,8 +60,8 @@ To: another
 Content-Transfer-Encoding: quoted-printable\r
 Content-disposition: "inline"\r
 \r
-This is the e-mail inline text with a very long line containing the special=\r
- character =3D and that should be split by encoder.\r
+This is the email inline text with a very long line containing the special =\r
+character =3D and that should be split by encoder.\r
 ------------------------------\r
 Content-Disposition: attachment; filename="test%TESTNUMBER.txt"\r
 Content-Transfer-Encoding: base64\r