|
@@ -131,9 +131,10 @@
|
131
|
131
|
(cl-ppcre:scan regex string)))
|
132
|
132
|
|
133
|
133
|
(defun message-match (message pattern)
|
134
|
|
- (let ((test-func (make-message-regex-test (gethash "regex" pattern)))
|
135
|
|
- (stream (mel:message-header-stream message))
|
136
|
|
- (test))
|
|
134
|
+ (let* ((test-func (make-message-regex-test (gethash "regex" pattern)))
|
|
135
|
+ (sb-impl::*default-external-format* :latin-1)
|
|
136
|
+ (stream (mel:message-header-stream message))
|
|
137
|
+ (test))
|
137
|
138
|
(loop for line = (read-line stream nil 'eof) do
|
138
|
139
|
(or (eq line 'eof) (setf test (funcall test-func line)))
|
139
|
140
|
until (or (eq line 'eof) test))
|