if (fgets(cwd, sizeof (cwd), f) == NULL) {
advise (buf, "fgets");
}
- TrimSuffixC(cwd, '\n');
+ trim_suffix_c(cwd, '\n');
pclose(f);
}
else {
case PWDCMDSW:
/* Print the working directory for attachments */
- printf("%s\n", cwd);
+ puts(cwd);
break;
case LSCMDSW:
while (fgets(shell, sizeof (shell), f) != NULL) {
char *ctype;
- TrimSuffixC(shell, '\n');
+ trim_suffix_c(shell, '\n');
if (*shell == '/') {
strncpy(file, shell, sizeof(file));
writelscmd(buf, sizeof(buf), "-d --", argp);
if ((f = popen_in_dir(cwd, buf, "r")) != NULL) {
while (fgets(shell, sizeof (shell), f) != NULL) {
- TrimSuffixC(shell, '\n');
+ trim_suffix_c(shell, '\n');
annotate(drft, ATTACH_FIELD, shell, 1, 0, 0, 1);
}
pclose(f);
switch (child_id) {
case NOTOK:
advise (NULL, "unable to fork, so sending directly...");
+ /* FALLTHRU */
case OK:
vec = argsplit(sendproc, &program, &vecp);
if (pushsw)
X("tls", TLSminc(-3), TLSSW) \
X("initialtls", TLSminc(-10), INITTLSSW) \
X("notls", TLSminc(-5), NTLSSW) \
+ X("certverify", TLSminc(-10), CERTVERSW) \
+ X("nocertverify", TLSminc(-12), NOCERTVERSW) \
X("sendmail program", 0, MTSSM) \
X("mts smtp|sendmail/smtp|sendmail/pipe", 2, MTSSW) \
X("messageid localname|random", 2, MESSAGEIDSW) \
continue;
case DEBUGSW:
- debugsw++; /* fall */
+ debugsw++;
+ /* FALLTHRU */
case NFILTSW:
case FRMTSW:
case NFRMTSW:
case TLSSW:
case INITTLSSW:
case NTLSSW:
+ case CERTVERSW:
+ case NOCERTVERSW:
vec[vecp++] = --cp;
continue;
case SASLMECHSW:
saslmech = *argp;
- /* fall thru */
+ /* FALLTHRU */
case ALIASW:
case FILTSW:
case WIDTHSW:
advise (NULL, "missing argument to %s", argp[-2]);
return;
}
+ /* FALLTHRU */
case SNDRFSW:
continue;