pan-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-devel] Proposition for generating message-id


From: Heinrich Müller
Subject: Re: [Pan-devel] Proposition for generating message-id
Date: Mon, 14 Jan 2013 17:20:41 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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 address@hidden 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.

<address@hidden>

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]