* syntax for movemail (mailutils), apop, rmail
@ 2008-10-13 18:31 Alfred M. Szmidt
2008-10-13 18:39 ` Alfred M. Szmidt
2008-10-14 13:44 ` Sergey Poznyakoff
0 siblings, 2 replies; 3+ messages in thread
From: Alfred M. Szmidt @ 2008-10-13 18:31 UTC (permalink / raw)
To: emacs-devel, bug-mailutils
Hi,
movemail in mailutils supports APOP, but the syntax for it does not
allow for a password:
pop://<USER>;auth=+APOP@<HOST>
but
pop://<USER>:<PASSWORD>;auth=+APOP@<HOST>
is interpreted as having the user <USER>:<PASSWORD>. Currently it
seems that it is impossible to use POP + AUTH with rmail unless one
wishes to be asked for a password, or use emacs movemail. Problem
with the later is that emacs movemail does not support imap; and as a
result you cannot have multiple mailboxes that use imap and apop.
Would it be able to make mailutils movemail support a password in the
URI, or make rmail handle rmail-remote-password better to always try
it when something asks for a password? The last solution isn't the
best one, but it work.
Cheers.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: syntax for movemail (mailutils), apop, rmail
2008-10-13 18:31 syntax for movemail (mailutils), apop, rmail Alfred M. Szmidt
@ 2008-10-13 18:39 ` Alfred M. Szmidt
2008-10-14 13:44 ` Sergey Poznyakoff
1 sibling, 0 replies; 3+ messages in thread
From: Alfred M. Szmidt @ 2008-10-13 18:39 UTC (permalink / raw)
To: ams; +Cc: bug-mailutils, emacs-devel
I solved it by doing:
(setq rmail-primary-inbox-list '(
"imap://ams:PASSWORD@HOST"
"pop://ams;AUTH=+APOP@HOST"
))
(setq rmail-remote-password "PASSWORD")
(setq rmail-remote-password-required t)
Alas, if one has multiple APOP hosts, then one cannot have
different passwords for each.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: syntax for movemail (mailutils), apop, rmail
2008-10-13 18:31 syntax for movemail (mailutils), apop, rmail Alfred M. Szmidt
2008-10-13 18:39 ` Alfred M. Szmidt
@ 2008-10-14 13:44 ` Sergey Poznyakoff
1 sibling, 0 replies; 3+ messages in thread
From: Sergey Poznyakoff @ 2008-10-14 13:44 UTC (permalink / raw)
To: ams; +Cc: bug-mailutils, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
Hi Alfred,
> pop://<USER>:<PASSWORD>;auth=+APOP@<HOST>
>
> is interpreted as having the user <USER>:<PASSWORD>.
Thanks for noticing. Please, try the attached patch.
Regards,
Sergey
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-c; name="mu-apop.diff", Size: 1017 bytes --]
Index: mailbox/url.c
===================================================================
RCS file: /cvsroot/mailutils/mailutils/mailbox/url.c,v
retrieving revision 1.32
diff -p -u -r1.32 url.c
--- mailbox/url.c 16 Aug 2008 08:21:32 -0000 1.32
+++ mailbox/url.c 14 Oct 2008 13:42:37 -0000
@@ -260,12 +260,17 @@ url_parse0 (mu_url_t u, char *name)
/* Try to split the user into a:
<user>:<password>
or
- <user>;AUTH=<auth>
+ <user>:<password>;AUTH=<auth>
*/
for (; *name; name++)
{
- if (*name == ';')
+ if (*name == ':')
+ {
+ *name++ = 0;
+ u->passwd = name;
+ }
+ else if (*name == ';')
{
/* Make sure it's the auth token. */
if (strncasecmp (name + 1, "auth=", 5) == 0)
@@ -276,12 +281,6 @@ url_parse0 (mu_url_t u, char *name)
break;
}
}
- if (*name == ':')
- {
- *name++ = 0;
- u->passwd = name;
- break;
- }
}
}
[-- Attachment #3: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-mailutils
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-14 13:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 18:31 syntax for movemail (mailutils), apop, rmail Alfred M. Szmidt
2008-10-13 18:39 ` Alfred M. Szmidt
2008-10-14 13:44 ` Sergey Poznyakoff
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).