From 51170ed3548dcc3af8050aea237f2877d89fb978 Mon Sep 17 00:00:00 2001 From: Greg Arnold Date: Fri, 30 May 2025 11:29:38 -0400 Subject: [PATCH] Add (and ignore) -B option. --- ssmtp.8 | 4 ++++ ssmtp.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/ssmtp.8 b/ssmtp.8 index 5dbad9e..116c446 100644 --- a/ssmtp.8 +++ b/ssmtp.8 @@ -51,6 +51,10 @@ Forces ssmtp to use IPv4 addresses only. .B \-6 Forces ssmtp to use IPv6 addresses only. +.TP +\fB\-B\fP \fIbody_type\fP +(ignored) The message body MIME type: 7BIT or 8BITMIME. + .TP \fB\-au\fP\fIusername\fP Specifies username for SMTP authentication. diff --git a/ssmtp.c b/ssmtp.c index 387e71f..c5e9ae7 100644 --- a/ssmtp.c +++ b/ssmtp.c @@ -1839,6 +1839,16 @@ char **parse_options(int argc, char *argv[]) paq("-bz is meaningless to sSMTP\n"); } + /* Body type*/ + case 'B': + if(!argv[i][j+1]) { + add++; + goto exit; + } + else { + continue; + } + /* Configfile name */ case 'C': if((!argv[i][(j + 1)]) && argv[(i + 1)]) {