From 703796d033c6c0579dd7be1939087e6cf5cbe679 Mon Sep 17 00:00:00 2001 From: Daniel Semyonov Date: Sat, 1 May 2021 17:03:07 +0300 Subject: [PATCH] * lisp/net/mairix.el: Use `mairix-search-options' as documented. `mairix-search' is documented to call `mairix-command' together with the options specified in `mairix-search-options'. However, the previous implementation made no use of `mairix-search-options', requiring the user to customize `mairix-command' in order to pass options to mairix(1). --- lisp/net/mairix.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el index adc41b6068..e1d35c2a85 100644 --- a/lisp/net/mairix.el +++ b/lisp/net/mairix.el @@ -531,8 +531,11 @@ mairix-call-mairix If FILE is nil, use default. If THREADS is non-nil, also return whole threads. Function returns t if messages were found." (let* ((commandsplit (split-string mairix-command)) - (args (cons (car commandsplit) - `(nil ,(get-buffer-create mairix-output-buffer) nil))) + (args (cons + (car commandsplit) + (append + `(nil ,(get-buffer-create mairix-output-buffer) nil) + mairix-search-options))) rval) (with-current-buffer mairix-output-buffer (erase-buffer)) -- 2.31.1