You may want to investigate the transport <a href="http://xmpppy.sourceforge.net/mail/">http://xmpppy.sourceforge.net/mail/</a> for a base application to improve as you need. <br> I have used this transport with eJabberD and is very simple to setup.<br>
<br><br>-Chris<br><br><br><div class="gmail_quote">On Tue, Jan 5, 2010 at 5:02 AM, Tomasz Sterna <span dir="ltr"><<a href="mailto:tomek@xiaoka.com">tomek@xiaoka.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello.<br>
<br>
I am working on accessing jabber message archive with IMAP and a normal<br>
MUA with IMAP backend.<br>
<br>
This begs a question: How do I convert RFC 3921 message, to RFC 5322<br>
message to store in IMAP store. (But it may also be useful for<br>
Jabber/E-Mail gateway.)<br>
<br>
1. How do i store 'from' and 'to' fields of the XMPP message?<br>
RFC 5322 defines From: as mailbox-list and To: as address-list which in<br>
turn reduces to addr-spec which does not include schema and is assumed<br>
to be in SMTP domain. ":" is used to delimiter group names so we cannot<br>
use XMPP URI there.<br>
- Should I add X- header for preserving XMPP 'from' field? What exact?<br>
- Should I fill From: and To: fields to maka maile readers usable?<br>
<br>
2. Subject: header is straightforward<br>
<br>
3. <thread/> converts directly to References:<br>
- what if there is no <thread/>? Should I supplement it? How?<br>
<br>
4. Should I generate Message-ID header? If so, how? Maybe it would be<br>
useful to base it on some of the message characteristics?<br>
<br>
<br>
<br>
<br>
--<br>
Tomasz Sterna<br>
Xiaoka.com<br>
<br>
_______________________________________________<br>
JDev mailing list<br>
Forum: <a href="http://www.jabberforum.org/forumdisplay.php?f=20" target="_blank">http://www.jabberforum.org/forumdisplay.php?f=20</a><br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
</blockquote></div><br>