Explorar el Código

Fix maildir name parsing

Lily Carpenter hace 9 años
padre
commit
16feb0f5d0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      mailfilter-parse.lisp

+ 2 - 2
mailfilter-parse.lisp

69
      until (or (eq line 'eof) (funcall test-func line))))
69
      until (or (eq line 'eof) (funcall test-func line))))
70
 
70
 
71
 (defun convert-maildir-value (value)
71
 (defun convert-maildir-value (value)
72
-  (remove #\" (cl-ppcre:regex-replace-all "${HOME}" value (user-homedir-pathname))))
72
+  (pathname (remove #\" (cl-ppcre:regex-replace-all "\\${HOME}" value (princ-to-string (user-homedir-pathname))))))
73
 
73
 
74
 (defun set-maildir (line hash)
74
 (defun set-maildir (line hash)
75
-  (let ((maildir (convert-maildir-value (car (last (split-sequence:split-sequence "=" line))))))
75
+  (let ((maildir (convert-maildir-value (car (last (split-sequence:split-sequence #\= line))))))
76
     (setf (gethash "maildir" hash) maildir)
76
     (setf (gethash "maildir" hash) maildir)
77
     (setf *maildir* maildir)))
77
     (setf *maildir* maildir)))
78
 
78