|
|
|
|
131
|
(cl-ppcre:scan regex string)))
|
131
|
(cl-ppcre:scan regex string)))
|
132
|
|
132
|
|
133
|
(defun message-match (message pattern)
|
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
|
(loop for line = (read-line stream nil 'eof) do
|
138
|
(loop for line = (read-line stream nil 'eof) do
|
138
|
(or (eq line 'eof) (setf test (funcall test-func line)))
|
139
|
(or (eq line 'eof) (setf test (funcall test-func line)))
|
139
|
until (or (eq line 'eof) test))
|
140
|
until (or (eq line 'eof) test))
|