Re: [Dovecot] FTS Plugin design
Hi again!
After sometime using my changes on this plugin I found one major
problem. When a message have two attachments with same name or one
with content-type equal to "message/*", my solr schema design does not
work because as attachment unique identifier I used attachment's name
what is not correct.
Now I am trying to find a way to know the mime part id of the parts
used on fts_build_mail. Is that already possible or I need to do that
by my own?
Thank you in advance, Rui Carneiro
On Tue, 2009-09-08 at 15:47 +0100, rui.carneiro@portugalmail.net wrote:
Now I am trying to find a way to know the mime part id of the parts
used on fts_build_mail. Is that already possible or I need to do that
by my own?
If you already get the MIME structure, then I guess you have struct message_parts. You could do it similar to the way IMAP does things:
1 TEXT/PLAIN
2 APPLICATION/OCTET-STREAM
3 MESSAGE/RFC822
3.HEADER ([RFC-2822] header of the message)
3.TEXT ([RFC-2822] text body of the message) MULTIPART/MIXED
3.1 TEXT/PLAIN
3.2 APPLICATION/OCTET-STREAM
4 MULTIPART/MIXED
4.1 IMAGE/GIF
4.1.MIME ([MIME-IMB] header for the IMAGE/GIF)
4.2 MESSAGE/RFC822
4.2.HEADER ([RFC-2822] header of the message)
4.2.TEXT ([RFC-2822] text body of the message) MULTIPART/MIXED
4.2.1 TEXT/PLAIN
4.2.2 MULTIPART/ALTERNATIVE
4.2.2.1 TEXT/PLAIN
4.2.2.2 TEXT/RICHTEXT
So you get the root message_part. Its first child is "1", second child "2", 3rd child "3", 3rd child's first child "3.1", etc.
participants (2)
-
rui.carneiroï¼ portugalmail.net
-
Timo Sirainen