From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: not-real@arcor.de
Cc: help-gnu-emacs@gnu.org
Subject: Re: rmail
Date: Fri, 27 Feb 2015 22:16:47 +0000 [thread overview]
Message-ID: <87twy757ao.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <878ufjiodk.fsf@darkstar.freedom.org> (not-real@arcor.de)
"h.peter.friedrich" <not-real@arcor.de> writes:
> hello,
> I use rmail with the above email-address, but I want to leave this
> provider.
> My favorite possible new provider uses the email-address as loginname.
> But rmail cannot handle the "@ " inside the name.
> I found in the emacswiki that this is a known problem.
> Is it solved in the meantime and how can I solve it ?
This is how I do it:
* Fix your email address.
In rmail-primary-inbox-list specify your email address replacing @ with
%40 like this: you%40server.com.
* Use Mailutils Movemail.
It's usually available from a package manager. I don't know if this is
necessary, but it's how I did it.
* Copy.
Copy the function rmail-insert-inbox-text from rmail.el. After you've
fixed it save off this new version of rmail-insert-inbox-text and load
it in your init file.
* Find the bit that says:
;; At this point, TOFILE contains the name to read:
;; Either the alternate name (if we renamed)
;; or the actual inbox (if not renaming).
* Add the fix.
After the comment put in the line:
(setq tofile (url-unhex-string tofile))
The line after that should be (if (file-exists-p tofile).
Here's why that works.... Movemail's command-line has the server
address after the email address. It's like this "movemail
you@imap.server.com". So, if your email address has an @ in it then it
becomes "movemail you@server.com@imap.server.com" which is nonsense.
The movemail people are aware of this problem, so they support using URL
encoding in addresses. So, you can use %40 instead of @ for the first
one, just like in a URL. Emacs doesn't know about any of this. The
problem is that they decode it when creating the mbox filename. So,
Emacs is expecting an mbox file called you%40server.com but it gets one
called you@server.com. The line of code added removes that confusion.
When I get the time I'll contribute it to Emacs. I don't think it's the
right way to totally fix the problem though.
BR,
Robert Thorpe
next prev parent reply other threads:[~2015-02-27 22:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 11:29 rmail h.peter.friedrich
2015-02-27 22:16 ` Robert Thorpe [this message]
2015-03-04 12:25 ` rmail h.peter.friedrich
-- strict thread matches above, loose matches on Subject: below --
2014-08-15 10:28 rmail visaris tds.net
2014-08-15 10:43 ` rmail Eli Zaretskii
2014-08-15 14:06 ` rmail Robert Thorpe
2009-05-09 20:22 Rmail Marvin
2009-05-11 13:59 ` Rmail hazlup
[not found] <mailman.8.1143069284.14014.help-gnu-emacs@gnu.org>
2006-04-10 17:24 ` rmail Oliver Heidelbach
2006-04-10 21:40 ` rmail ken
2006-03-22 23:14 rmail op132650c
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=87twy757ao.fsf@robertthorpeconsulting.com \
--to=rt@robertthorpeconsulting.com \
--cc=help-gnu-emacs@gnu.org \
--cc=not-real@arcor.de \
/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.