Skip to content

Commit e9bbc43

Browse files
Add (and ignore) -B option. (#2)
Co-authored-by: Greg Arnold <greg@arnoldassociates.com>
1 parent a4064ad commit e9bbc43

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

ssmtp.8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Forces ssmtp to use IPv4 addresses only.
5151
.B \-6
5252
Forces ssmtp to use IPv6 addresses only.
5353

54+
.TP
55+
\fB\-B\fP \fIbody_type\fP
56+
(ignored) The message body MIME type: 7BIT or 8BITMIME.
57+
5458
.TP
5559
\fB\-au\fP\fIusername\fP
5660
Specifies username for SMTP authentication.

ssmtp.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,6 +1839,16 @@ char **parse_options(int argc, char *argv[])
18391839
paq("-bz is meaningless to sSMTP\n");
18401840
}
18411841

1842+
/* Body type*/
1843+
case 'B':
1844+
if(!argv[i][j+1]) {
1845+
add++;
1846+
goto exit;
1847+
}
1848+
else {
1849+
continue;
1850+
}
1851+
18421852
/* Configfile name */
18431853
case 'C':
18441854
if((!argv[i][(j + 1)]) && argv[(i + 1)]) {

0 commit comments

Comments
 (0)