repl )
options=(-annotate -noannotate -group -nogroup -cc
-nocc -query -noquery -form -format -noformat -filter
- -mime -nomime -fcc -width
+ -mime -nomime -width
-editor -noedit -whatnowproc
-nowhatnowproc -build -file -version -help)
;;
compctl -K mhfseq -x 's[+][@]' \
-K mhcomp -S / -q - 'c[-1]' -K mhfseq -\
's[-]' -k "(annotate noannotate cc nocc \
- editor noedit fcc filter form group nogroup \
+ editor noedit filter form group nogroup \
query noquery width whatnowproc nowhatnowproc help)" - 'c[-1,(cc|nocc)]' \
-k "(all to cc me)" - 'C[-1,-(filter|form)]' -K mhfile - \
'C[-1,-(editor|whatnowproc)]' -c -- repl
%(formataddr{prev-resent-cc})\
%(formataddr(me))\
%(void(width))%(putaddr Cc: )
-Fcc: %<{fcc}%{fcc}%|+sent%>
+Fcc: +sent
Subject: %<{subject}Re: %(void{subject})%(trim)%(putstr)%>
%;
%; Make References: and In-reply-to: fields for threading.
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
%<(nonnull)%(void(width))%(putaddr Cc: )\n%>%>\
%;
-Fcc: %<{fcc}%{fcc}%|+sent%>
+Fcc: +sent
Subject: %<{subject}Re: %(void{subject})%(trim)%(putstr)%>
%;
%; Make References: and In-reply-to: fields for threading.
void annolist(char *, char *, char *, int);
void annopreserve(int);
int distout(char *, char *, char *);
-void replout(FILE *, char *, char *, struct msgs *, int,
- char *, char *, char *);
+void replout(FILE *, char *, char *, struct msgs *, int, char *, char *);
int what_now(char *, int, int, char *, char *, int, struct msgs *,
char *, char *);
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
-.RB [ \-fcc
-.IR +folder ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.PP
.RS 5
.nf
-%<{fcc}Fcc: %{fcc}\\n%>\\
-.fi
-.RE
-.PP
-If a
-.B \-fcc
-.I folder
-switch was given to
-.B repl
-(see
-.BR repl (1)
-for more details about %{\fIfcc\fR\^}),
-an \*(lqFcc:\*(rq header is output.
-.PP
-.RS 5
-.nf
%<{subject}Subject: Re: %{subject}\\n%>\\
.fi
.RE
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
-.RB [ \-fcc
-.IR +folder ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.nf
To: <Mail\-Reply\-To> or <Reply\-To> or <From>
Cc: <To> and <Cc> and <personal address>
-Fcc: {fcc switch} or +sent
+Fcc: +sent
Subject: Re: <Subject>
In\-Reply\-To: <Message\-Id>
References: <Message\-Id>
message, but the annotations won't take place. Annotations are always
done inplace in order to preserve any links to the message.
.PP
-Although the default template specifies that a copy of the reply will be
+The default template specifies that a copy of the reply will be
put in
-the folder 'sent',
-if the
-.B \-fcc
-.I +folder
-switch is given it will override the default value.
-More than one folder, each preceded by
-.B \-fcc
-can
-be named.
-.PP
-In addition to the standard
-.BR mh\-format (5)
-escapes,
-.B repl
-also recognizes the following additional
-.I component
-escape:
-.PP
-.RS 5
-.nf
-.ta \w'Escape 'u +\w'Returns 'u
-.I Escape Returns Description
-fcc string Any folders specified with `\-fcc\ folder'
-.fi
-.RE
+the folder 'sent'.
.PP
To avoid reiteration,
.B repl
{ "editor editor", 0 },
#define NEDITSW 7
{ "noedit", 0 },
-#define FCCSW 8
- { "fcc folder", 0 },
-#define FILTSW 9
+#define FILTSW 8
{ "filter filterfile", 0 },
-#define FORMSW 10
+#define FORMSW 9
{ "form formfile", 0 },
-#define FRMTSW 11
+#define FRMTSW 10
{ "format", 5 },
-#define NFRMTSW 12
+#define NFRMTSW 11
{ "noformat", 7 },
-#define MIMESW 13
+#define MIMESW 12
{ "mime", 0 },
-#define NMIMESW 14
+#define NMIMESW 13
{ "nomime", 0 },
-#define QURYSW 15
+#define QURYSW 14
{ "query", 0 },
-#define NQURYSW 16
+#define NQURYSW 15
{ "noquery", 0 },
-#define WHATSW 17
+#define WHATSW 16
{ "whatnowproc program", 0 },
-#define NWHATSW 18
+#define NWHATSW 17
{ "nowhatnowproc", 0 },
-#define VERSIONSW 19
+#define VERSIONSW 18
{ "version", 0 },
-#define HELPSW 20
+#define HELPSW 19
{ "help", 0 },
-#define FILESW 21
+#define FILESW 20
{ "file file", 4 }, /* interface from msh */
#ifdef MHE
-#define BILDSW 22
+#define BILDSW 21
{ "build", 5 }, /* interface from mhe */
#endif
int mime = 0; /* include original as MIME part */
char *form = NULL; /* form (components) file */
char *filter = NULL; /* message filter file */
-char *fcc = NULL; /* folders to add to Fcc: header */
/*
{
int anot = 0;
int nedit = 0, nwhat = 0;
- char *cp, *cwd, *dp, *maildir, *file = NULL;
+ char *cp, *cwd, *maildir, *file = NULL;
char *folder = NULL, *msg = NULL;
char *ed = NULL, drft[BUFSIZ], buf[BUFSIZ];
char **argp, **arguments;
nwhat++;
continue;
- case FCCSW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- dp = NULL;
- if (*cp == '@')
- cp = dp = getcpy(expandfol(cp));
- if (fcc)
- fcc = add(", ", fcc);
- fcc = add(cp, fcc);
- if (dp)
- free(dp);
- continue;
-
case FILESW:
if (file)
adios(NULL, "only one file at a time!");
form = etcpath(replcomps);
}
- replout(in, msg, drft, mp, mime, form, filter, fcc);
+ replout(in, msg, drft, mp, mime, form, filter);
fclose(in);
if (nwhat)
void
replout(FILE *inb, char *msg, char *drft, struct msgs *mp,
- int mime, char *form, char *filter, char *fcc)
+ int mime, char *form, char *filter)
{
register int state, i;
register struct comp *cptr;
if (cptr)
cptr->c_name = "";
}
- /* set up the "fcc" pseudo-component */
- if (fcc) {
- FINDCOMP(cptr, "fcc");
- if (cptr)
- cptr->c_text = getcpy(fcc);
- }
if ((cp = getenv("USER"))) {
FINDCOMP(cptr, "user");
if (cptr)