diff --git a/doc/dns.html b/doc/dns.html index fa4c230..67b24ca 100644 --- a/doc/dns.html +++ b/doc/dns.html @@ -118,7 +118,7 @@ message.
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:46:57 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:04 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sun Aug 10 01:36:26 PDT 2003
+Thu Jun 17 02:47:14 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
+mime.stuff()
+
+Creates and returns a filter that performs stuffing of SMTP messages. +
+ ++Note: The smtp.send function +uses this filter automatically. You don't need to chain it with your +source, or apply it to your message body. +
+@@ -232,33 +248,36 @@ print((mime.b64("diego:password")))
-A, B = mime.dot(C [, D]) +A, n = mime.dot(m [, B])
-Low-level filter to perform Base64 encoding. +Low-level filter to perform SMTP stuffing and enable transmission of +messages containing the sequence "CRLF.CRLF".
--A is the encoded version of the largest prefix of -C..D -that can be encoded unambiguously. B has the remaining bytes of -C..D, before encoding. -If D is nil, A is padded with -the encoding of the remaining bytes of C. +
+A is the stuffed version of B. 'n' gives the +number of characters from the sequence CRLF seen in the end of B. +'m' should tell the same, but for the previous chunk.
--Note: The simplest use of this function is to encode a string into it's -Base64 transfer content encoding. Notice the extra parenthesis around the -call to mime.b64, to discard the second return value. +
Note: The message body is defined to begin with +an implicit CRLF. Therefore, to stuff a message correctly, the +first m should have the value 2.
-print((mime.b64("diego:password"))) ---> ZGllZ286cGFzc3dvcmQ= +print((string.gsub(mime.dot(2, ".\r\nStuffing the message.\r\n.\r\n."), "\r\n", "\\n"))) +--> ..\nStuffing the message.\n..\n..+
+Note: The smtp.send function +uses this filter automatically. You don't need to +apply it again. +
+@@ -273,7 +292,7 @@ context the function receives besides the chunk. An updated version of the context is returned after each new chunk.
-+
A is the translated version of D. C is the ASCII value of the last character of the previous chunk, if it was a candidate for line break, or 0 otherwise. @@ -296,7 +315,7 @@ A, B = mime.qp(C [, D, marker]) Low-level filter to perform Quoted-Printable encoding.
-+
A is the encoded version of the largest prefix of C..D that can be encoded unambiguously. B has the remaining bytes of @@ -328,7 +347,7 @@ A, m = mime.qpwrp(n [, B, length]) Low-level filter to break Quoted-Printable text into lines.
-+
A is a copy of B, broken into lines of at most length bytes (defaults to 76). 'n' should tell how many bytes are left for the first @@ -352,7 +371,7 @@ A, B = mime.unb64(C [, D]) Low-level filter to perform Base64 decoding.
-+
A is the decoded version of the largest prefix of C..D that can be decoded unambiguously. B has the remaining bytes of @@ -383,7 +402,7 @@ Low-level filter to remove the Quoted-Printable transfer content encoding from data.
-+
A is the decoded version of the largest prefix of C..D that can be decoded unambiguously. B has the remaining bytes of @@ -414,7 +433,7 @@ Low-level filter to break text into lines with CRLF marker. Text is assumed to be in the normalize form.
-+
A is a copy of B, broken into lines of at most length bytes (defaults to 76). 'n' should tell how many bytes are left for the first @@ -443,7 +462,7 @@ marker.
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
low-level: b64, -unb64, +dot, eol, qp, -unqp, wrp, qpwrp. +unb64, +unqp,@@ -218,7 +220,7 @@
Last modified by Diego Nehab on
-Thu Sep 27 16:18:27 EST 2001
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:47:21 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:48:14 EDT 2004
Last modified by Diego Nehab on
-Sat Aug 9 01:00:41 PDT 2003
+Thu Jun 17 02:48:14 EDT 2004