From 5af020ec2f2d45f9e81eeb7ed5d7e4199ffcde5f Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 22 May 2013 21:36:14 +0300 Subject: [PATCH] * mu4e: make mu4e~proc-extract deal witn non-string params --- mu4e/mu4e-proc.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 88ff46cf..b6a637cd 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -449,7 +449,7 @@ The result will be delivered to the function registered as "Extract an attachment with index PARTIDX from message with DOCID and perform ACTION on it (as symbol, either `save', `open', `temp') which mean: - * save: save the part to PARAM1 (a path) (non-optional for save) + * save: save the part to PARAM1 (a path) (non-optional for save)$ * open: open the part with the default application registered for doing so * temp: save to a temporary file, then respond with (:temp :what :param )." @@ -463,7 +463,10 @@ mean: (temp (format "action:temp docid:%d index:%d what:%s%s" docid partidx what - (if param (format " param:%s" (mu4e~proc-escape param)) ""))) + (if param + (if (stringp param) + (format " param:%s" (mu4e~proc-escape param)) + (format " param:%S" param)) ""))) (otherwise (mu4e-error "Unsupported action %S" action)))))) (mu4e~proc-send-command "%s" cmd)))