bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] Guile 2.2 bindings: error when printing message obje


From: Ricardo Wurmus
Subject: Re: [bug-mailutils] Guile 2.2 bindings: error when printing message object.
Date: Sat, 25 Aug 2018 10:15:05 +0200
User-agent: mu4e 1.0; emacs 26.1

Hi Sergey,

>> scheme@(guile-user)> (call-with-input-file "bug_32514_message_8.mbox"
>> mu-message-from-port)
>> $1 = #<message "address@hidden" "Fri Aug 24 06:39" ERROR: In procedure write:
>> Wrong type (expecting exact integer): #<closed: file 14ef0e0>
>
> It appears that the port opened by call-with-input-file got closed prior
> to being used by mu-message-from-port. That function protects its argument
> port by being collected by gc, but that doesn't help when the port is
> closed explicitly after calling the function. I will fix it. In the
> meantime, please use this workaround:
>
>   (call-with-input-file "bug_32514_message_8.mbox"
>     (lambda (port)
>       (mu-message-from-port (duplicate-port port "r"))))

This works for now.  Thank you for the suggestion and for working on a
fix!

--
Ricardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]