r = -1;
#ifdef USE_NOTMUCH
- if (msg->commited_path && dest->magic == MUTT_MAILDIR && src->magic == MUTT_NOTMUCH)
- nm_update_filename(src, NULL, msg->commited_path, hdr);
+ if (msg->committed_path && dest->magic == MUTT_MAILDIR && src->magic == MUTT_NOTMUCH)
+ nm_update_filename(src, NULL, msg->committed_path, hdr);
#endif
mx_msg_close(dest, &msg);
*/
struct Message
{
- FILE *fp; /**< pointer to the message data */
- char *path; /**< path to temp file */
- char *commited_path; /**< the final path generated by mx_msg_commit() */
- bool write; /**< nonzero if message is open for writing */
+ FILE *fp; /**< pointer to the message data */
+ char *path; /**< path to temp file */
+ char *committed_path; /**< the final path generated by mx_msg_commit() */
+ bool write; /**< nonzero if message is open for writing */
struct
{
bool read : 1;
#endif
if (hdr)
mutt_str_replace(&hdr->path, path);
- mutt_str_replace(&msg->commited_path, full);
+ mutt_str_replace(&msg->committed_path, full);
FREE(&msg->path);
return 0;
{
if (hdr)
mutt_str_replace(&hdr->path, tmp);
- mutt_str_replace(&msg->commited_path, path);
+ mutt_str_replace(&msg->committed_path, path);
FREE(&msg->path);
break;
}
FREE(&(*msg)->path);
}
- FREE(&(*msg)->commited_path);
+ FREE(&(*msg)->committed_path);
FREE(msg);
return r;
}
if (mx_msg_commit(&f, msg) != 0)
rc = -1;
else if (finalpath)
- *finalpath = mutt_str_strdup(msg->commited_path);
+ *finalpath = mutt_str_strdup(msg->committed_path);
mx_msg_close(&f, &msg);
mx_mbox_close(&f, NULL);