There are mailing lists (ARM Linux Kernel is one of them) that filter out
e-mails having the In-Reply-To: header but a subject line not starting with
Re:. With this option, the mail command will not create the reply-specific
headers (the patch series will be unthreaded).
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
make_option('--bcc',
help = 'add BCC to the Bcc: list',
action = 'append'),
make_option('--bcc',
help = 'add BCC to the Bcc: list',
action = 'append'),
+ make_option('--noreply',
+ help = 'do not send subsequent messages as replies',
+ action = 'store_true'),
make_option('-v', '--version', metavar = 'VERSION',
help = 'add VERSION to the [PATCH ...] prefix'),
make_option('-t', '--template', metavar = 'FILE',
make_option('-v', '--version', metavar = 'VERSION',
help = 'add VERSION to the [PATCH ...] prefix'),
make_option('-t', '--template', metavar = 'FILE',
if total_nr == 0:
raise CmdException, 'No patches to send'
if total_nr == 0:
raise CmdException, 'No patches to send'
+ if options.noreply:
+ ref_id = None
+ else:
+ ref_id = options.refid
if options.sleep != None:
sleep = options.sleep
if options.sleep != None:
sleep = options.sleep
from_addr, to_addr_list = __parse_addresses(msg)
# subsequent e-mails are seen as replies to the first one
from_addr, to_addr_list = __parse_addresses(msg)
# subsequent e-mails are seen as replies to the first one
+ if not options.noreply:
+ ref_id = msg_id
if options.mbox:
__write_mbox(from_addr, msg)
if options.mbox:
__write_mbox(from_addr, msg)
from_addr, to_addr_list = __parse_addresses(msg)
# subsequent e-mails are seen as replies to the first one
from_addr, to_addr_list = __parse_addresses(msg)
# subsequent e-mails are seen as replies to the first one
+ if not options.noreply and not ref_id:
ref_id = msg_id
if options.mbox:
ref_id = msg_id
if options.mbox: