From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87868 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.gnus.general Subject: Re: citation get name no matter name or e-mail Date: Sat, 06 Jan 2018 06:33:14 +0100 Message-ID: <86a7xry2jp.fsf@zoho.com> References: <86po6ny2nv.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515216930 7051 195.159.176.226 (6 Jan 2018 05:35:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 05:35:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36082@lists.math.uh.edu Sat Jan 06 06:35:26 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXh8e-0001Vs-UF for ding-account@gmane.org; Sat, 06 Jan 2018 06:35:25 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id ad7db4f7-f2a3-11e7-83d2-b499baa2b07a; Sat, 06 Jan 2018 05:37:27 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.89) (envelope-from ) id 1eXhAY-0008BO-7O; Fri, 05 Jan 2018 23:37:22 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eXhAV-0008AY-9b for ding@lists.math.uh.edu; Fri, 05 Jan 2018 23:37:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.89) (envelope-from ) id 1eXhAU-0005xX-61 for ding@lists.math.uh.edu; Fri, 05 Jan 2018 23:37:19 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1eXhAS-0005Tk-Tt for ding@gnus.org; Sat, 06 Jan 2018 06:37:16 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eXh8J-0000BK-Ax for ding@gnus.org; Sat, 06 Jan 2018 06:35:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:ihsgde4zZbK5qkrxXSaH4ESTUJg= X-Spam-Score: 2.1 (++) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.4997 Ham tokens: 0.000-7--240h-0s--0d--U*joe, 0.000-3--101h-0s--0d--H*M:fsf, 0.000-3--86h-0s--0d--H*u:Emacs, 0.000-3--86h-0s--0d--H*UA:Emacs, 0.000-2--53h-0s--0d--H*u:Gnus Spam tokens: 0.996-27751--546h-22944s--0d--H*r:quimby.gnus.org, 0.996-16029--321h-13257s--0d--HX-Envelope-From:sk:junkmas, 0.996-16029--321h-13257s--0d--H*RT:sk:junkmas, 0.996-16029--321h-13257s--0d--Hx-spam-relays-internal:sk:junkmas, 0.994-28713--933h-24038s--0d--HTo:D*gnus.org Autolearn status: no autolearn_force=no 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (moasen[at]zoho.com) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4997] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87868 Archived-At: Or perhaps better looking: (defun citation-style-f () (let*((from (mail-header-from message-reply-headers)) (from-data (gnus-extract-address-components from)) (name (or (car from-data) ;; if the cited user hasn't set his name ;; use first part of his e-mail ;; e.g., joe@hacker.com -> joe (car (split-string (cadr from-data) "@")))) (citation-string (format "%s wrote:\n\n" name)) ) (insert citation-string) )) (setq message-citation-line-function #'citation-style-f) -- underground experts united http://user.it.uu.se/~embe8573