From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87242 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Custom Message-ID Date: Mon, 15 Aug 2016 12:30:42 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <8737m78ri3.fsf@alex.chromebook> <87fuq74gdg.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1471278714 17822 195.159.176.226 (15 Aug 2016 16:31:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2016 16:31:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: Eric Abrahamsen , ding@gnus.org To: "Byung-Hee HWANG "(=?utf-8?B?7Zmp67OR7Z2s?=)"" Original-X-From: ding-owner+M35462@lists.math.uh.edu Mon Aug 15 18:31:50 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZKnk-0004Eh-Oe for ding-account@gmane.org; Mon, 15 Aug 2016 18:31:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1bZKn2-0000gj-4A; Mon, 15 Aug 2016 11:31:04 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bZKmz-0000gJ-MD for ding@lists.math.uh.edu; Mon, 15 Aug 2016 11:31:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1bZKmy-0001Db-HL for ding@lists.math.uh.edu; Mon, 15 Aug 2016 11:31:01 -0500 Original-Received: from mail-pf0-f182.google.com ([209.85.192.182]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1bZKmu-0002jm-Mg for ding@gnus.org; Mon, 15 Aug 2016 18:30:56 +0200 Original-Received: by mail-pf0-f182.google.com with SMTP id y134so18226974pfg.0 for ; Mon, 15 Aug 2016 09:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=pVII8iemiW+MKI41ckjNLquSbtuQL/fOE0D8b0qNCJI=; b=c8gvX5V3J06wnT+sMghja+pFzLS604YGGH5iYHgz72sIOYQpHLepJLRO5/QJb2xqxX gdj6RdPVH+bbjjFiO6fGEJgyQ4gq9WIQWXLvhJ6+8qBl9izyh71ShcmFn2vuk9OZYvZE A8m4Xaa40rl1Lm/7MvWzNfnS0GhdkYdHtIgnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=pVII8iemiW+MKI41ckjNLquSbtuQL/fOE0D8b0qNCJI=; b=ievZv4Z+V6/sdB51XHoRF2QBaMY2R/pZ1v8x26lkk7lmwGCuSNcdxRnJYg7QqPgSUy +24utDBNknYHtbn6WvKRjR5Z2DMNC0lDwaJMmjE3sU6oGENUCww1/hQy/SXJsODp0dpV tyqH1ifgWyfPe4QjuOOzkn3VGsL4EBWVHZjDJq4sp3PeUezQsdVTIYUc8Edeoez/KjOo 23qbQU+NHuzE2Zs8ZHhhaysiIrYc1VDpybHzoANFGA8Uwa1tch8pVdGaoHJNsatyK7L3 xOa60uT2APpcL7FYRsMr8RLbnQSsE5KLfFht4HYwhFnfvu22CQql8dMLHGpWa1SdqS6f D9Pg== X-Gm-Message-State: AEkoouuoai9UVQ1Zab8CPvfDPHOBvACEw+D/3EfqBYz8YM+9epgJlgFVexonUskLaZiLaQ== X-Received: by 10.98.72.201 with SMTP id q70mr3152984pfi.159.1471278648712; Mon, 15 Aug 2016 09:30:48 -0700 (PDT) Original-Received: from flea (c-98-229-60-157.hsd1.ma.comcast.net. [98.229.60.157]) by smtp.gmail.com with ESMTPSA id e187sm32645378pfg.43.2016.08.15.09.30.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Aug 2016 09:30:47 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Byung-Hee HWANG's message of "Mon, 15 Aug 2016 23:07:49 +0900") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87242 Archived-At: (resending because Gmane is not posting, sorry if this ends up as a duplicate) On Mon, 15 Aug 2016 23:07:49 +0900 "Byung-Hee HWANG "(=ED=99=A9=EB=B3=91=ED= =9D=AC)"" wrote:=20 BH> Solved it, thanks! Eric!!! BH> ### begins here ### BH> --- message.el.orig 2016-08-15 20:07:35.222584247 +0900 BH> +++ message.el 2016-08-15 21:32:18.315036847 +0900 BH> @@ -5731,6 +5731,7 @@ BH> (* 25 25))) BH> (let ((tm (current-time))) BH> (concat BH> + "yw." BH> (if (or (eq system-type 'ms-dos) BH> ;; message-number-base36 doesn't handle bigints. BH> (floatp (user-uid))) BH> ### ends here ### BH> That is not elegant style, though i'm so happy! I think you can use advice instead, since you just want to prepend a string: (defun yw-message-unique-id (original) (concat "yw." original)) (advice-add #'message-unique-id :filter-return #'yw-message-unique-id) (message-unique-id) ;; "yw.random ID" ;; then you can remove it (advice-remove #'message-unique-id #'yw-message-unique-id) That can go in your emacs.el and leave message.el clean unpatched :) HTH Ted