Changeset 1603:63b61a63a908

Show
Ignore:
Timestamp:
2000-03-04 00:40:52 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Unify alias expansion.

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • alias.c

    r1601 r1603  
    140140} 
    141141 
     142void mutt_expand_aliases_env (ENVELOPE *env) 
     143{ 
     144  env->from = mutt_expand_aliases (env->from); 
     145  env->to = mutt_expand_aliases (env->to); 
     146  env->cc = mutt_expand_aliases (env->cc); 
     147  env->bcc = mutt_expand_aliases (env->bcc); 
     148  env->reply_to = mutt_expand_aliases (env->reply_to); 
     149  env->mail_followup_to = mutt_expand_aliases (env->mail_followup_to); 
     150} 
     151 
     152 
    142153/*  
    143154 * if someone has an address like 
  • headers.c

    r1601 r1603  
    102102  msg->env = n; 
    103103 
    104   msg->env->from = mutt_expand_aliases (msg->env->from); 
    105   msg->env->to = mutt_expand_aliases (msg->env->to); 
    106   msg->env->cc = mutt_expand_aliases (msg->env->cc); 
    107   msg->env->bcc = mutt_expand_aliases (msg->env->bcc); 
    108   msg->env->reply_to = mutt_expand_aliases (msg->env->reply_to); 
    109   msg->env->mail_followup_to = mutt_expand_aliases (msg->env->mail_followup_to); 
    110  
     104  mutt_expand_aliases_env (msg->env); 
     105   
    111106  /* search through the user defined headers added to see if either a  
    112107   * fcc: or attach-file: field was specified.   
  • protos.h

    r1601 r1603  
    145145void mutt_curses_error (const char *, ...); 
    146146void mutt_enter_command (void); 
     147void mutt_expand_aliases_env (ENVELOPE *); 
    147148void mutt_expand_file_fmt (char *, size_t, const char *, const char *); 
    148149void mutt_expand_fmt (char *, size_t, const char *, const char *); 
  • send.c

    r1601 r1603  
    10431043  if (msg) 
    10441044  { 
    1045     msg->env->to = mutt_expand_aliases (msg->env->to); 
    1046     msg->env->cc = mutt_expand_aliases (msg->env->cc); 
    1047     msg->env->bcc = mutt_expand_aliases (msg->env->bcc); 
     1045    mutt_expand_aliases_env (msg->env); 
    10481046  } 
    10491047  else