move record as well (yeah, I'm a selfish bitch, I migrate things in my own folder...
authorPierre Habouzit <madcoder@debian.org>
Sun, 1 Apr 2007 23:16:41 +0000 (01:16 +0200)
committerPierre Habouzit <madcoder@debian.org>
Sun, 1 Apr 2007 23:16:41 +0000 (01:16 +0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
alias.cpkg
globals.h
hook.c
init.h
lib-lua/lua-token.sh
muttlib.c

index 8823875..2efa1ef 100644 (file)
@@ -65,7 +65,7 @@ rx_t *SubscribedLists = NULL, *UnSubscribedLists = NULL;
      ** \fBNote:\fP Madmutt will not automatically source this file; you must
      ** explicitly use the ``$source'' command for it to be executed.
      */
      ** \fBNote:\fP Madmutt will not automatically source this file; you must
      ** explicitly use the ``$source'' command for it to be executed.
      */
-    path_t   alias_file   = m_strdup("~/.madmutt/aliases");
+    path_t alias_file = m_strdup("~/.madmutt/aliases");
 
     /*
      ** .pp
 
     /*
      ** .pp
@@ -74,7 +74,19 @@ rx_t *SubscribedLists = NULL, *UnSubscribedLists = NULL;
      ** assumed that filename is a shell command and input should be read from
      ** its stdout.
      */
      ** assumed that filename is a shell command and input should be read from
      ** its stdout.
      */
-    path_t   signature   = m_strdup("~/.signature");
+    path_t signature = m_strdup("~/.signature");
+
+    /*
+     ** .pp
+     ** This specifies the file into which your outgoing messages should be
+     ** appended.  (This is meant as the primary method for saving a copy of
+     ** your messages, but another way to do this is using the ``$my_hdr''
+     ** command to create a \fTBcc:\fP header field with your email address in it.)
+     ** .pp
+     ** The value of \fI$$record\fP is overridden by the ``$$force_name'' and
+     ** ``$$save_name'' variables, and the ``$fcc-hook'' command.
+     */
+    path_t record = NULL;
 
     void alternates(rx_t rx) {
         rx_list_remove(&UnAlternates, rx);
 
     void alternates(rx_t rx) {
         rx_list_remove(&UnAlternates, rx);
index f015651..0519dfb 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -85,7 +85,6 @@ WHERE char *NntpUser;
 WHERE char *NntpPass;
 WHERE char *NewsRc;
 #endif
 WHERE char *NntpPass;
 WHERE char *NewsRc;
 #endif
-WHERE char *Outbox;
 WHERE char *Pager;
 WHERE char *PagerFmt;
 WHERE char *PipeSep;
 WHERE char *Pager;
 WHERE char *PagerFmt;
 WHERE char *PipeSep;
diff --git a/hook.c b/hook.c
index 6b82917..7361bba 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -371,10 +371,10 @@ void mutt_select_fcc (char *path, ssize_t pathlen, HEADER * hdr)
       mutt_safe_path (buf, sizeof (buf), adr);
       mutt_concat_path(path, pathlen, NONULL(Maildir), buf);
       if (!option (OPTFORCENAME) && mx_access (path, W_OK) != 0)
       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));
+        m_strcpy(path, pathlen, NONULL(MAlias.record));
     }
     else
     }
     else
-      m_strcpy(path, pathlen, NONULL(Outbox));
+      m_strcpy(path, pathlen, NONULL(MAlias.record));
   }
   mutt_pretty_mailbox (path);
 }
   }
   mutt_pretty_mailbox (path);
 }
diff --git a/init.h b/init.h
index c74c94d..9133d82 100644 (file)
--- a/init.h
+++ b/init.h
@@ -2573,17 +2573,6 @@ struct option_t MuttVars[] = {
    ** Setting this variable to \fIyes\fP is not generally useful, and thus not
    ** recommended.
    */
    ** Setting this variable to \fIyes\fP is not generally useful, and thus not
    ** recommended.
    */
-  {"record", DT_PATH, R_NONE, UL &Outbox, ""},
-  /*
-   ** .pp
-   ** This specifies the file into which your outgoing messages should be
-   ** appended.  (This is meant as the primary method for saving a copy of
-   ** your messages, but another way to do this is using the ``$my_hdr''
-   ** command to create a \fTBcc:\fP header field with your email address in it.)
-   ** .pp
-   ** The value of \fI$$record\fP is overridden by the ``$$force_name'' and
-   ** ``$$save_name'' variables, and the ``$fcc-hook'' command.
-   */
   {"reply_regexp", DT_RX, R_INDEX|R_RESORT, UL &ReplyRegexp, "^(re([\\[0-9\\]+])*|aw):[ \t]*"},
   /*
    ** .pp
   {"reply_regexp", DT_RX, R_INDEX|R_RESORT, UL &ReplyRegexp, "^(re([\\[0-9\\]+])*|aw):[ \t]*"},
   /*
    ** .pp
index 1692d05..e524119 100644 (file)
@@ -136,6 +136,7 @@ exit 0
 ## no
 ## operating_system
 ## quit
 ## no
 ## operating_system
 ## quit
+## record
 ## send_charset
 ## sendmail
 ## sendmail_wait
 ## send_charset
 ## sendmail
 ## sendmail_wait
index 48644d8..3f223a6 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -115,7 +115,7 @@ ssize_t _mutt_expand_path(char *buf, ssize_t len, const char *s, int rx)
         break;
 
       case '<':
         break;
 
       case '<':
-        m_strcpy(p, sizeof(p), Outbox);
+        m_strcpy(p, sizeof(p), MAlias.record);
         tail = s + 1;
         break;
 
         tail = s + 1;
         break;