- remove pine compatible naming scheme for IMAP folders (as announced in <https://lists.berlios.de/pipermail/mutt-ng-users/2005-April/000095.html> and <https://lists.berlios.de/pipermail/mutt-ng-devel/2005-April/000536.html>)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@314
e385b8ad-14ed-0310-8656-
cc95a2468c6d
mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h Muttngrc.head Muttngrc \
makedoc.c stamp-doc-rc README.SSL smime.h\
muttngbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \
mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h Muttngrc.head Muttngrc \
makedoc.c stamp-doc-rc README.SSL smime.h\
muttngbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \
- ChangeLog.old mkchangelog.sh cvslog2changelog.pl mutt_idna.h \
+ mkchangelog.sh cvslog2changelog.pl mutt_idna.h \
snprintf.c regex.c mutt_libesmtp.h crypt-gpgme.h
muttng_dotlock_SOURCES = mutt_dotlock.c
snprintf.c regex.c mutt_libesmtp.h crypt-gpgme.h
muttng_dotlock_SOURCES = mutt_dotlock.c
the necessary keywords to look them up in the manual, ChangeLog or other
sources of information.
the necessary keywords to look them up in the manual, ChangeLog or other
sources of information.
+2005-06-16:
+
+ Pine compatibility for naming IMAP mailboxes has been removed, only
+ the common imap[s]:// syntax remains.
+
2005-05-17:
Changes due to better integration of qdbm support w/ header caching:
2005-05-17:
Changes due to better integration of qdbm support w/ header caching:
topsrcdir_DOCFILES = COPYRIGHT GPL INSTALL ChangeLog \
topsrcdir_DOCFILES = COPYRIGHT GPL INSTALL ChangeLog \
- ChangeLog.old ChangeLog.mutt-ng UPGRADING \
- README NEWS TODO TODO.mutt-ng README.SECURITY README.SSL
+ UPGRADING README NEWS TODO TODO.mutt-ng README.SSL
all: muttrc.man try-html try-txt
all: muttrc.man try-html try-txt
url_scheme_t s;
if (!path || !*path)
return (-1);
url_scheme_t s;
if (!path || !*path)
return (-1);
- if (*path == '{') /* pain\17pine compatibility */
- return (M_IMAP);
s = url_check_scheme (NONULL (path));
return ((s == U_IMAP || s == U_IMAPS) ? M_IMAP : -1);
}
s = url_check_scheme (NONULL (path));
return ((s == U_IMAP || s == U_IMAPS) ? M_IMAP : -1);
}
static unsigned short ImapPort = 0;
static unsigned short ImapsPort = 0;
struct servent *service;
static unsigned short ImapPort = 0;
static unsigned short ImapsPort = 0;
struct servent *service;
if (!ImapPort) {
service = getservbyname ("imap", "tcp");
if (!ImapPort) {
service = getservbyname ("imap", "tcp");
c = safe_strdup (path);
url_parse_ciss (&url, c);
c = safe_strdup (path);
url_parse_ciss (&url, c);
- if (url.scheme == U_IMAP || url.scheme == U_IMAPS) {
- if (mutt_account_fromurl (&mx->account, &url) < 0) {
- FREE (&c);
- return -1;
- }
-
- mx->mbox = safe_strdup (url.path);
-
- if (url.scheme == U_IMAPS)
- mx->account.flags |= M_ACCT_SSL;
+ if (!(url.scheme == U_IMAP || url.scheme == U_IMAPS) ||
+ mutt_account_fromurl (&mx->account, &url) < 0) {
- /* old PINE-compatibility code */
- else {
- FREE (&c);
- if (sscanf (path, "{%127[^}]}", tmp) != 1)
- return -1;
- c = strchr (path, '}');
- if (!c)
- return -1;
- else
- /* walk past closing '}' */
- mx->mbox = safe_strdup (c + 1);
-
- if ((c = strrchr (tmp, '@'))) {
- *c = '\0';
- strfcpy (mx->account.user, tmp, sizeof (mx->account.user));
- strfcpy (tmp, c + 1, sizeof (tmp));
- mx->account.flags |= M_ACCT_USER;
- }
+ mx->mbox = safe_strdup (url.path);
- if ((n = sscanf (tmp, "%127[^:/]%127s", mx->account.host, tmp)) < 1) {
- debug_print (1, ("NULL host in %s\n", path));
- FREE (&mx->mbox);
- return -1;
- }
+ if (url.scheme == U_IMAPS)
+ mx->account.flags |= M_ACCT_SSL;
- if (n > 1) {
- if (sscanf (tmp, ":%hu%127s", &(mx->account.port), tmp) >= 1)
- mx->account.flags |= M_ACCT_PORT;
- if (sscanf (tmp, "/%s", tmp) == 1) {
- if (!ascii_strncmp (tmp, "ssl", 3))
- mx->account.flags |= M_ACCT_SSL;
- else {
- debug_print (1, ("Unknown connection type in %s\n", path));
- FREE (&mx->mbox);
- return -1;
- }
- }
- }
- }
#if defined(USE_SSL) || defined(USE_GNUTLS)
if (option (OPTIMAPFORCESSL))
#if defined(USE_SSL) || defined(USE_GNUTLS)
if (option (OPTIMAPFORCESSL))
case '+':
{
#ifdef USE_IMAP
case '+':
{
#ifdef USE_IMAP
- /* if folder = {host} or imap[s]://host/: don't append slash */
- if (imap_is_magic (NONULL (Maildir), NULL) == M_IMAP &&
- (Maildir[safe_strlen (Maildir) - 1] == '}' ||
- Maildir[safe_strlen (Maildir) - 1] == '/'))
+ /* if folder = imap[s]://host/: don't append slash */
+ if (imap_is_magic (NONULL (Maildir), NULL) == M_IMAP &&
+ Maildir[safe_strlen (Maildir) - 1] == '/')
strfcpy (p, NONULL (Maildir), sizeof (p));
else
#endif
strfcpy (p, NONULL (Maildir), sizeof (p));
else
#endif
-#ifdef USE_IMAP
- /* Rewrite IMAP path in canonical form - aids in string comparisons of
- * folders. May possibly fail, in which case s should be the same. */
- if (imap_is_magic (s, NULL) == M_IMAP)
- imap_expand_path (s, slen);
-#endif
-