Re: Proposition for generating message-id

"Heinrich Müller" <heinrich.mueller82-gM/[email protected]> Mon, 14 Jan 2013 17:20:41 +0100
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
Am 14.01.2013 12:05, schrieb Miroslav Sabljic:
> Hi guys!
>
> I was looking how Pan generates Message-id header and in my humble 
> opinion is that it should be improved. Pan is now generating 
> message-id in format [email protected] and as far as I 
> can see it there can happen a situation where two users could end up 
> with the same msg-ids. For example plenty of users are now using gmail 
> address so the msg-id part right of @ sign will be the same for plenty 
> of users. Lets say that two users who are both using gmail address and 
> they are placed in different timezones send their message, one sends 
> his message exactly at 12:00:01 and other one exactly at 14:00:01, 
> they will end up with the same message-id.
>
> Please correct me if I'm wrong?
>
> Most other newsreaders generate msg-id with some random letter/number 
> combination and with some static string at the end or at the beginning 
> of the string. This is example msg-id generated by slrn.
>
> <[email protected]>
>
> I'm willing to write code for this if you guys agree and if you think 
> that it would benefit pan as an improvement.
>
>
The code is already there. I generate my own unique ids with a rng and 
three random numbers + the date.

But you're right, I think so too.
If you want to, you could unify the two methods.
Take a look at:

|void
PostUI::  generate_unique_id  (StringView&  mid,  int  cnt,  std::string&  s)

|

|Cheers,|
|Heinrich|

P.S.: Are you in general willing to improve pan? I'm always looking for 
some co-devs to ease the load ;)
||


Cheers.

_______________________________________________
Pan-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-devel