Browse code
parse mail header fix
jkf authored on 11/02/2002 18:08:51
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.18 2001/06/26 21:01:09 jkf Exp $ |
|
22 |
+;; $Id: imap.cl,v 1.19 2002/02/11 18:08:51 jkf Exp $ |
|
23 | 23 |
|
24 | 24 |
;; Description: |
25 | 25 |
;; |
... | ... |
@@ -1321,6 +1321,10 @@ |
1321 | 1321 |
(if* (eq ch #\linefeed) |
1322 | 1322 |
then ; empty continuation line, ignore |
1323 | 1323 |
(incf next) |
1324 |
+ (if* header |
|
1325 |
+ then ; header and no value |
|
1326 |
+ (setq value "") |
|
1327 |
+ (return :start)) |
|
1324 | 1328 |
(go again) |
1325 | 1329 |
elseif (not (member ch |
1326 | 1330 |
(member ch |
... | ... |
@@ -1332,6 +1336,7 @@ |
1332 | 1336 |
(3 ; reading the header |
1333 | 1337 |
(if* (eq ch #\linefeed) |
1334 | 1338 |
then ; bogus header line, ignore |
1339 |
+ (setq state 1) |
|
1335 | 1340 |
(go again) |
1336 | 1341 |
elseif (eq ch #\:) |
1337 | 1342 |
then (setq header |