been quite a while since i wrote the imap search functionality :-)
however if i remember correctly the search command does take into
account a few things:
* the actual body will not be sought unless you specify a full-body
search (yes this can take a while); if you just search on header fields
the search will be way faster
* even with a full-body search, encoded attachments are skipped -
according to the rfc we MAY do this and i found it at the time both
easier and faster
this being said, the search functionality was the last one i added and
not quite optimized .. since i don't use it often (in practice all
searching is done by my mail client) and nobody has been complaining
about search speed on this list for two years now i just left it as it
was :-)
stripping attachments in dbmail - well if you want to go ahead but it
*will* be painfull and probably reduce your insertion speed. Storing
mails in a mime-parsed form has been on our mind for a while but we
just can't figure out a real smart way of doing this.
regards roel
Op 11-nov-03 om 15:49 heeft Tim Gurney het volgende geschreven:
On Tue, 11 Nov 2003, Simon Gray wrote:
Would'nt that require a prasing of the mime content and not just the
mail
header as it does today?..
Would need to parse the mime content and seperate them accordingly
This doesnt sound like a simple rewrite.. I think you'r better off by
doing
this mime prasing on the "client" side when you want to retrive
this..
I agree, it wouldn't be simple but it would be possible. However,
MTA's
aren't really designed to do this. The email client, should be doing
the
work.
What i would do is as follows.
get email
place copy into db for normal user retrival
parse out header and attachment and place into sep tables for
searching.
This is simply to speed up the search on the email header.
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
_________________________
R.A. Rozendaal
IC&S
T: +31 30 63 55 739
F: +31 30 63 55 731
www.ic-s.nl