Browse code
minor update
jkf authored on 08/06/2000 14:41:00
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -19,7 +19,7 @@ |
19 | 19 |
;; Commercial Software developed at private expense as specified in |
20 | 20 |
;; DOD FAR Supplement 52.227-7013 (c) (1) (ii), as applicable. |
21 | 21 |
;; |
22 |
-;; $Id: imap.cl,v 1.15 2000/06/08 14:31:11 jkf Exp $ |
|
22 |
+;; $Id: imap.cl,v 1.16 2000/06/08 14:41:00 jkf Exp $ |
|
23 | 23 |
|
24 | 24 |
;; Description: |
25 | 25 |
;; |
... | ... |
@@ -1358,7 +1358,8 @@ |
1358 | 1358 |
(concatenate 'string (cdr (car headers)) |
1359 | 1359 |
" " |
1360 | 1360 |
value))))))) |
1361 |
- headers)) |
|
1361 |
+ (values headers |
|
1362 |
+ (subseq text next end)))) |
|
1362 | 1363 |
|
1363 | 1364 |
|
1364 | 1365 |
(defun make-envelope-from-text (text) |
... | ... |
@@ -1018,11 +1018,13 @@ will contain the current count of messages in the mailbox.</p> |
1018 | 1018 |
|
1019 | 1019 |
<p><strong>text</strong> is a string that is the first part of a mail message, including |
1020 | 1020 |
at least all of the headers lines and the blank line following the headers. This |
1021 |
-function parses the header lines and returns an assoc list where each item has the form <strong> |
|
1022 |
-(header . value)</strong>. Both the <strong>header</strong> and <strong>value</strong> |
|
1021 |
+function parses the header lines and returns an assoc list where each item has the form <strong>(header |
|
1022 |
+. value)</strong>. Both the <strong>header</strong> and <strong>value</strong> |
|
1023 | 1023 |
are strings. Note that header names will most likely be mixed case (but this is not |
1024 | 1024 |
a requirment) so you'll want to use <strong>:test #'equalp</strong> when searching for a |
1025 |
-particular header with <strong>assoc</strong>. </p> |
|
1025 |
+particular header with <strong>assoc</strong>. <strong>parse-mail-header</strong> |
|
1026 |
+returns as a second value a string that is everything after the headers (which is often |
|
1027 |
+referred to as the body of the message).</p> |
|
1026 | 1028 |
|
1027 | 1029 |
<p> </p> |
1028 | 1030 |
|