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=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24411 invoked from network); 17 Apr 2023 17:04:01 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 17 Apr 2023 17:04:01 -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.2) (envelope-from ) id 1poSGk-005VnB-Lk for ml@inbox.vuxu.org; Mon, 17 Apr 2023 12:03:58 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1poSGk-000u54-0U for ml@inbox.vuxu.org; Mon, 17 Apr 2023 12:03:58 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1poSGg-000u4v-2v for ding@lists.math.uh.edu; Mon, 17 Apr 2023 12:03:55 -0500 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.2) (envelope-from ) id 1poSGe-00AMnQ-Pg for ding@lists.math.uh.edu; Mon, 17 Apr 2023 12:03:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: 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=D5i7/fHEb2dk0vzNCHtTSJ+XM0uQ1fTBGxuUh9YEzWo=; b=oiNZptJ5FVV+ns8y0NJ+y6/kw6 g041CPMYFMc00MHpE6DWetcrmzJ2K/y+Kdf4027eM4b+jPSWXfNPiz1JuSDn0EaDdiXnlULyv/zC5 KSJUECkw9ih6gxW89kj1H9Q3GrE5lkUxJ6MGNvDgwNJDuNWXMdReS2U5ZSw9S3+8tbsY=; Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1poSGW-00069Z-VQ for ding@gnus.org; Mon, 17 Apr 2023 19:03:47 +0200 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1a67bcde3a7so15412545ad.3 for ; Mon, 17 Apr 2023 10:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20221208.gappssmtp.com; s=20221208; t=1681751023; x=1684343023; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=D5i7/fHEb2dk0vzNCHtTSJ+XM0uQ1fTBGxuUh9YEzWo=; b=gbAufWvi5WKKhWruUSf1uJSKLBBDqC1OweG7UaZmGnfS0baHAaWQR1l+CYJWCxZq+W FiddxL4L7VLOOB3Uaio4W3Q9Hl2oM1rA504YnIImDi8mVXaeOQSfWrzj0/rIYdn6nqYu KgVGn7NGo2+5jPOJjTu+asPiaviPDAUZwH1UIPvZafyhQwTF9gdsXVf4WU43LYT1QXbv Pax+8aWVjLrdZwWadIowJPkXA0J/TPpsYqL5Hc4xZIYZdaEHaj8KRzR+dqr08pZjSowH RtVFX6Vu2vbwkeJMLuYCgvnXh+8YChRX1gEsDkB2YVUUSgCohiGaV3DLotIuSZUs62Xw mH6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681751023; x=1684343023; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=D5i7/fHEb2dk0vzNCHtTSJ+XM0uQ1fTBGxuUh9YEzWo=; b=fFntKsuTfjnGBvq63DqayNz+MzrcsQk2oe+JVudxfnT/bysTsjatfyFrhPcwdNGZZE 97RJ4TAZ6Y4/G6HFVMD5RWPV82QO6wCci6CKtv/F8ZABBetVgaqj8i1lgOJ2q/68Fl3Y KaFRfwcpm+8nMnzaSl2jLTAnPE69iCJa2bLsXKWoBImVHLjIxRvyfqgZ4GoQ6v4op+zH tiCkHA48b49OjqObMZO4aIKUhTvbiIowxQiMYsXTFvEQet6KZeyHq9GodFthXMjnvJ4J WfxbHFN9ao4d6q/hMkWMB7a4kTYWuQgjT7QVteAP5PKNb2RqVUqjD8USzmlgqL64+c3C z86g== X-Gm-Message-State: AAQBX9fC6Xym8DXp08x1m/3wwtpVhZgJZrkCp7nt7ZWExpBFFqZGOGsR m2SCCid2k3gU410Xi9Sgs4IVDRgaJj+HFhBKrJc= X-Google-Smtp-Source: AKy350b0gsBxdgn1EtZ08pGH0/m3yaltj3xDabEPsti/si36H3+nvXYTwgIHxlM+tA9H74h+Sx1t3Q== X-Received: by 2002:a05:6a00:2385:b0:63d:33c9:aec4 with SMTP id f5-20020a056a00238500b0063d33c9aec4mr842717pfc.10.1681751022732; Mon, 17 Apr 2023 10:03:42 -0700 (PDT) Received: from localhost (dhcp-141-239-253-106.hawaiiantel.net. [141.239.253.106]) by smtp.gmail.com with ESMTPSA id 2-20020aa79242000000b0063d318699f9sm442382pfp.48.2023.04.17.10.03.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 10:03:42 -0700 (PDT) From: Bob Newell To: ding@gnus.org Subject: Re: [PATCH] Message-ID hostname should be simple. Organization: Avi Gobbler Publishing References: <20230417113928.1893-1-soyeomul@doraji.xyz> Date: Mon, 17 Apr 2023 07:03:40 -1000 In-Reply-To: <20230417113928.1893-1-soyeomul@doraji.xyz> (Byung-Hee HWANG's message of "Mon, 17 Apr 2023 20:39:30 +0900") Message-ID: <87leiqzbir.ufme@nqtr.jlhfbfaug.info> User-Agent: Safari/6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-ID: Precedence: bulk --=-=-= Content-Type: text/plain This is not 100% related, but I like to play around the with the Message-ID, specifically I randomize the domain and then the user agent. Sometimes I don't want to reveal my "home" domain. This works with many email providers, but there are some forwarding or bulk services that rewrite the Message ID. Naughty of them. My code is below. Please realize I'm not exactly the No. 1 elisp coder --- but it does work in my environment. -- Bob Newell Honolulu, Hawai`i - Via GNU/Linux/Emacs/Gnus/BBDB --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=munger.el ;;; Fully anonymize/randomize FQDN. (defun munge-message-id (orig-fun &rest args) "Make a random FQDN and User Agent" (let* ((nice-id (apply orig-fun args)) (nice-split (split-string nice-id "@")) (alpha "abcdefghijklmnopqrstuvwxyz") (domain '("com" "org" "net" "info" "us")) (part1 "") (part2 "") (part3 "") (part4 "") num0 num1 num2 num3) ;;; Temporary. Not in right place at all. (munge-user-agent) ;;; FQDN. ;;; Front half. (setq num0 (+ 4 (random 6))) (while (> num0 0) (setq num1 (random 25)) (setq part1 (concat part1 (substring alpha num1 (+ 1 num1)))) (setq num0 (- num0 1)) ) ;;; Back half. (setq num0 (+ 4 (random 6))) (while (> num0 0) (setq num2 (random 25)) (setq part2 (concat part2 (substring alpha num2 (+ 1 num2)))) (setq num0 (- num0 1)) ) ;;; Sub for 'fsf'. (setq num0 (+ 4 (random 6))) (while (> num0 0) (setq num3 (random 25)) (setq part3 (concat part3 (substring alpha num3 (+ 1 num3)))) (setq num0 (- num0 1)) ) ;;; TLD. (setq part4 (nth (random 4) domain)) ;;; Build the message-id. (concat (replace-regexp-in-string "fsf" part3 (nth 0 nice-split)) "@" part1 "." part2 "." part4 ">") ) ) (advice-add 'message-make-message-id :around #'munge-message-id) ;;; Semi-randomize User-Agent. (defun munge-user-agent () "Change user-agent to semi-random string" (let* ( (agents '("Mozilla" "Chrome" "Safari" "Brave" "Vivaldi")) (versions '("5.0" "5.5" "6.0" "6.5" "4.5"))) (setq gnus-user-agent (concat (nth (random 4) agents) "/" (nth (random 4) versions))))) --=-=-=--