Re: How to show bcc in the raw message generate by mutt?

2021-02-04 Thread Chinmaya Nagpal
On Thu, Feb 04, 2021 at 10:24:17AM -0600, Peng Yu wrote:
> The Bcc field is not shown in the generated message. Is there a way to
> let mutt generate the Bcc field from the command line? Thanks.

Yes, set the write_bcc variable to "yes". And please read the manual!

http://www.mutt.org/doc/manual/#write-bcc

$ mutt -F temp.muttrc -b b...@addr.com -c c...@addr.com t...@addr.com <<< 
aaa
Date: Thu, 4 Feb 2021 22:08:28 +0530
From: My name 
To: t...@addr.com
Cc: c...@addr.com
Bcc: b...@addr.com
Message-ID: 
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Cheers, 
Chin

-- 
Chinmaya Nagpal
https://useplaintext.email/


How to show bcc in the raw message generate by mutt?

2021-02-04 Thread Peng Yu
Hi,

The Bcc field is not shown in the generated message. Is there a way to
let mutt generate the Bcc field from the command line? Thanks.

$ mutt -F temp.muttrc -b b...@addr.com -c c...@addr.com t...@addr.com <<< aaa
Date: Thu, 4 Feb 2021 10:21:10 -0600
From: My name 
To: t...@addr.com
Cc: c...@addr.com
Message-ID: <20210204162110.ga98...@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

aaa
$ cat temp.muttrc
set realname='My name'
set from=mya...@gmail.com
set hostname = gmail.com
set sendmail=/tmp/mycat.sh
$ cat /tmp/mycat.sh
#!/usr/bin/env bash
# vim: set noexpandtab tabstop=2:

cat

-- 
Regards,
Peng