summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
51676eb)
None of comp, dist, forw has it, why should repl then have it?
It likely had been added as the replcomps are not just copied but processed.
It had been quite easy to add this feature but nobody went far enough to
process components, distcomps, forwcomps as well to be able to have such
an -fcc switch for those tools as well.
repl )
options=(-annotate -noannotate -group -nogroup -cc
-nocc -query -noquery -form -format -noformat -filter
repl )
options=(-annotate -noannotate -group -nogroup -cc
-nocc -query -noquery -form -format -noformat -filter
- -mime -nomime -fcc -width
-editor -noedit -whatnowproc
-nowhatnowproc -build -file -version -help)
;;
-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 \
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
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: )
%(formataddr{prev-resent-cc})\
%(formataddr(me))\
%(void(width))%(putaddr Cc: )
-Fcc: %<{fcc}%{fcc}%|+sent%>
Subject: %<{subject}Re: %(void{subject})%(trim)%(putstr)%>
%;
%; Make References: and In-reply-to: fields for threading.
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%>%>\
%;
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
%<(nonnull)%(void(width))%(putaddr Cc: )\n%>%>\
%;
-Fcc: %<{fcc}%{fcc}%|+sent%>
Subject: %<{subject}Re: %(void{subject})%(trim)%(putstr)%>
%;
%; Make References: and In-reply-to: fields for threading.
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 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 *);
int what_now(char *, int, int, char *, char *, int, struct msgs *,
char *, char *);
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
-.RB [ \-fcc
-.IR +folder ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
-%<{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
%<{subject}Subject: Re: %{subject}\\n%>\\
.fi
.RE
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
.RB [ \-filter
.IR filterfile ]
.RB [ \-mime " | " \-nomime ]
-.RB [ \-fcc
-.IR +folder ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.nf
To: <Mail\-Reply\-To> or <Reply\-To> or <From>
Cc: <To> and <Cc> and <personal address>
.nf
To: <Mail\-Reply\-To> or <Reply\-To> or <From>
Cc: <To> and <Cc> and <personal address>
-Fcc: {fcc switch} or +sent
Subject: Re: <Subject>
In\-Reply\-To: <Message\-Id>
References: <Message\-Id>
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
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
-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
.PP
To avoid reiteration,
.B repl
.PP
To avoid reiteration,
.B repl
{ "editor editor", 0 },
#define NEDITSW 7
{ "noedit", 0 },
{ "editor editor", 0 },
#define NEDITSW 7
{ "noedit", 0 },
-#define FCCSW 8
- { "fcc folder", 0 },
-#define FILTSW 9
{ "filter filterfile", 0 },
{ "filter filterfile", 0 },
{ "whatnowproc program", 0 },
{ "whatnowproc program", 0 },
{ "file file", 4 }, /* interface from msh */
#ifdef MHE
{ "file file", 4 }, /* interface from msh */
#ifdef MHE
{ "build", 5 }, /* interface from mhe */
#endif
{ "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 */
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;
{
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;
char *folder = NULL, *msg = NULL;
char *ed = NULL, drft[BUFSIZ], buf[BUFSIZ];
char **argp, **arguments;
- 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!");
case FILESW:
if (file)
adios(NULL, "only one file at a time!");
form = etcpath(replcomps);
}
form = etcpath(replcomps);
}
- replout(in, msg, drft, mp, mime, form, filter, fcc);
+ replout(in, msg, drft, mp, mime, form, filter);
void
replout(FILE *inb, char *msg, char *drft, struct msgs *mp,
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;
{
register int state, i;
register struct comp *cptr;
if (cptr)
cptr->c_name = "";
}
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)
if ((cp = getenv("USER"))) {
FINDCOMP(cptr, "user");
if (cptr)