From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 16946@debbugs.gnu.org
Subject: bug#16946: 24.3; Rmail behaviour with a username containing "@"
Date: Sun, 06 Dec 2020 23:50:32 +0000 [thread overview]
Message-ID: <87k0tufq9j.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <87czznca5p.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 06 Dec 2020 14:54:26 +0100)
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Robert Thorpe <rt@robertthorpeconsulting.com> writes:
>
>> I think it's caused by movemail from GNU Mailutils though. Mailutils
>> can't deal with two "@" symbols (one in the username and another for the
>> server). I can replicate this by using movemail on the command line
>> without any Emacs involvement. I think this is a bug in mailutils.
>> Would you agree? If so I'll report it.
>
> I'm not quite sure. As you point out:
I think that the GNU Mailutils manual should at least mention that it's
necessary. Ideally though, there should be another options format which
splits up the information in a more sensible way. One where the server,
username, port and password are all passed in separate options rather
than one big one.
I will send a message to bug-mailutils@gnu.org.
>> I'm not sure that it would be possible for the Mailutils maintainers to
>> fix it without changing the options format for the command. On the
>> other hand I think the options format really should be changed.
>>
>> The kludge to fix this is to use "%40" in the email address instead of
>> "@". That's what I've been using.
>
> So perhaps we should just fix Emacs to allow %40, and document that.
> You said:
>
>> To solve this for myself I've edited the function
>> rmail-insert-inbox-text just after this bit:
>> ;; At this point, TOFILE contains the name to read:
>> ;; Either the alternate name (if we renamed)
>> ;; or the actual inbox (if not renaming).
>>
>> I've put in some code to substitute %40 for @ in tofile. That fixes the
>> problem for me, but it's not a real fix.
>
> Could you submit a patch for that, so that we could see what that'd look
> like?
I forgot to tell you about that part of it. I don't need my work-around
anymore. I think it's been fixed in mailutils. I don't see any fix in
rmail-insert-inbox-text.
The problem was the treatment of the %40. It appears in the filename
"tofile" that's passed in Rmail. In the past, movemail decoded it to @
and created a file with @ in the name. That confused Rmail which didn't
do that with it's tofile. So, I added (setq tofile (url-unhex-string
tofile)) just before Rmail opens the file.
Now though, movemail keeps the URL encoding in the filename, it keeps
the %40 and doesn't change it to @. That solved that problem.
But, you still have to put in %40 when setting the username, and the
Rmail manual doesn't mention that. Perhaps it should, I can write a
patch for that if you want.
BR,
Robert Thorpe
next prev parent reply other threads:[~2020-12-06 23:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 2:33 bug#16946: 24.3; Rmail behaviour with a username containing "@" Robert Thorpe
2020-12-04 12:04 ` Lars Ingebrigtsen
2020-12-06 3:06 ` Robert Thorpe
2020-12-06 13:54 ` Lars Ingebrigtsen
2020-12-06 14:10 ` Jean Louis
2020-12-06 23:50 ` Robert Thorpe [this message]
2020-12-07 15:05 ` Lars Ingebrigtsen
2020-12-14 6:08 ` Robert Thorpe
2020-12-14 16:51 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0tufq9j.fsf@robertthorpeconsulting.com \
--to=rt@robertthorpeconsulting.com \
--cc=16946@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.