From: Calvin Wan Date: Wed, 01 Feb 2023 23:52:52 GMT Subject: Re: [PATCH 4/5] pretty: Add name_and_address_only parameter Message-ID: <20230201235253.1891546-4-calvinwan@google.com> In-Reply-To: <20230119223858.29262-5-zev@bewilderbeest.net> Zev Weiss writes: > This is meant to be used with pp_user_info() when using it to format > email recipients generated by --to-cmd/--cc-cmd. When set it omits > the leading 'From: ', trailing linefeed, and the date suffix, and > additionally will return the input string unmodified if > split_ident_line() can't parse it (e.g. for a bare email address). I think the ideal solution, instead of choosing this hacky approach, is to refactor out the common functionality you need from pp_user_info() and to call that instead in your next patch.