[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Mail headers: advice needed.
From:       Rik Hemsley <rik () rikkus ! demon ! co ! uk>
Date:       1999-06-18 19:34:38
[Download RAW message or body]


On 18-Jun-99 Roberto Alsina wrote:
> Yes, please, support REFERENCES. It is not mandatory for email, it seems,
> but it is soooo handy.

Empath does this. Please feel free to steal any code you like.

> Anyway: I would put both in-reply-to *and* references.

Here's the magic Rikkus-does-it-this-way form:

* Replying to message with no In-Reply-To or References:

Create In-Reply-To and References using Message-ID of previous message.

e.g.
------------ first message -----------
Message-ID: <xxx@kde.org>
--------------------------------------

--------------- reply ----------------
Message-ID: <yyy@kde.org>
In-Reply-To: <xxx@kde.org>
References: <xxx@kde.org>
--------------------------------------

* Replying to message with In-Reply-To but no References

Create In-Reply-To using Message-ID of previous message, and make references
too.

----------- first message -----------
Message-ID: <xxx@kde.org>
In-Reply-To: <www@kde.org>
-------------------------------------

-------------- reply ----------------
Message-ID: <yyy@kde.org>
In-Reply-To: <xxx@kde.org>
References: <www@kde.org> <xxx@kde.org>
-------------------------------------

* Replying to message with both In-Reply-To and References

Add to references and still create In-Reply-To

----------- first message -----------
Message-ID: <xxx@kde.org>
In-Reply-To: <www@kde.org>
References: <www@kde.org> <vvv@kde.org>
-------------------------------------

--------------- reply ---------------
Message-ID: <yyy@kde.org>
In-Reply-To: <www@kde.org>
References: <www.kde.org> <vvv.kde.org> <xxx.kde.org>
-------------------------------------

* Replying to message with only References

Create an In-Reply-To and append to references

----------- first message ----------
Message-ID: <xxx@kde.org>
References: <www@kde.org>
------------------------------------

--------------- reply --------------
Message-ID: <yyy@kde.org>
In-Reply-To: <xxx@kde.org>
References: <www@kde.org> <xxx@kde.org>
------------------------------------

* Message comes in with greater than n references

Create In-Reply-To, remove the second reference until less than n references,
append to references

(n == 2 for example)

------------ first message ---------
Message-ID: <xxx@kde.org>
References: <aaa@kde.org> <bbb@kde.org> <ccc@kde.org>
------------------------------------

--------------- reply -------------
Message-ID: <yyy@kde.org>
In-Reply-To: <xxx@kde.org>
References: <aaa@kde.org> <ccc@kde.org> <xxx@kde.org>
-----------------------------------

Anything I didn't cover ? ;)

Cheers,
Rik


--
KDE - Colour outside the lines  : http://www.kde.org
[[without]] - software for KDE  : http://without.netpedia.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic