From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BULK_RE_SUSP_NTLD,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_SUSPICIOUS_NTLD,PDS_OTHER_BAD_TLD, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 32280 invoked from network); 17 Nov 2020 10:21:16 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2020 10:21:16 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1key5E-0067mN-1o; Tue, 17 Nov 2020 04:19:32 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1key5D-00Besy-Ik; Tue, 17 Nov 2020 04:19:31 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1key58-00BerM-BY for ding@lists.math.uh.edu; Tue, 17 Nov 2020 04:19:26 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1key56-00CjBW-CV for ding@lists.math.uh.edu; Tue, 17 Nov 2020 04:19:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version: In-Reply-To:Date:References:Message-ID:Subject:To:From:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KidMKx3+Arsq/trQkYfEwtwYuUFbyj+IgLy5bN/7vMA=; b=qAP9velii8Buk2UTNKWZ9V8Zq4 8wys3DJmoeYPmWdS9jfzV4BD14zNP5xOMFXtPo+rMv4Cb5CxW72zRCS7FwUxUD562tjFc9OO82FST 0vNwQ8LNf4EPMg7blsWEXq0Yx1LYPWjjB08FCpxWzt56KLxC5JTWV4g2Ebz67T7bCfr4=; Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1key4w-0002d0-SS for ding@gnus.org; Tue, 17 Nov 2020 11:19:19 +0100 Received: by mail-pj1-x1034.google.com with SMTP id gi3so214318pjb.3 for ; Tue, 17 Nov 2020 02:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=doraji.xyz; s=yw; h=from:to:subject:organization:message-id:references:date:in-reply-to :user-agent:mime-version:content-transfer-encoding; bh=KidMKx3+Arsq/trQkYfEwtwYuUFbyj+IgLy5bN/7vMA=; b=Jiru9gtGvH0rnRhnNWbNHjnQVSNGHk9HXVzQa6SmO4CXnXusUgngolc3fvJfPWhwFe TkON1NkbDZ8Nu51bLBDCamSAXLyWNoV6tNzhMAMEDdBHDPw5ykl0DaSDAfrw88Jo1FcD RCEWtCYpTHFH7ca/sx89gPBZBA6h9JveHdpFZ8A8inHDf5CnMx3Jyneyl0yH0lV94VGS 68vtULRQdMxCRv7yUA/nq7A05nkXmE9LeyKbZwgY1cAvufwIeKedw3XbFClHsv41kwZP y+e6EbhACSMFe/pO3pZ7+sJXSv/H+mw7ECw3nLO3Lo4OKMM2/7jYh9qaRsLVcdntt5D8 qVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:message-id :references:date:in-reply-to:user-agent:mime-version :content-transfer-encoding; bh=KidMKx3+Arsq/trQkYfEwtwYuUFbyj+IgLy5bN/7vMA=; b=KOaroy7fuiEjBr6ZOR9Y/h08yLTVKbHxNleX7n2mbXkeIEYgoKW349ndcLuJmRz6Pd tCIghtaEbIV3+EjMQXdcRzzv9lcQtqMoEXCyTB95m2OAeMDfGozdZ3OImRTJEC1ieOYB Ofx1y/U/H4PJTgX0sLtUZ/WGbZhajOk1U3/Ff+KksTAxBPGAH+Lqeun2BESA02HMkTae HXE4ejJCZBDwGQGWWgi/CgEPU5DzQ2YS3AvbGiJzHrQ4eii76rUaQLaYnL2D7wyCYXb9 h0yJsn5yNIAYBbKsprxZnUdsSrg1sP8T9WoJg86VnHvH9SWaWDa4gsfX2l8P1qK4GAvI +5wQ== X-Gm-Message-State: AOAM53370NxhDjpA+l4mdy3nVLFKB9e3ikQuBVwJE/LiIzjJPUOWHjuA +qdBw8aTWCrHUjgBqk/UP3h/AChPn7VzbGNS X-Google-Smtp-Source: ABdhPJz4TRC8DIbRCzbcbbemQ0+5KR3Q3T0UAXwEGI42Yc2eyZb90Vx3Pn6fgbebzd1Q4GhKi6+cfQ== X-Received: by 2002:a17:902:a9c9:b029:d6:2d8f:f7b4 with SMTP id b9-20020a170902a9c9b02900d62d8ff7b4mr17117913plr.2.1605608352458; Tue, 17 Nov 2020 02:19:12 -0800 (PST) Received: from delta.birch.chromebook ([223.33.153.215]) by smtp.gmail.com with ESMTPSA id l10sm2650179pjg.3.2020.11.17.02.19.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Nov 2020 02:19:11 -0800 (PST) Received: by delta.birch.chromebook (sSMTP sendmail emulation); Tue, 17 Nov 2020 19:19:04 +0900 From: =?utf-8?B?7Zmp67OR7Z2s?= To: The Gnus Subject: Re: elisp question with multiple smtp gnus Organization: =?utf-8?B?6YeR6Zm1ICjsl7Dsm5DsnZgg66eI7J2MKQ==?= Message-ID: References: <87wnyngwt6.fsf@delta.birch.chromebook> X-Thanks-Workers: =?utf-8?B?7J2066eI65GQLCDsnbTsiJzsi6AsIOyghOuqheyImSwg?= =?utf-8?B?7KeE7ZGc7Jyo7IKsLCDqtIDsmrTsnqUsIOyXrOuPmeu5iCwg6rCV7YOc6rO1?= X-Thanks-Today: =?utf-8?Q?https=3A=2F=2Fgitlab=2Ecom=2Fsoyeomul=2FGnus=2F-?= =?utf-8?Q?=2Fraw=2FMaGnus=2F=EB=A7=90=EC=94=80=2F=EA=B5=90=EB=B2=953?= =?utf-8?Q?=EC=9E=A512=EC=A0=88=2Etxt?= X-Thanks-Thanks-Thanks: =?utf-8?B?7LKc7ZWY7LC97IOd7J2EIOuLpCDsgrTrpqzsi5w=?= =?utf-8?B?66Ck64qUIOuniOydjC4uLl5eXg==?= X-Thanks-Right-Mindset: 'toothless' & 'hiccup' X-Thanks-MID-Tool: https://gitlab.com/soyeomul/__yw__/-/blob/master/tmid.py X-Thanks-Absolete-Coding-System: UTF-8 X-Operating-System: =?utf-8?B?4omqZGluZ+KJqw==?= -- The Gnus X-Gnus-Motto: In a cloud bones of steel. X-Gnus-Desktop: gnome/x11 ('Ubuntu', '18.04', 'bionic') Date: Tue, 17 Nov 2020 19:19:04 +0900 In-Reply-To: (=?utf-8?B?Iu2ZqQ==?= =?utf-8?B?67OR7Z2sIidz?= message of "Mon, 16 Nov 2020 23:05:40 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk =ED=99=A9=EB=B3=91=ED=9D=AC writes: > =ED=99=A9=EB=B3=91=ED=9D=AC writes: > >> Byung-Hee HWANG writes: >> >>> Hellow! >>> >>> i am beginner at elisp. as far as i write-up below code. >>> =3D=3D=3D> references: emacs wiki [multiple smtp gnus] >>> >>> #+begin_src emacs lisp >>> (setq user-full-name "Byung-Hee HWANG") >>> (setq sendmail-program "/usr/sbin/ssmtp") >>> >>> (defun setHome () >>> (interactive) >>> (message "from home -- soyeomul@doraji.xyz") >>> (setq user-mail-address "soyeomul@doraji.xyz") >>> (setq message-sendmail-extra-arguments '("-C" "/etc/ssmtp/ssmtp-yw.co= nf"))) >>> >>> (defun setWork () >>> (interactive) >>> (message "from work -- soyeomul@gmail.com") >>> (setq user-mail-address "soyeomul@gmail.com") >>> (setq message-sendmail-extra-arguments '("-C" "/etc/ssmtp/ssmtp-gmail= .conf"))) >>> >>> (add-hook 'message-mode-hook >>> '(lambda () >>> (if (y-or-n-p "at home?") >>> (progn (setHome)) >>> (progn (setWork))))) >>> #+end_src >>> >>> at then, question... >>> >>> how can i enable the above rule only when i hit `m' key? >>> >>> i try to google and emacs manual etc... but failed.. >>> >>> Sincerely, Gnus fan Byung-Hee >> >> After all i did make up with my approch: >> https://gitlab.com/soyeomul/Gnus/-/raw/74ff79a7685d3e12dd49249bd6228b82b= 4c7061f/gnus-first-try.el > > UPDATING: > https://gitlab.com/soyeomul/Gnus/-/blob/31f9d6c1473effffa0fdb52dc64f1e14d= f681b54/gnus-first-try.el This is real final code: https://gitlab.com/soyeomul/Gnus/-/blob/a3ab649e1b4aa438059a6f6e4fd1f0860ac= 4b69b/gnus-first-try.el So i am happy now, thanks for Gnus hackers~ Sincerely, Gnus fan Byung-Hee --=20 ^=EA=B3=A0=EB=A7=99=EC=8A=B5=EB=8B=88=EB=8B=A4 _=E5=9C=B0=E5=B9=B3=E5=A4=A9= =E6=88=90_ =EA=B0=90=EC=82=AC=ED=95=A9=EB=8B=88=EB=8B=A4_^))//