git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: extracting to/cc addresses for stg mail

From
Karl Hasselström <kha@treskal.com>
Date
Aug 5, 2008, 13:39 UTC
Message-ID
<20080805133922.GB29499@diana.vm.bytemark.co.uk>
In-Reply-To
<200808011650.45915.bjorn.helgaas@hp.com>
On 2008-08-01 16:50:45 -0600, Bjorn Helgaas wrote:
> Is there a way to make stg pay attention to my "To:" lines in the
> patch description? Or another way to accomplish this?

It can't do it at the moment, but it should be easy to fix. In stgit/commands/mail.py, the following lines

    if options.auto:
        extra_cc = __get_signers_list(descr)
    else:
        extra_cc = []

add the extra CC addresses. You could augment __get_signers_list to return a tuple of to and cc addresses instead of just cc addresses, pass those addesses to the same place extra_cc is fed now, and that's it.

If you really hate Python, don't have time, etc., I can do it for you (as long as you agree to test it) -- just ask -- but I try to take every opportunity to get people to contribute patches. :-)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Bjorn HelgaasNext: Bjorn Helgaas
Message 2 of 3 in “extracting to/cc addresses for stg mail”
  1. Bjorn HelgaasAug 1, 2008
  2. Karl HasselströmAug 5, 2008
  3. Bjorn HelgaasAug 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.