The Lambda Lab
/
projects
/
lambdamail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7fc7be
)
Preserve newlines in messages.
author
Tim Vaughan
<tgvaughan@gmail.com>
Thu, 22 Aug 2019 14:15:50 +0000
(16:15 +0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Thu, 22 Aug 2019 14:15:50 +0000
(16:15 +0200)
lambdamail.scm
patch
|
blob
|
history
diff --git
a/lambdamail.scm
b/lambdamail.scm
index
ce5b188
..
c47c145
100644
(file)
--- a/
lambdamail.scm
+++ b/
lambdamail.scm
@@
-103,7
+103,7
@@
(if (string=? "." text-line)
(message-text-set! msg text)
(text-loop (smtp 'get-line)
- (conc text text-line))))
+ (conc text
"\n"
text-line))))
(deliver-message msg config)
(smtp 'ok)
(loop (make-empty-message)
@@
-122,7
+122,7
@@
;;; Message delivery
;;
-
+
(define (deliver-message msg config)
(print "Message delivered:")
(print " * From: " (message-from msg))