GNU bug report logs -
#75628
31.0.50; Error sending mail using SMTP - base64 encoding fails
Previous Next
Reported by: Ingo Brunberg <ingo_brunberg <at> web.de>
Date: Fri, 17 Jan 2025 10:20:02 UTC
Severity: normal
Tags: fixed
Found in version 31.0.50
Fixed in version 31.1
Done: Robert Pluim <rpluim <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 75628 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Fri, 17 Jan 2025 14:55:55 +0200, Eli Zaretskii <eliz <at> gnu.org> said:
>> Date: Fri, 17 Jan 2025 10:18:52 +0000
>> From: Ingo Brunberg via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>> When I try to send mail with emacs using SMTP, I get error "Multibyte character
>> in data for base64 encoding".
>>
>> In the current code I have narrowed it down to line 637 in smtpmail.el, where an
>> attempt is made to base64 encode a string containing the password which, of
>> course, can contain multibyte characters.
>>
>> With a simple password some time ago, I could send mail.
Eli> Thanks, but please show a complete recipe, preferably starting from
Eli> "emacs -Q".
Eli> base64 encoding indeed requires its input to be a unibyte string, but
Eli> it is impossible to guess how this failed to happen without seeing the
Eli> sequence of commands you typed to trigger the problem.
If the password is coming from 'auth-source', it will be a multibyte
string:
ELISP> (auth-info-password (car (auth-source-search :host "test")))
"bär"
ELISP> (multibyte-string-p (auth-info-password (car (auth-source-search :host "test"))))
t
Robert
--
This bug report was last modified 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.