Discussion:
set Bcc when To: is not myself
Yubin Ruan
2017-12-18 06:16:22 UTC
Permalink
How can I set the Bcc: to myself when To: is not myself?

I try something like this but it does not work:
send-hook "!~t ***@gmail.com" 'my_hdr Bcc: Yubin Ruan <***@gmail.com>'

Then I try this and it work when I try to send a fresh email:

send-hook "~t ablacktshirt" 'my_hdr Bcc:'
send-hook . 'my_hdr Bcc: Yubin Ruan <***@gmail.com>'

however when I reply to somebody, it does not work. Frustrating! ;-(

Yubin
David Woodfall
2017-12-18 07:34:36 UTC
Permalink
Post by Yubin Ruan
How can I set the Bcc: to myself when To: is not myself?
send-hook "~t ablacktshirt" 'my_hdr Bcc:'
however when I reply to somebody, it does not work. Frustrating! ;-(
Yubin
I read in an old post that changing/setting headers doesn't work with
send-hook.

You may want to try a folder-hook perhaps?
Yubin Ruan
2017-12-18 13:12:23 UTC
Permalink
Post by David Woodfall
Post by Yubin Ruan
How can I set the Bcc: to myself when To: is not myself?
send-hook "~t ablacktshirt" 'my_hdr Bcc:'
however when I reply to somebody, it does not work. Frustrating! ;-(
Yubin
I read in an old post that changing/setting headers doesn't work with
send-hook.
Is this a bug or something?

Yubin
David Woodfall
2017-12-18 14:52:14 UTC
Permalink
Post by Yubin Ruan
Post by David Woodfall
Post by Yubin Ruan
How can I set the Bcc: to myself when To: is not myself?
send-hook "~t ablacktshirt" 'my_hdr Bcc:'
however when I reply to somebody, it does not work. Frustrating! ;-(
Yubin
I read in an old post that changing/setting headers doesn't work with
send-hook.
Is this a bug or something?
Yubin
It doesn't seem to be.
Yubin Ruan
2017-12-28 01:37:45 UTC
Permalink
Post by Yubin Ruan
How can I set the Bcc: to myself when To: is not myself?
send-hook "~t ablacktshirt" 'my_hdr Bcc:'
however when I reply to somebody, it does not work. Frustrating! ;-(
Ah I still cannot figure out why these hook only work at sometime. Maybe I
just misunderstand the meaning of each hook.

Anyway, I found a configuration option that can solve my problem neatly:

set metoo=yes

Attribute goes to this SO thread:
https://stackoverflow.com/questions/12924804/mutt-reply-hook-cant-set-cc

Yubin
Patrick Shanahan
2017-12-27 01:45:08 UTC
Permalink
Post by Yubin Ruan
Post by Yubin Ruan
How can I set the Bcc: to myself when To: is not myself?
send-hook "~t ablacktshirt" 'my_hdr Bcc:'
however when I reply to somebody, it does not work. Frustrating! ;-(
Ah I still cannot figure out why these hook only work at sometime. Maybe I
just misunderstand the meaning of each hook.
set metoo=yes
https://stackoverflow.com/questions/12924804/mutt-reply-hook-cant-set-cc
back to the books, err docs I guess. hooks do not all work the same and
some only work under specific conditions and in certain order.
--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Loading...