Cannot save attachments.

25 views
Skip to first unread message

Jay Dresser

unread,
Mar 24, 2015, 3:10:39 AM3/24/15
to mu-di...@googlegroups.com
I used to be able to save attachments, but now it does not work.
I can open them, and if it takes me to LibreOffice I can Save As.

If I Mouse2 on the attachment link it opens the Save As dialog and I click OK but it fails.
If I type "e <RET>" it also fails.
In both cases it prints.
mu4e~proc-escape: Wrong type argument: arrayp, nil

The doc for that function says that it escapes strings, but I don't see anything in the filename or anything worth escaping.

I do have (setq mu4e-attachment-dir  "~/Downloads")
set per the manual.

Any clues as to what this could be?

Dirk-Jan C. Binnema

unread,
Mar 24, 2015, 3:22:25 AM3/24/15
to mu-di...@googlegroups.com

On Tuesday Mar 24 2015, Jay Dresser wrote:

> I used to be able to save attachments, but now it does not work.
> I can open them, and if it takes me to LibreOffice I can Save As.
>
> If I Mouse2 on the attachment link it opens the Save As dialog and I click
> OK but it fails.
> If I type "e <RET>" it also fails.
> In both cases it prints.
> *mu4e~proc-escape: Wrong type argument: arrayp, nil*
>
> The doc for that function says that it escapes strings, but I don't see
> anything in the filename or anything worth escaping.
>
> I do have *(setq mu4e-attachment-dir "~/Downloads")*
> set per the manual.
>
> Any clues as to what this could be?

What version are you using? And can you do an M-x toggle-debug-on-error,
then try to reproduce and share the backtrace?

Cheers,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Jay Dresser

unread,
Mar 24, 2015, 2:52:57 PM3/24/15
to mu-di...@googlegroups.com
Thanks, Dirk

mu4e: 0.9.10, emacs 24.4.1

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  replace-regexp-in-string("\\\\" "\\\\\\\\" nil)
  mu4e~proc-escape(nil)
  mu4e~proc-extract(save 138684 1 "/home/jay/Downloads/conky.txt")
  mu4e-view-save-attachment-single((:docid 138684 :subject "test mail with attachment" :date (21777 44724 0) :size 2670 :message-id "87a8z25...@jaydresser.us" :path "/home/jay/Mail/INBOX/cur/msg.uqCdB:2,S" :maildir "/INBOX" :priority normal :flags (seen attach) :parts ((:index 0 :name "0.part" :mime-type "text/plain" :type (leaf) :attachment nil :size 21) (:index 1 :name "conky.txt" :mime-type "text/plain" :type (leaf attachment) :attachment t :size 10)) :from (("Jay Dresser" . "mu...@jaydresser.us")) :to (("Jay Dresser" . "mu...@jaydresser.us")) :body-txt "\nfoo\n\n--\nJay Dresser\n") 1)
  mu4e~view-save-attach-from-binding()
  call-interactively(mu4e~view-save-attach-from-binding nil nil)
  command-execute(mu4e~view-save-attach-from-binding)


On Tuesday, March 24, 2015 at 12:22:25 AM UTC-7, djcb wrote:

On Tuesday Mar 24 2015, Jay Dresser wrote:

> I used to be able to save attachments, but now it does not work.
> I can open them, and if it takes me to LibreOffice I can Save As.
>
> If I Mouse2 on the attachment link it opens the Save As dialog and I click
> OK but it fails.
> If I type "e <RET>" it also fails.
> In both cases it prints.
> *mu4e~proc-escape: Wrong type argument: arrayp, nil*
>
> The doc for that function says that it escapes strings, but I don't see
> anything in the filename or anything worth escaping.
>
> I do have *(setq mu4e-attachment-dir  "~/Downloads")*
> set per the manual.
>
> Any clues as to what this could be?

What version are you using? And can you do an M-x toggle-debug-on-error,
then try to reproduce and share the backtrace?

Cheers,
Dirk.

--
Dirk-Jan C. Binnema                  Helsinki, Finland

Dirk-Jan C. Binnema

unread,
Mar 26, 2015, 3:16:44 AM3/26/15
to mu-di...@googlegroups.com

On Tuesday Mar 24 2015, Jay Dresser wrote:

> Thanks, Dirk
>
> mu4e: 0.9.10, emacs 24.4.1
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
> replace-regexp-in-string("\\\\" "\\\\\\\\" nil)
> mu4e~proc-escape(nil)
> mu4e~proc-extract(save 138684 1 "/home/jay/Downloads/conky.txt")
> mu4e-view-save-attachment-single((:docid 138684 :subject "test mail with
> attachment" :date (21777 44724 0) :size 2670 :message-id
> "87a8z25...@jaydresser.us" :path
> "/home/jay/Mail/INBOX/cur/msg.uqCdB:2,S" :maildir "/INBOX" :priority normal
> :flags (seen attach) :parts ((:index 0 :name "0.part" :mime-type
> "text/plain" :type (leaf) :attachment nil :size 21) (:index 1 :name
> "conky.txt" :mime-type "text/plain" :type (leaf attachment) :attachment t
> :size 10)) :from (("Jay Dresser" . "mu...@jaydresser.us")) :to (("Jay
> Dresser" . "mu...@jaydresser.us")) :body-txt "\nfoo\n\n--\nJay Dresser\n") 1)
> mu4e~view-save-attach-from-binding()
> call-interactively(mu4e~view-save-attach-from-binding nil nil)
> command-execute(mu4e~view-save-attach-from-binding)

Hmm, that's odd, seems the call the mu4e~proc-extract does not include the
fourth parameter. Note sure how that could happen...

(mu4e~proc-extract
'save (mu4e-message-field msg :docid) index mu4e-decryption-policy fpath)

Can you try again with 0.9.11?

Cheers,
Dirk.


--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl

Jay Dresser

unread,
Mar 26, 2015, 7:46:21 PM3/26/15
to mu-di...@googlegroups.com
On Thursday, March 26, 2015 at 12:16:44 AM UTC-7, djcb wrote:

Hmm, that's odd, seems the call the mu4e~proc-extract does not include the
fourth parameter. Note sure how that could happen...

    (mu4e~proc-extract
      'save (mu4e-message-field msg :docid) index mu4e-decryption-policy fpath)

Can you try again with 0.9.11?

Cheers,
Dirk

That seemed to do it.
The problem is fixed in 0.9.11.
Thanks again.

Reply all
Reply to author
Forward
0 new messages