]> granicus.if.org Git - neomutt/commitdiff
fix typo
authorRichard Russon <rich@flatcap.org>
Fri, 13 Jul 2018 15:01:09 +0000 (16:01 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 16 Jul 2018 22:38:22 +0000 (23:38 +0100)
copy.c
mailbox.h
maildir/mh.c
mx.c
sendlib.c

diff --git a/copy.c b/copy.c
index fca860c0425ae48d9090ee04c73462fbce952fc6..d0c28a0adbc77f03c0536b8ae7d940172aaeb7df 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -840,8 +840,8 @@ static int append_message(struct Context *dest, FILE *fpin, struct Context *src,
     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);
index 2b765a1bc2426293dbbee184dc888b7ebbdfc866..a9225541e58c9c831c167ab6fd3832ad30d221d8 100644 (file)
--- a/mailbox.h
+++ b/mailbox.h
@@ -62,10 +62,10 @@ enum MxCheckReturns
  */
 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;
index 82ac51b8c08bd06a3d98266cd165b7f387fb4b35..558ff38d0f7985339fe9234bfed283824c115915 100644 (file)
@@ -1874,7 +1874,7 @@ static int md_commit_message(struct Context *ctx, struct Message *msg, struct He
 #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;
@@ -1966,7 +1966,7 @@ static int mh_commit_msg(struct Context *ctx, struct Message *msg,
     {
       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;
     }
diff --git a/mx.c b/mx.c
index 61c13c8e0bdfb06c0ec5a0c18950ec621baa8f99..2d80629e3606ba6b0cc4aabeef74a14a80fbf79f 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -1345,7 +1345,7 @@ int mx_msg_close(struct Context *ctx, struct Message **msg)
     FREE(&(*msg)->path);
   }
 
-  FREE(&(*msg)->commited_path);
+  FREE(&(*msg)->committed_path);
   FREE(msg);
   return r;
 }
index b312b6a013e58820827bb21626c14bf841e13747..2912fce6aa2e3e80c4dc697047ab0d8a233afd59 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -3289,7 +3289,7 @@ int mutt_write_fcc(const char *path, struct Header *hdr, const char *msgid,
   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);