[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: resend message: Wrong type argument: stringp, mail-user-name
From: |
Gijs Hillenius |
Subject: |
Re: resend message: Wrong type argument: stringp, mail-user-name |
Date: |
Wed, 19 Nov 2014 20:22:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
On 19 Nov 2014, Tassilo Horn wrote:
> Gijs Hillenius <gijs@hillenius.net> writes:
>
> Hi Gijs,
>
>> This is most likely a local bug: when I want to resend an email, I do
>> `SDr`. Invariably, when hitting C-c C-c, the result is
>> "message-make-from: Wrong type argument: stringp, mail-user-name"
>>
>> Alternatively, SDe just works.
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp
>> mail-user-name) string-match("[^- !#-'*+/-9=?A-Z^-~]" mail-user-name)
>> message-make-from()
>
> Looking at the code, the line with the error is
>
> (string-match "[^- !#-'*+/-9=?A-Z^-~]" fullname)
>
> where fullname is let-bound to
>
> (or name
> (and (boundp 'user-full-name)
> user-full-name)
> (user-full-name))
>
> `name' is not provided according to your backtrace. So I guess you
> have somewhere in your init file
>
> (setq user-full-name 'mail-user-name)
>
> whereas you probably wanted to write
>
> (setq user-full-name mail-user-name)
>
> That is, you accidentally set `user-full-name' to the symbol
> mail-user-name instead to the value of that variable.
Thanks!
Lemme check. Hm.
I have it set as described in the manual:
(setq user-full-name "Your Name")
But, eh, I also use
message-alternative-emails
which the manual shows takes precedence over styles that ran off
message-setup-hook. Perhaps that is what throws the spanner?