From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#38169: Idea: custom From names ("From Personalities") Date: Mon, 11 Nov 2019 09:48:05 +0800 Message-ID: <87o8xjfaju.8.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183760"; mail-complaints-to="usenet@blaine.gmane.org" To: 38169@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 11:01:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iU6Vx-000lUk-2p for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 11:01:41 +0100 Original-Received: from localhost ([::1]:50358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU6Vq-0006Yq-Mj for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 05:01:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45182) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU6VR-0006Wh-TV for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 05:01:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iU6VM-0004rg-8b for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 05:01:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iU6VK-0004rS-El for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2019 05:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iU6VK-0007vP-A8; Mon, 11 Nov 2019 05:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Mon, 11 Nov 2019 10:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38169 X-GNU-PR-Package: emacs,gnus X-Debbugs-Original-To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Original-Received: via spool by submit@debbugs.gnu.org id=B.157346643230418 (code B ref -1); Mon, 11 Nov 2019 10:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2019 10:00:32 +0000 Original-Received: from localhost ([127.0.0.1]:53149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iU6Uq-0007uX-4t for submit@debbugs.gnu.org; Mon, 11 Nov 2019 05:00:32 -0500 Original-Received: from cow.ash.relay.mailchannels.net ([23.83.222.41]:44906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iU6Un-0007uJ-02 for submit@debbugs.gnu.org; Mon, 11 Nov 2019 05:00:30 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AC98350190E for ; Mon, 11 Nov 2019 10:00:24 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (100-96-169-194.trex.outbound.svc.cluster.local [100.96.169.194]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D75E6501DD9 for ; Mon, 11 Nov 2019 10:00:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Mon, 11 Nov 2019 10:00:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Spill-Ski: 37c815536949e7e9_1573466424326_3662147154 X-MC-Loop-Signature: 1573466424326:1296801942 X-MC-Ingress-Time: 1573466424326 Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id 6EDF79E22E for ; Mon, 11 Nov 2019 02:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=VAFWGVxASsEBknTT2udq0ShOdfo=; b=Nh6pBU9GSEIMCfAy aOi4tH/joVyVMdczKaWW8rNcOweAMMJJ8uLX9+eEX7KxpSF29H1jMKICsysmvfvT ygxUr99Nj74WQhw1xlDYDlJkNscFCEo797gmxTu4+d3TeUXJwStd9uDvGw5EI//2 +9BS0znm9QmOkadXG0uOEcaqRU0= Original-Received: from jidanni.org (36-234-97-6.dynamic-ip.hinet.net [36.234.97.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 111559D9A2 for ; Mon, 11 Nov 2019 02:00:18 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a11 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171418 Archived-At: Just the other day I was reading (info "(message) Reply") and I suddenly had a new idea: "From personalities". [Feature request]. Let's say we are replying to mom@nurdfamily.org. Well, we want our From: headers to say From: James Fartdom , or even From: Your loving son James . But let's instead say we are replying to secretary@plaztziph.com. Well in that case we want our From: header to look like From: Chairman Fartdom , or even From: Chairman J. Fartdom . or even From: Military Purchasing Director . Well all this could be accomplished with an alist of patterns of who we are replying to, vs. what header we should use, and what is the default if no matches. Note: what if it is a wide reply, and we are replying to both your mom, and the CEO? So maybe ask the user what From to use. Also note, this all will work great when *replying* to a message, but how about when composing a *new* message? OK when composing a new message, first insert the default From:, and then when the user finally pushes the Send button, ask the user ''Mom detected. Use "Your loving son" From? [y, n, ?]'' and then give the user one final look to see if he is happy, and then send the message. (Users should note that their ISP might reject sending using any other domain than the one they are paying for. However at least using Your loving son instead of James Fartdom should never run aground.)