aboutsummaryrefslogtreecommitdiffstats
path: root/devel-docs/misc
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-10 00:48:02 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-10 00:48:02 +0800
commit0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4 (patch)
treebb7ae34f5b1ed95447078aa4735d26b1450a2798 /devel-docs/misc
parent5ee8f0795e6f2f1fc5ed49435559f75022f44aa6 (diff)
downloadgsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar.gz
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar.bz2
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar.lz
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar.xz
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.tar.zst
gsoc2013-evolution-0a4dd21b9b2c843ca3bc22df5e67767bcb8a86f4.zip
sync
svn path=/trunk/; revision=1099
Diffstat (limited to 'devel-docs/misc')
-rw-r--r--devel-docs/misc/ref_and_id_proposition.txt99
1 files changed, 99 insertions, 0 deletions
diff --git a/devel-docs/misc/ref_and_id_proposition.txt b/devel-docs/misc/ref_and_id_proposition.txt
new file mode 100644
index 0000000000..757fa7b2cd
--- /dev/null
+++ b/devel-docs/misc/ref_and_id_proposition.txt
@@ -0,0 +1,99 @@
+Hi everyone,
+
+This mail talks about problems related to message referencing in
+Camel. I would like to get people thoughts about two specific issues:
+
+1) How to identify reliably messages within folders.
+2) How to handle references in folders to messages physically stored
+ in other folders.
+
+
+
+
+Currently, in Camel there is only one way to retrieve a message from a
+mail store:
+ CamelMimeMessage *
+ get_message (CamelFolder *folder, gint number)
+
+where number is an integer representing the message rank within its
+parent folder.
+
+This is a traditional method (JavaMail, MAPI) and it is very useful
+because this is often the only way to get a message from a classical
+store (pop3 for example).
+
+Moreover, various documents ([1], [2]) proposed to generalize the URL
+scheme used in Camel ([3]) to access mail stores to identify
+messages. For instance:
+
+pop3://po.myisp.com:1
+
+
+However, referencing a message with its number within a folder is a
+very unreliable method:
+
+1) Message order in a folder can change during a session:
+
+ The user can move or remove messages from the folder, thus
+ completely changing message numbers. We could however imagine to
+ follow message operations in order to keep camel in a coherent
+ state at each time instant. This could be quite complex but may
+ be feasible using gtk signal system.
+
+2) Message order can change between sessions:
+
+ Gnome-mailer was designed from the begining to allow messages to be
+ stored in classical mailboxes (mbox, maildir, MH, IMAP ...), in
+ order to allow users to run other MUA on their mailboxes if
+ necessary. These other MUA can change message order within folders
+ without any chance for Camel to trace the operations.
+
+These two scenarii show that it is quite impossible to use reliable
+folder caching or message referencing if messages are referenced only
+with their position within their parent folder.
+
+
+We thus have to find a general way to identify and retreive a message
+within its folder. One thing is sure, however: all folders
+implementation won't allow this method. Pop3 stores will always access
+messages using their rank on the server. MUA using will thus have to be
+prepared to access some stores providing only the old fashionned message
+number access method.
+
+Basically, we have two choices:
+
+1) Accessing messages using (mailbox) Unique ID (UID)
+
+ A UID is a string identifier associated to a message, which is
+ guaranteed to be unique within its parent folder and which will not
+ to change between sessions.
+
+2) Accessing messages using Message ID
+
+ A Message ID is a string identifier associated to a messages which
+ is guaranteed to be unique in the world, that is, no other message
+ can have the same Message ID. The message ID is defined and RFC 822, and
+ is stored as a message header
+ Message-id: ...
+
+(1) Already exists in IMAP. It is quite simple to define on local
+stores (MH, mbox, ....) but may not resist to message modification by
+other MUA. Methods based on Message-id matching or message
+content-checksum seem to be the best one. Using an "X-" header is
+another possibility on non-read only headers. A combination of these
+three methods may be the most reliable solution.
+Impossible to implement on POP3
+
+(2) Can be used with IMAP, but would be very ineficient. The main
+issue with this method is its dependancy upon other MUAs and
+MTAs. Message-id is set during message transport. Moreover, some
+messages may even not have anay Message-id header. These are major
+issues when accessing read-only stores.
+Impossible to implement on POP3
+
+
+
+
+[1] : http://www.selequa.com/%7epurp/gnomail/mail2db.html
+[2] : http://www.selequa.com/%7epurp/gnomail/dbRecFmt.html
+[3] : http://www.gnome.org/mailing-lists/archives/gnome-mailer-list/1999-April/0248.shtml \ No newline at end of file