{"thread":{"id":"43266","subject":"Re: [RFC] E-mail aliases","startedAt":"2006-12-12T12:49:26Z","lastAt":"2006-12-12T22:36:59Z","messageCount":4,"participants":["Junio C Hamano","Catalin Marinas","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"295069","messageId":"b0943d9e0612120449k4a13ac85t313df1e460ed46e4@mail.gmail.com","threadId":"43266","inReplyTo":null,"subject":"[RFC] E-mail aliases","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2006-12-12T12:49:26Z","receivedAt":"2006-12-12T12:49:26Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"Hi,\n\nI added a feature to StGIT (not released yet) so that one can specify\nan alias instead of a complete e-mail address on the command line (or\nin the template file), i.e.:\n\n  stg mail --to=lkml\n\nsets the \"To:\" header to \"linux-kernel@vger.kernel.org\".\n\nThe aliases are read from the [aliases] section in the gitconfig files\n(\"git repo-config aliases.lkml\" in this case). I just want to make\nsure than there isn't any other intended use for the [aliases] section\nin the config files.\n\nThanks.\n\n-- \n"},{"id":"294184","messageId":"7vvekhufib.fsf@assigned-by-dhcp.cox.net","threadId":"43266","inReplyTo":"b0943d9e0612120449k4a13ac85t313df1e460ed46e4@mail.gmail.com","subject":"Re: [RFC] E-mail aliases","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-12-12T18:37:48Z","receivedAt":"2006-12-12T18:37:48Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Catalin Marinas\" <catalin.marinas@gmail.com> writes:\n\n> sets the \"To:\" header to \"linux-kernel@vger.kernel.org\".\n>\n> The aliases are read from the [aliases] section in the gitconfig files\n> (\"git repo-config aliases.lkml\" in this case). I just want to make\n> sure than there isn't any other intended use for the [aliases] section\n> in the config files.\n\n[alias] is used to hold command-line alias, and it seems\nslightly confusing to have two sections that mean something\nquite different.\n\nPerhaps\n\n[mail \"alias\"]\n\tlkml = linux-kernel@vger.kernel.org\n\nif we are going to have other mail-related configurations that\nmight turn out be handy.  send-email would want smtp-server in\nthere, for example.\n\n"},{"id":"295511","messageId":"20061212193513.GA3984@localdomain","threadId":"43266","inReplyTo":"b0943d9e0612120449k4a13ac85t313df1e460ed46e4@mail.gmail.com","subject":"Re: [RFC] E-mail aliases","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2006-12-12T19:35:14Z","receivedAt":"2006-12-12T19:35:14Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Catalin Marinas <catalin.marinas@gmail.com> wrote:\n> Hi,\n> \n> I added a feature to StGIT (not released yet) so that one can specify\n> an alias instead of a complete e-mail address on the command line (or\n> in the template file), i.e.:\n> \n>  stg mail --to=lkml\n\ngit-send-email can be configured to parse mutt, mailrc, pine and gnu\nalias files.  I use the mutt one extensively myself and find it very\nuseful.\n\n-- \n"},{"id":"297116","messageId":"b0943d9e0612121436u6cf7c200i92ba056103a80b13@mail.gmail.com","threadId":"43266","inReplyTo":"7vvekhufib.fsf@assigned-by-dhcp.cox.net","subject":"Re: [RFC] E-mail aliases","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2006-12-12T22:36:59Z","receivedAt":"2006-12-12T22:36:59Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 12/12/06, Junio C Hamano <junkio@cox.net> wrote:\n> \"Catalin Marinas\" <catalin.marinas@gmail.com> writes:\n>\n> > sets the \"To:\" header to \"linux-kernel@vger.kernel.org\".\n> >\n> > The aliases are read from the [aliases] section in the gitconfig files\n> > (\"git repo-config aliases.lkml\" in this case). I just want to make\n> > sure than there isn't any other intended use for the [aliases] section\n> > in the config files.\n>\n> [alias] is used to hold command-line alias, and it seems\n> slightly confusing to have two sections that mean something\n> quite different.\n\nDidn't know about [alias]. It is indeed confusing to have [aliases] as well.\n\n> Perhaps\n>\n> [mail \"alias\"]\n>         lkml = linux-kernel@vger.kernel.org\n\nThe other option would be to teach stgit to parse alias files used by\nmutt etc. as Eric mentioned in the other e-mail (and it doesn't look\ndifficult). The problem is that you would need to know how to generate\nthem manually if you use other e-mail clients or web-based services.\n\n> if we are going to have other mail-related configurations that\n> might turn out be handy.  send-email would want smtp-server in\n> there, for example.\n\nAt a quick look, it seems that git-send-email already uses a\n[sendemail] section. StGIT currently reads the smtpserver and\nauthentication information from the [stgit] section.\n\n-- \n"}]}