# Only receive the topics I participated in or initiated on this mailing list.

18 messages from 2021-02-02 to 2021-02-03. Participants: Hongyi Zhao, Junio C Hamano, Jeff King, Matheus Tavares Bernardino, Eric Wong, Kyle Meyer.
Thread: https://gitlist.dev/t/55089

## Hongyi Zhao, 2021-02-02 05:35

Subject: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POK1s5fdzY74HyE9=0CV_B+HpbM9gU2qKuYtQAaPuc7XgQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POK1s5fdzY74HyE9%3D0CV_B%2BHpbM9gU2qKuYtQAaPuc7XgQ%40mail.gmail.com

```
Considering that the mail number per day of this mailing list is quite
large, is there a way to only receive the topics I participated in or
initiated on this mailing list?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Junio C Hamano, 2021-02-02 05:41

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAPc5daUtOMQB9YqOTQL4mrHpfyATe=FM01cW9Ngd1iy8aWwMmg@mail.gmail.com>
URL: https://gitlist.dev/e/CAPc5daUtOMQB9YqOTQL4mrHpfyATe%3DFM01cW9Ngd1iy8aWwMmg%40mail.gmail.com
In-Reply-To: <CAGP6POK1s5fdzY74HyE9=0CV_B+HpbM9gU2qKuYtQAaPuc7XgQ@mail.gmail.com>

```
You can,  on _your_ end, filter incoming messages that are sent via
vger.kernel.org and do not have your address on To or Cc.

```

## Hongyi Zhao, 2021-02-02 08:31

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POJ62-HG88uRv7yHHGy3Uu+T57APQ6GiNU3nQDW2eT4cXw@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POJ62-HG88uRv7yHHGy3Uu%2BT57APQ6GiNU3nQDW2eT4cXw%40mail.gmail.com
In-Reply-To: <CAPc5daUtOMQB9YqOTQL4mrHpfyATe=FM01cW9Ngd1iy8aWwMmg@mail.gmail.com>

```
On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> You can,  on _your_ end, filter incoming messages that are sent via
> vger.kernel.org and do not have your address on To or Cc.

I'm not sure if this can be done by Gmail.


--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Jeff King, 2021-02-02 08:58

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <YBkUJP2u4NcldpOp@coredump.intra.peff.net>
URL: https://gitlist.dev/e/YBkUJP2u4NcldpOp%40coredump.intra.peff.net
In-Reply-To: <CAGP6POJ62-HG88uRv7yHHGy3Uu+T57APQ6GiNU3nQDW2eT4cXw@mail.gmail.com>

```
On Tue, Feb 02, 2021 at 04:31:59PM +0800, Hongyi Zhao wrote:

> On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> >
> > You can,  on _your_ end, filter incoming messages that are sent via
> > vger.kernel.org and do not have your address on To or Cc.
> 
> I'm not sure if this can be done by Gmail.

If you only care about topics that you have participated in, the easiest
thing is to simply unsubscribe from the list. The usual convention on
this list is to keep recipients in the to/cc fields intact, so you'll
continue to receive those emails directly from their senders.

-Peff

```

## Hongyi Zhao, 2021-02-02 08:59

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POJeg4EB1Lx8NN0+PP-nxystKtLT_FH2UdQhoF13TjWvXg@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POJeg4EB1Lx8NN0%2BPP-nxystKtLT_FH2UdQhoF13TjWvXg%40mail.gmail.com
In-Reply-To: <CAPc5daUtOMQB9YqOTQL4mrHpfyATe=FM01cW9Ngd1iy8aWwMmg@mail.gmail.com>

```
On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> You can,  on _your_ end, filter incoming messages that are sent via
> vger.kernel.org and do not have your address on To or Cc.

Thank you very much for your comment. It seems that the following
Gmail filter will do the trick:

From: *@vger.kernel.org
To or Cc: -hongyi.zhao@gmail.com

But I can't find the Cc field on the filter panel.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Hongyi Zhao, 2021-02-02 09:02

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POKxr6k5KaC0xNaFGt=mBoEMkObNGHhDpUHQdEbsokrHhQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POKxr6k5KaC0xNaFGt%3DmBoEMkObNGHhDpUHQdEbsokrHhQ%40mail.gmail.com
In-Reply-To: <YBkUJP2u4NcldpOp@coredump.intra.peff.net>

```
On Tue, Feb 2, 2021 at 4:58 PM Jeff King <peff@peff.net> wrote:
>
> On Tue, Feb 02, 2021 at 04:31:59PM +0800, Hongyi Zhao wrote:
>
> > On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> > >
> > > You can,  on _your_ end, filter incoming messages that are sent via
> > > vger.kernel.org and do not have your address on To or Cc.
> >
> > I'm not sure if this can be done by Gmail.
>
> If you only care about topics that you have participated in, the easiest
> thing is to simply unsubscribe from the list.

Do you mean I still can post to this list without subscription to it?

> The usual convention on this list is to keep recipients in the to/cc fields intact, so you'll
> continue to receive those emails directly from their senders.
>
> -Peff



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Jeff King, 2021-02-02 09:20

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <YBkZZrDzBo0UC+SQ@coredump.intra.peff.net>
URL: https://gitlist.dev/e/YBkZZrDzBo0UC%2BSQ%40coredump.intra.peff.net
In-Reply-To: <CAGP6POKxr6k5KaC0xNaFGt=mBoEMkObNGHhDpUHQdEbsokrHhQ@mail.gmail.com>

```
On Tue, Feb 02, 2021 at 05:02:53PM +0800, Hongyi Zhao wrote:

> > If you only care about topics that you have participated in, the easiest
> > thing is to simply unsubscribe from the list.
> 
> Do you mean I still can post to this list without subscription to it?

Yes.

You can also read the archive at https://lore.kernel.org/git if you
later feel like checking for threads you might have missed.

-Peff

```

## Hongyi Zhao, 2021-02-02 09:30

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POJStLEGwiU6yobaA6ag1q1ametFoe2AVkOAs6zDQ5bk3A@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POJStLEGwiU6yobaA6ag1q1ametFoe2AVkOAs6zDQ5bk3A%40mail.gmail.com
In-Reply-To: <YBkZZrDzBo0UC+SQ@coredump.intra.peff.net>

```
On Tue, Feb 2, 2021 at 5:20 PM Jeff King <peff@peff.net> wrote:
>
> On Tue, Feb 02, 2021 at 05:02:53PM +0800, Hongyi Zhao wrote:
>
> > > If you only care about topics that you have participated in, the easiest
> > > thing is to simply unsubscribe from the list.
> >
> > Do you mean I still can post to this list without subscription to it?
>
> Yes.

Does this rule apply to all the lists residing on <http://vger.kernel.org/>?

>
> You can also read the archive at https://lore.kernel.org/git if you
> later feel like checking for threads you might have missed.
>
> -Peff



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Matheus Tavares Bernardino, 2021-02-02 14:28

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAHd-oW5KmK1JgaMmDBWA87oxG=U7MdA3GBpzA9P5NYbBOfZqCA@mail.gmail.com>
URL: https://gitlist.dev/e/CAHd-oW5KmK1JgaMmDBWA87oxG%3DU7MdA3GBpzA9P5NYbBOfZqCA%40mail.gmail.com
In-Reply-To: <CAGP6POJeg4EB1Lx8NN0+PP-nxystKtLT_FH2UdQhoF13TjWvXg@mail.gmail.com>

```
On Tue, Feb 2, 2021 at 6:02 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> >
> > You can,  on _your_ end, filter incoming messages that are sent via
> > vger.kernel.org and do not have your address on To or Cc.
>
> Thank you very much for your comment. It seems that the following
> Gmail filter will do the trick:
>
> From: *@vger.kernel.org
> To or Cc: -hongyi.zhao@gmail.com
>
> But I can't find the Cc field on the filter panel.

Maybe you can use the "Doesn't have" filter field. (It doesn't have
the same meaning, but perhaps it is close enough for your needs.) I
have this set on my Gmail account:
https://matheustavares.gitlab.io/posts/first-steps-contributing-to-git#filters

```

## Hongyi Zhao, 2021-02-02 14:53

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POKiNCmNYEWL+dZw8Cm5cLS5kqB5d_Lnq9tT6eowY1PO3g@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POKiNCmNYEWL%2BdZw8Cm5cLS5kqB5d_Lnq9tT6eowY1PO3g%40mail.gmail.com
In-Reply-To: <CAHd-oW5KmK1JgaMmDBWA87oxG=U7MdA3GBpzA9P5NYbBOfZqCA@mail.gmail.com>

```
On Tue, Feb 2, 2021 at 10:28 PM Matheus Tavares Bernardino
<matheus.bernardino@usp.br> wrote:
>
> On Tue, Feb 2, 2021 at 6:02 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> >
> > On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> > >
> > > You can,  on _your_ end, filter incoming messages that are sent via
> > > vger.kernel.org and do not have your address on To or Cc.
> >
> > Thank you very much for your comment. It seems that the following
> > Gmail filter will do the trick:
> >
> > From: *@vger.kernel.org
> > To or Cc: -hongyi.zhao@gmail.com
> >
> > But I can't find the Cc field on the filter panel.
>
> Maybe you can use the "Doesn't have" filter field. (It doesn't have
> the same meaning, but perhaps it is close enough for your needs.) I
> have this set on my Gmail account:
> https://matheustavares.gitlab.io/posts/first-steps-contributing-to-git#filters

Thanks a lot for your notes and I applied the setting rules suggested
by you now.

BTW, I'm not sure whether the following two formats are equivalent or not:

list:(<git.vger.kernel.org>) and list:(<git@vger.kernel.org>)

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Junio C Hamano, 2021-02-02 17:01

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <xmqqzh0mh09u.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqqzh0mh09u.fsf%40gitster.c.googlers.com
In-Reply-To: <YBkUJP2u4NcldpOp@coredump.intra.peff.net>

```
Jeff King <peff@peff.net> writes:

> On Tue, Feb 02, 2021 at 04:31:59PM +0800, Hongyi Zhao wrote:
>
>> On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
>> >
>> > You can,  on _your_ end, filter incoming messages that are sent via
>> > vger.kernel.org and do not have your address on To or Cc.
>> 
>> I'm not sure if this can be done by Gmail.
>
> If you only care about topics that you have participated in, the easiest
> thing is to simply unsubscribe from the list. The usual convention on
> this list is to keep recipients in the to/cc fields intact, so you'll
> continue to receive those emails directly from their senders.

Ahh, yes, that is indeed the right answer for this list, as we
accept and respond to messages from non-subscribers, and the
convention is to Cc everybody involved by default.

Thanks.

```

## Junio C Hamano, 2021-02-02 17:09

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <xmqqv9bagzwb.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqqv9bagzwb.fsf%40gitster.c.googlers.com
In-Reply-To: <CAGP6POJeg4EB1Lx8NN0+PP-nxystKtLT_FH2UdQhoF13TjWvXg@mail.gmail.com>

```
Hongyi Zhao <hongyi.zhao@gmail.com> writes:

> On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> You can,  on _your_ end, filter incoming messages that are sent via
>> vger.kernel.org and do not have your address on To or Cc.
>
> Thank you very much for your comment. It seems that the following
> Gmail filter will do the trick:
>
> From: *@vger.kernel.org
> To or Cc: -hongyi.zhao@gmail.com
>
> But I can't find the Cc field on the filter panel.

Here is what I use to process messages that are sent to me without
being sent to the mailing list:

    (to:gitster@pobox.com -(to:git@vger.kernel.org))

The rule is set to skip the inbox and throw it in dustbin ;-).

I'd imagine something like

    (-(to:hongyi.zhao@gmail.com) (to:git@vger.kernel.org))

would hit what you want to filter out.  Let me swap To/Cc of this
message so that you would appear on Cc so that you can experiment; I
think to: would work for such a message just fine as well.

```

## Eric Wong, 2021-02-02 22:23

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <20210202222339.GA20119@dcvr>
URL: https://gitlist.dev/e/20210202222339.GA20119%40dcvr
In-Reply-To: <CAGP6POJStLEGwiU6yobaA6ag1q1ametFoe2AVkOAs6zDQ5bk3A@mail.gmail.com>

```
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> On Tue, Feb 2, 2021 at 5:20 PM Jeff King <peff@peff.net> wrote:
> >
> > On Tue, Feb 02, 2021 at 05:02:53PM +0800, Hongyi Zhao wrote:
> >
> > > > If you only care about topics that you have participated in, the easiest
> > > > thing is to simply unsubscribe from the list.
> > >
> > > Do you mean I still can post to this list without subscription to it?
> >
> > Yes.
> 
> Does this rule apply to all the lists residing on <http://vger.kernel.org/>?

Yes, and any exceptions would be documented.

> > You can also read the archive at https://lore.kernel.org/git if you
> > later feel like checking for threads you might have missed.

Btw, you can use the "tc:" prefix to search To/Cc: fields
as documented in https://lore.kernel.org/git/_/text/help/

You can get all the messages sent to you in gzipped mboxrd
format via:

  curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m' >mboxrd.gz

And public-inbox.org/git still exists for redundancy and dogfooding:

  curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m' >mboxrd.gz

There may be a CLI tool for dealing with that in the near future
that lets you keep track of which messages you've read/unread or tagged :>

```

## Hongyi Zhao, 2021-02-03 00:24

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POKb4uPFECJ7Ghu-jZ+fe_S2oR_OdPDVQeMwnswp7KX_=g@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POKb4uPFECJ7Ghu-jZ%2Bfe_S2oR_OdPDVQeMwnswp7KX_%3Dg%40mail.gmail.com
In-Reply-To: <20210202222339.GA20119@dcvr>

```
On Wed, Feb 3, 2021 at 6:23 AM Eric Wong <e@80x24.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> > On Tue, Feb 2, 2021 at 5:20 PM Jeff King <peff@peff.net> wrote:
> > >
> > > On Tue, Feb 02, 2021 at 05:02:53PM +0800, Hongyi Zhao wrote:
> > >
> > > > > If you only care about topics that you have participated in, the easiest
> > > > > thing is to simply unsubscribe from the list.
> > > >
> > > > Do you mean I still can post to this list without subscription to it?
> > >
> > > Yes.
> >
> > Does this rule apply to all the lists residing on <http://vger.kernel.org/>?
>
> Yes, and any exceptions would be documented.
>
> > > You can also read the archive at https://lore.kernel.org/git if you
> > > later feel like checking for threads you might have missed.
>
> Btw, you can use the "tc:" prefix to search To/Cc: fields
> as documented in https://lore.kernel.org/git/_/text/help/
>
> You can get all the messages sent to you in gzipped mboxrd
> format via:
>
>   curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m' >mboxrd.gz
>
> And public-inbox.org/git still exists for redundancy and dogfooding:
>
>   curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m' >mboxrd.gz

Thank you for telling me this. But why the content can't be directly
print on the stdout as shown below:

werner@X10DAi:~$ curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m'
werner@X10DAi:~$ curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m'
werner@X10DAi:~$

As you can see, nothing is shown to me.

> There may be a CLI tool for dealing with that in the near future
> that lets you keep track of which messages you've read/unread or tagged :>



-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Kyle Meyer, 2021-02-03 00:34

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <87czxixa47.fsf@kyleam.com>
URL: https://gitlist.dev/e/87czxixa47.fsf%40kyleam.com
In-Reply-To: <CAGP6POKb4uPFECJ7Ghu-jZ+fe_S2oR_OdPDVQeMwnswp7KX_=g@mail.gmail.com>

```
Hongyi Zhao writes:

> On Wed, Feb 3, 2021 at 6:23 AM Eric Wong <e@80x24.org> wrote:
>>
>> You can get all the messages sent to you in gzipped mboxrd
>> format via:
>>
>>   curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m' >mboxrd.gz
>>
>> And public-inbox.org/git still exists for redundancy and dogfooding:
>>
>>   curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m' >mboxrd.gz
>
> Thank you for telling me this. But why the content can't be directly
> print on the stdout as shown below:
>
> werner@X10DAi:~$ curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m'
> werner@X10DAi:~$ curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m'
> werner@X10DAi:~$
>
> As you can see, nothing is shown to me.

It's gzip compressed.  Try something like this instead:

  $ curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m' | zless

```

## Eric Wong, 2021-02-03 00:36

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <20210203003612.GA22793@dcvr>
URL: https://gitlist.dev/e/20210203003612.GA22793%40dcvr
In-Reply-To: <CAGP6POKb4uPFECJ7Ghu-jZ+fe_S2oR_OdPDVQeMwnswp7KX_=g@mail.gmail.com>

```
Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> Thank you for telling me this. But why the content can't be directly
> print on the stdout as shown below:
> 
> werner@X10DAi:~$ curl -sSf -d '' 'https://lore.kernel.org/git/?q=tc:hongyi&x=m'
> werner@X10DAi:~$ curl -sSf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m'
> werner@X10DAi:~$
> 
> As you can see, nothing is shown to me.

Oops, leaving out '-s' for curl would've shown you the error.
It's gzipped for bandwidth + I/O savings and truncation checking),
so you can pipe it to zcat or "pigz -dc":

curl -Sf -d '' 'https://public-inbox.org/git/?q=tc:hongyi&x=m' | zcat

```

## Hongyi Zhao, 2021-02-03 00:55

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POJ4GPDL3uTzzBDSZ1ykypA4SyVEC5sc0W=FCLOsHmOntA@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POJ4GPDL3uTzzBDSZ1ykypA4SyVEC5sc0W%3DFCLOsHmOntA%40mail.gmail.com
In-Reply-To: <xmqqv9bagzwb.fsf@gitster.c.googlers.com>

```
On Wed, Feb 3, 2021 at 1:09 AM Junio C Hamano <gitster@pobox.com> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> >>
> >> You can,  on _your_ end, filter incoming messages that are sent via
> >> vger.kernel.org and do not have your address on To or Cc.
> >
> > Thank you very much for your comment. It seems that the following
> > Gmail filter will do the trick:
> >
> > From: *@vger.kernel.org
> > To or Cc: -hongyi.zhao@gmail.com
> >
> > But I can't find the Cc field on the filter panel.
>
> Here is what I use to process messages that are sent to me without
> being sent to the mailing list:
>
>     (to:gitster@pobox.com -(to:git@vger.kernel.org))
>
> The rule is set to skip the inbox and throw it in dustbin ;-).
>
> I'd imagine something like
>
>     (-(to:hongyi.zhao@gmail.com) (to:git@vger.kernel.org))
>
> would hit what you want to filter out.  Let me swap To/Cc of this
> message so that you would appear on Cc so that you can experiment; I
> think to: would work for such a message just fine as well.

Thanks a lot for your wonderful notes. Based on my trial and error
with Gmail's filter/search toolbar, It seems that the correct filter
should be written as follows to meet my requirements:

to:(git@vger.kernel.org) -{hongyi.zhao@gmail.com}
to:(git@vger.kernel.org) -hongyi.zhao@gmail.com

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```

## Hongyi Zhao, 2021-02-03 00:59

Subject: Re: Only receive the topics I participated in or initiated on this mailing list.
Message-ID: <CAGP6POKj+f3J76h7qDYRJ7CowUE9WM2L_QTamHYQ3_YvSM13MA@mail.gmail.com>
URL: https://gitlist.dev/e/CAGP6POKj%2Bf3J76h7qDYRJ7CowUE9WM2L_QTamHYQ3_YvSM13MA%40mail.gmail.com
In-Reply-To: <CAGP6POJ4GPDL3uTzzBDSZ1ykypA4SyVEC5sc0W=FCLOsHmOntA@mail.gmail.com>

```
On Wed, Feb 3, 2021 at 8:55 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Wed, Feb 3, 2021 at 1:09 AM Junio C Hamano <gitster@pobox.com> wrote:
> >
> > Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> >
> > > On Tue, Feb 2, 2021 at 1:41 PM Junio C Hamano <gitster@pobox.com> wrote:
> > >>
> > >> You can,  on _your_ end, filter incoming messages that are sent via
> > >> vger.kernel.org and do not have your address on To or Cc.
> > >
> > > Thank you very much for your comment. It seems that the following
> > > Gmail filter will do the trick:
> > >
> > > From: *@vger.kernel.org
> > > To or Cc: -hongyi.zhao@gmail.com
> > >
> > > But I can't find the Cc field on the filter panel.
> >
> > Here is what I use to process messages that are sent to me without
> > being sent to the mailing list:
> >
> >     (to:gitster@pobox.com -(to:git@vger.kernel.org))
> >
> > The rule is set to skip the inbox and throw it in dustbin ;-).
> >
> > I'd imagine something like
> >
> >     (-(to:hongyi.zhao@gmail.com) (to:git@vger.kernel.org))
> >
> > would hit what you want to filter out.  Let me swap To/Cc of this
> > message so that you would appear on Cc so that you can experiment; I
> > think to: would work for such a message just fine as well.
>
> Thanks a lot for your wonderful notes. Based on my trial and error
> with Gmail's filter/search toolbar, It seems that the correct filter
> should be written as follows to meet my requirements:
>
> to:(git@vger.kernel.org) -{hongyi.zhao@gmail.com}
> to:(git@vger.kernel.org) -hongyi.zhao@gmail.com

NB, you can also change the "@" to ".", they are equivalent in the
filtering result, as shown below:

 to:(git.vger.kernel.org) -{hongyi.zhao.gmail.com}
 to:(git.vger.kernel.org) -hongyi.zhao.gmail.com

Best
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

```
