X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=0b0530a9b88da7a8340be0968d2baa60c4490c8d;hp=f4b5e27dfa66b66ed6366e97cf48cf2325c2fc00;hb=decc5c3abbd9004ced0d36059818aa9688491872;hpb=4dc555afd969ac7aed5c50db80ff9df17ed39e47 diff --git a/muttlib.c b/muttlib.c index f4b5e27..0b0530a 100644 --- a/muttlib.c +++ b/muttlib.c @@ -362,10 +362,9 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) 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 @@ -457,13 +456,6 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) } while (recurse); -#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 - return (s); } @@ -648,9 +640,9 @@ void mutt_free_envelope (ENVELOPE ** p) void _mutt_mktemp (char *s, const char *src, int line) { - snprintf (s, _POSIX_PATH_MAX, "%s/muttng-%s-%d-%d-%d-%x", NONULL (Tempdir), + snprintf (s, _POSIX_PATH_MAX, "%s/muttng-%s-%d-%d-%d-%x%x", NONULL (Tempdir), NONULL (Hostname), (int) getuid (), (int) getpid (), Counter++, - (unsigned int) rand()); + (unsigned int) rand(), (unsigned int) rand()); debug_print (1, ("%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s)); unlink (s); }