- ADDRESS *adr;
- char buf[_POSIX_PATH_MAX];
- ENVELOPE *env = hdr->env;
-
- if (mutt_addr_hook (path, pathlen, M_FCCHOOK, NULL, hdr) != 0) {
- if ((option (OPTSAVENAME) || option (OPTFORCENAME)) &&
- (env->to || env->cc || env->bcc)) {
- adr = env->to ? env->to : (env->cc ? env->cc : env->bcc);
- mutt_safe_path (buf, sizeof (buf), adr);
- mutt_concat_path(path, pathlen, NONULL(Maildir), buf);
- if (!option (OPTFORCENAME) && mx_access (path, W_OK) != 0)
- m_strcpy(path, pathlen, NONULL(Outbox));
+ if (mutt_addr_hook (path, pathlen, M_FCCHOOK, NULL, hdr) != 0) {
+ m_strcpy(path, pathlen, NONULL(MAlias.record));