Adressee header fields will always be folded for OUTPUTLINELEN (=72) chars.
void annolist(char *, char *, char *, int);
void annopreserve(int);
int distout(char *, char *, char *);
-void replout(FILE *, char *, char *, struct msgs *, int, int,
+void replout(FILE *, char *, char *, struct msgs *, int,
char *, char *, char *);
int sendsbr(char **, int, char *, struct stat *, int);
int what_now(char *, int, int, char *, char *, int, struct msgs *,
.RB [ \-msgid " | " \-nomsgid ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ \-watch " | " \-nowatch ]
-.RB [ \-width
-.IR columns ]
.I file
.RB [ \-version ]
.RB [ \-help ]
.RB [ \-mime " | " \-nomime ]
.RB [ \-fcc
.IR +folder ]
-.RB [ \-width
-.IR columns ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.RB [ \-push " | " \-nopush ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ \-watch " | " \-nowatch ]
-.RB [ \-width
-.IR columns ]
.RB [ file
\&...]
.RB [ \-version ]
.RB [ \-mime " | " \-nomime ]
.RB [ \-fcc
.IR +folder ]
-.RB [ \-width
-.IR columns ]
.RB [ \-editor
.IR editor ]
.RB [ \-noedit ]
.PP
Lines beginning with the fields \*(lqTo:\*(rq, \*(lqCc:\*(rq, and
\*(rqBcc:\*(rq will be standardized and have duplicate addresses removed.
-In addition, the
-.B \-width
-.I columns
-switch will guide
-.BR repl 's
-formatting of these fields.
+In addition, these fields will be wrapped at a reasonable length.
.PP
See
.BR comp (1)
.RB ` \-inplace '
.RB ` \-nomime '
.RB ` \-noquery '
-.RB ` "\-width\ 72" '
.fi
.SH CONTEXT
Moral of the story: if you're going to include addresses in a reply
template, include the host portion of the address.
.PP
-The
-.B \-width
-.I columns
-switch is only used to do address-folding; other
-headers are not line\-wrapped.
-.PP
If
.I whatnowproc
is
.RB [ \-push " | " \-nopush ]
.RB [ \-verbose " | " \-noverbose ]
.RB [ \-watch " | " \-nowatch ]
-.RB [ \-width
-.IR columns ]
.RB [ msg
\&...]
.RB [ \-version ]
the appended fields and field reformatting. The \*(lqFcc:\*(rq fields
will be removed from all outgoing copies of the message.
.PP
-By using the
-.B \-width
-.I columns
-switch, the user can direct
-.B send
-as to how long it should make header lines containing addresses.
-.PP
The files specified by the profile entry \*(lqAliasfile:\*(rq and any
additional alias files given by the
.B \-alias
.RB ` \-nopush '
.RB ` \-noverbose '
.RB ` \-nowatch '
-.RB ` "\-width\ 72" '
.fi
.SH CONTEXT
#define SBUFSIZ 256
-static int outputlinelen = OUTPUTLINELEN;
-
static struct format *fmt;
static int ncomps = 0;
i = format_len + char_read + 256;
scanl = mh_xmalloc((size_t) i + 2);
dat[0] = dat[1] = dat[2] = dat[4] = 0;
- dat[3] = outputlinelen;
+ dat[3] = OUTPUTLINELEN;
fmt_scan(fmt, scanl, i, dat);
fputs(scanl, out);
{ "whatnowproc program", 0 },
#define NWHATSW 20
{ "nowhatnowproc", 0 },
-#define WIDTHSW 21
- { "width columns", 0 },
-#define VERSIONSW 22
+#define VERSIONSW 21
{ "version", 0 },
-#define HELPSW 23
+#define HELPSW 22
{ "help", 0 },
-#define FILESW 24
+#define FILESW 23
{ "file file", 4 }, /* interface from msh */
#ifdef MHE
-#define BILDSW 25
+#define BILDSW 24
{ "build", 5 }, /* interface from mhe */
#endif
short ccme = -1;
short querysw = 0;
-short outputlinelen = OUTPUTLINELEN;
short groupreply = 0; /* Is this a group reply? */
int mime = 0; /* include original as MIME part */
querysw = 0;
continue;
- case WIDTHSW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- if ((outputlinelen = atoi(cp)) < 10)
- adios(NULL, "impossible width %d",
- outputlinelen);
- continue;
}
}
if (*cp == '+' || *cp == '@') {
form = etcpath(replcomps);
}
- replout(in, msg, drft, mp, outputlinelen, mime, form, filter, fcc);
+ replout(in, msg, drft, mp, mime, form, filter, fcc);
fclose(in);
if (nwhat)
void
-replout(FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
+replout(FILE *inb, char *msg, char *drft, struct msgs *mp,
int mime, char *form, char *filter, char *fcc)
{
register int state, i;
dat[0] = 0;
dat[1] = 0;
dat[2] = 0;
- dat[3] = outputlinelen;
+ dat[3] = OUTPUTLINELEN;
dat[4] = 0;
fmt_scan(fmt, scanl, i, dat);
fputs(scanl, out);
{ "watch", 0 },
#define NWATCSW 15
{ "nowatch", 0 },
-#define WIDTHSW 16
- { "width columns", 0 },
-#define VERSIONSW 17
+#define VERSIONSW 16
{ "version", 0 },
-#define HELPSW 18
+#define HELPSW 17
{ "help", 0 },
{ NULL, 0 }
};
case ALIASW:
case FILTSW:
- case WIDTHSW:
vec[vecp++] = --cp;
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s",
{ "alias aliasfile", 0 },
#define NALIASW 13
{ "noalias", 0 },
-#define WIDTHSW 14
- { "width columns", 0 },
-#define VERSIONSW 15
+#define VERSIONSW 14
{ "version", 0 },
-#define HELPSW 16
+#define HELPSW 15
{ "help", 0 },
-#define DEBUGSW 17
+#define DEBUGSW 16
{ "debug", -5 },
-#define DISTSW 18
+#define DISTSW 17
{ "dist", -4 }, /* interface from dist */
-#define PUSHSW 19 /* fork to sendmail then exit */
+#define PUSHSW 18 /* fork to sendmail then exit */
{ "push", -4 },
-#define NPUSHSW 20 /* exec sendmail */
+#define NPUSHSW 19 /* exec sendmail */
{ "nopush", -6 },
-#define LIBSW 21
+#define LIBSW 20
{ "library directory", -7 },
-#define ANNOSW 22
+#define ANNOSW 21
{ "idanno number", -6 },
{ NULL, 0 }
};
static int backflg = 0; /* rename input file as *.bak when done */
static int pushflg = 0; /* if going to fork to sendmail */
static int aliasflg = 0; /* if going to process aliases */
-static int outputlinelen=72;
static unsigned msgflags = 0; /* what we've seen */
aliasflg = 0;
continue;
- case WIDTHSW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- outputlinelen = atoi(cp);
- if (outputlinelen <= 10)
- outputlinelen = 72;
- continue;
-
case LIBSW:
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s",
len = strlen( adr );
if (pos == indent)
linepos = pos;
- else if (linepos+len > outputlinelen) {
+ else if (linepos+len > OUTPUTLINELEN) {
fprintf( out, ",\n%*s", indent, "");
linepos = indent;
pos += indent + 2;