diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2002-12-11 15:20:21 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2002-12-11 15:20:21 +0000 |
commit | d557f81e5396dd46e80daabbe2488138a53e4cef (patch) | |
tree | 28f32e3e19687a6b55bac687d55f22092560d18a /hook.c | |
parent | e9e1c6d1ac66ec32347103dfabfee7eba5c5dfde (diff) |
Herbert Martin Dietze <herbert@the-little-red-haired-girl.org> notes
that mutt may currently build IMAP URLs like
imap://exchange//herbert for FCCs. The fix in this patch is to
include a function named mutt_concat_path which concatenates path
elements, but avoids the creation of double slashes. (These don't
create problems when you're just accessing the file system, but
apparently thy do cause problems with IMAP.)
Diffstat (limited to 'hook.c')
-rw-r--r-- | hook.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -411,7 +411,7 @@ void mutt_select_fcc (char *path, size_t pathlen, HEADER *hdr) { adr = env->to ? env->to : (env->cc ? env->cc : env->bcc); mutt_safe_path (buf, sizeof (buf), adr); - snprintf (path, pathlen, "%s/%s", NONULL (Maildir), buf); + mutt_concat_path (path, NONULL(Maildir), buf, pathlen); if (!option (OPTFORCENAME) && mx_access (path, W_OK) != 0) strfcpy (path, NONULL (Outbox), pathlen); } |