<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ruslan,<div><br></div><div><div><div>On 10.01.2012, at 16:34, Ruslan Zasukhin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; "><span style="font-size: 11pt; ">Yes, tune info not helps too much ...<br>And it seems it loose some operation about<span class="Apple-converted-space"> </span><br></span></span></span></blockquote><div><br></div>Okay, will try again. I had to copy this line by line!<br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; "><span style="font-size: 11pt; "><br>But I have take look on query again,<span class="Apple-converted-space"> </span><br>Why you use HAVING to filter records of Message table?<br>You can try do this in WHERE clause ?<br><br>WHERE<span class="Apple-converted-space"> </span><br> </span><font size="1"><span style="font-size: 9pt; ">Message.MessageBody REGEX '(?i)osmer</span></font><span style="font-size: 11pt; "><span class="Apple-converted-space"> </span><br></span></span></span></blockquote><div><br></div>This is so very fast, I already tried this. But, this won't work for 2 reasons:</div><div><br></div><div>- The messagebody isn't part of the listbox that shows the result.</div><div>- I've got a second condition for searching attachments, which absolutely can't be part of a where. Or I would get duplicates - I think.<br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; "><span style="font-size: 11pt; "><br>Also keep in mind it is possible specify additional conditions even in the JOIN clauses:<br><br></span><font size="1"><span style="font-size: 9pt; ">FROM<span class="Apple-converted-space"> </span><br> Message INNER JOIN Mailbox ON Message.MailboxID = Mailbox.RecID AND Message.MessageBody REGEX '(?i)osmer<br></span></font></span></span></blockquote><br></div><div>I'll have a look at this.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mit freundlichen Grüßen/Regards<br><br>Trixi Willius<br><br><a href="http://www.mothsoftware.com">http://www.mothsoftware.com</a><br>Mail Archiver X: The email archiving solution for professionals</div></span></span>
</div>
<br></div></body></html>