Gnus development mailing list
 help / color / mirror / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: ding@gnus.org
Subject: Re: [PATCH] private message id
Date: Thu, 02 Dec 2010 00:16:57 +0100	[thread overview]
Message-ID: <87pqtlw0ba.fsf%lukasz.stelmach@iem.pw.edu.pl> (raw)
In-Reply-To: <m3pqtlifnb.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>
>> This is an option. However, there is the whole superseding code which
>> looks like it should be there. So copying a function just to redefine
>> two lines in it looks weird, doesn't it?
>
> It's really the message-unique-id and/or message-make-fqdn that need
> redefinition, isn't it?

Not exactly. Let me explain it step by step (and think aloud). By
default you get:

<87vd3dw1fh.fsf@some.host.fqdn>

If you redefine message-unique-id you still get the same fqdn on every
message you send regardless of the account (identity) you use. This
makes them easy to associate. Conclusion message-unique-id is OK as it
is let's change message-make-fqdn. Lets make message-make-fqdn return
sender's address

<87tyixw1au.fsf@lukasz.stelmach@iem.pw.edu.pl>

It is invalid Message-ID because it comprises two `@' characters. The
first `@' comes from message-make-message-id so either we redefine this
function or substitute the second `@' with a character valid for a
domain name. 

<87r5e1w15q.fsf@lukasz.stelmach-iem.pw.edu.pl>

Now message-make-fqdn returns lukasz.stelmach-iem.pw.edu.pl which
preserves ID's uniqueness. And it is a good Message-ID. In fact you in
the latter case it's enough to set message-user-fqdn (but a function
attached somewhere around message-send-hook is required to set it
according to the From header, which in fact is equivalent work to
redefinition of message-make-fqdn). However, in this particular case
everything seems to work fine, it will only as long as no one expects it
to return what its name means.

That's my rationale for the patch.

-- 
Miłego dnia,
Łukasz Stelmach




  reply	other threads:[~2010-12-01 23:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 21:37 Łukasz Stelmach
2010-11-29 21:41 ` Russ Allbery
2010-11-30 20:35 ` Lars Magne Ingebrigtsen
2010-12-01  1:10   ` Łukasz Stelmach
2010-12-01 17:09     ` Lars Magne Ingebrigtsen
2010-12-01 23:16       ` Łukasz Stelmach [this message]
2010-12-05 12:30         ` Lars Magne Ingebrigtsen
2010-12-06  6:28           ` Łukasz Stelmach
2010-12-06 19:40             ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqtlw0ba.fsf%lukasz.stelmach@iem.pw.edu.pl \
    --to=lukasz.stelmach@iem.pw.edu.pl \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).