Hmailserver + iOS returns all emails in mailbox when searching

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-02-10 11:07

Hi all,

I'm having a very strange issue with searching on iPhones since moving to hmail.

When a user searches for a keyword (lets say "Dubai") on their iPhone the phone seems to first search local cache and returns a few emails related to Dubai. It then seems to ask the IMAP server to perform a search and returns a mass of completely unrelated emails that do not have the keyword anywhere in the subject/body or even source.

Furthermore, if the user searches for a completely fictitious word ("blahbloopigobingopbo") the results screen stays blank for about 10 seconds (nothing in local cache), then it asks for an IMAP search, and all of the users most recent emails are returned!

I also run a webmail system using Roundcube, and the search function works perfectly on this system. Even searching entire contents of emails across all mail folders in large mailboxes.

What is going on!

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby mattg » 2016-02-10 12:32

Does IMAP logging show anything?

(Don't normally leave IMAP logging on because the logs are quite verbose)
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 12:58

Here is the logs of an IMAP search from my IPhone:

Code: Select all

"IMAPD"   2172   97729   "2016-03-03 10:47:13.850"   "xxx.xxx.xxx.xxx"   "RECEIVED: 9 UID SEARCH (OR FROM "Test" (OR SUBJECT "Test" (OR TO "Test" (OR CC "Test" BODY "Test")))) NOT DELETED"
"IMAPD"   2332   97685   "2016-03-03 10:47:13.866"   "xxx.xxx.xxx.xxx"   "RECEIVED: 10 UID SEARCH (OR FROM "Test" (OR SUBJECT "Test" (OR TO "Test" (OR CC "Test" BODY "Test")))) NOT DELETED"
"IMAPD"   2332   97685   "2016-03-03 10:47:13.866"   "xxx.xxx.xxx.xxx"   "SENT: * SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489"
"IMAPD"   2332   97685   "2016-03-03 10:47:13.866"   "xxx.xxx.xxx.xxx"   "SENT: 10 OK UID completed"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "RECEIVED: 11 UID FETCH 1489,1488,1487,1377,1227,1222,1218,1098,1095 (INTERNALDATE UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)])"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 9 FETCH (UID 1489 RFC822.SIZE 7016 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 16:07:40 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {392}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 8 FETCH (UID 1488 RFC822.SIZE 12208 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 15:33:43 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {296}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 7 FETCH (UID 1487 RFC822.SIZE 12561 FLAGS (\Answered \Seen) INTERNALDATE " 1-Mar-2016 14:00:23 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {296}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 6 FETCH (UID 1377 RFC822.SIZE 31594 FLAGS (\Seen) INTERNALDATE "27-Feb-2016 19:31:45 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {409}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 5 FETCH (UID 1227 RFC822.SIZE 6086 FLAGS (\Seen) INTERNALDATE "23-Feb-2016 15:10:13 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {343}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 4 FETCH (UID 1222 RFC822.SIZE 5248 FLAGS (\Seen) INTERNALDATE "23-Feb-2016 06:41:39 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {370}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 3 FETCH (UID 1218 RFC822.SIZE 6050 FLAGS (\Seen) INTERNALDATE "22-Feb-2016 15:05:25 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {343}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 2 FETCH (UID 1098 RFC822.SIZE 3376 FLAGS (\Seen) INTERNALDATE " 4-Feb-2016 17:24:23 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {550}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: * 1 FETCH (UID 1095 RFC822.SIZE 2495 FLAGS (\Answered \Seen) INTERNALDATE " 4-Feb-2016 15:07:39 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {425}"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97685   "2016-03-03 10:47:13.897"   "xxx.xxx.xxx.xxx"   "SENT: 11 OK UID completed"
"IMAPD"   1160   97685   "2016-03-03 10:47:14.053"   "xxx.xxx.xxx.xxx"   "RECEIVED: 12 UID SEARCH UID 1:1094 UNSEEN UNDELETED"
"IMAPD"   1160   97685   "2016-03-03 10:47:14.053"   "xxx.xxx.xxx.xxx"   "SENT: * SEARCH"
"IMAPD"   1160   97685   "2016-03-03 10:47:14.053"   "xxx.xxx.xxx.xxx"   "SENT: 12 OK UID completed"
"IMAPD"   252   97734   "2016-03-03 10:47:14.569"   "212.69.36.86"   "SENT: * OK mail1-uk.servrr.com"
"IMAPD"   2332   97734   "2016-03-03 10:47:14.569"   "212.69.36.86"   "RECEIVED: A0001 CAPABILITY"
"IMAPD"   2332   97734   "2016-03-03 10:47:14.569"   "212.69.36.86"   "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A0001 OK CAPABILITY completed"
"IMAPD"   1324   97734   "2016-03-03 10:47:14.569"   "212.69.36.86"   "RECEIVED: A0002 LOGIN emma@napiers.us ***"
"IMAPD"   1324   97734   "2016-03-03 10:47:14.584"   "212.69.36.86"   "SENT: A0002 OK LOGIN completed"
"IMAPD"   1160   97734   "2016-03-03 10:47:14.584"   "212.69.36.86"   "RECEIVED: A0003 STATUS INBOX (MESSAGES UNSEEN)"
"IMAPD"   1160   97734   "2016-03-03 10:47:14.584"   "212.69.36.86"   "SENT: * STATUS "INBOX" (MESSAGES 0 UNSEEN 0)[nl]A0003 OK Status completed"
"IMAPD"   2332   97734   "2016-03-03 10:47:14.584"   "212.69.36.86"   "RECEIVED: A0004 LOGOUT"
"IMAPD"   2332   97734   "2016-03-03 10:47:14.584"   "212.69.36.86"   "SENT: * BYE Have a nice day[nl]A0004 OK Logout completed"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.538"   "xxx.xxx.xxx.xxx"   "SENT: * SEARCH 1 2 1616 2767 2802 2809 2820 2822 2823 2866 2867 2868 2869 2870 2871 2872 2873 2874 2878 2889 2890 2891 2892 2893 2894 2895 2899 2900 2901 2902 2906"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.538"   "xxx.xxx.xxx.xxx"   "SENT: 9 OK UID completed"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "RECEIVED: 10 UID FETCH 2906,2902,2901,2900,2899,2895,2894,2893,2892,2891,2890,2889,2878,2874,2873,2872,2871,2870,2869,2868,2867,2866,2823,2822,2820,2809,2802,2767,1616,2,1 (INTERNALDATE UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)])"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 149 FETCH (UID 2906 RFC822.SIZE 11805 FLAGS (\Seen) INTERNALDATE " 2-Mar-2016 15:34:14 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {310}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 145 FETCH (UID 2902 RFC822.SIZE 1803 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 16:19:32 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {314}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 144 FETCH (UID 2901 RFC822.SIZE 6690 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 16:19:09 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {350}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 143 FETCH (UID 2900 RFC822.SIZE 2837 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 16:17:48 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {325}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 142 FETCH (UID 2899 RFC822.SIZE 6951 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 13:39:20 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {353}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 138 FETCH (UID 2895 RFC822.SIZE 3071 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 09:42:38 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {240}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 137 FETCH (UID 2894 RFC822.SIZE 1947 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 09:42:38 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {276}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: * 136 FETCH (UID 2893 RFC822.SIZE 2055 FLAGS () INTERNALDATE " 1-Mar-2016 09:22:30 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {264}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.569"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 135 FETCH (UID 2892 RFC822.SIZE 2053 FLAGS () INTERNALDATE " 1-Mar-2016 09:22:29 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {263}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 134 FETCH (UID 2891 RFC822.SIZE 2063 FLAGS () INTERNALDATE " 1-Mar-2016 09:22:29 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {268}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 133 FETCH (UID 2890 RFC822.SIZE 2065 FLAGS () INTERNALDATE " 1-Mar-2016 09:22:29 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {269}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 132 FETCH (UID 2889 RFC822.SIZE 1947 FLAGS () INTERNALDATE " 1-Mar-2016 09:21:31 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {276}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 121 FETCH (UID 2878 RFC822.SIZE 7896 FLAGS (\Flagged \Seen) INTERNALDATE "25-Feb-2016 20:44:48 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {298}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 117 FETCH (UID 2874 RFC822.SIZE 1905 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 19:59:55 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {271}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 116 FETCH (UID 2873 RFC822.SIZE 1581 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 19:59:55 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {257}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 115 FETCH (UID 2872 RFC822.SIZE 17009 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 19:39:46 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {324}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 114 FETCH (UID 2871 RFC822.SIZE 7342 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 16:45:15 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {326}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 113 FETCH (UID 2870 RFC822.SIZE 10513 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 16:43:27 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {363}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 112 FETCH (UID 2869 RFC822.SIZE 6881 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 16:43:25 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {369}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 111 FETCH (UID 2868 RFC822.SIZE 4969 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 16:43:23 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {369}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 110 FETCH (UID 2867 RFC822.SIZE 4969 FLAGS (\Seen) INTERNALDATE "25-Feb-2016 16:43:22 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {369}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 109 FETCH (UID 2866 RFC822.SIZE 1495 FLAGS (\Deleted \Seen) INTERNALDATE "25-Feb-2016 16:38:53 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {235}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 66 FETCH (UID 2823 RFC822.SIZE 3525 FLAGS () INTERNALDATE "13-Feb-2016 20:01:12 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {264}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 65 FETCH (UID 2822 RFC822.SIZE 3542 FLAGS () INTERNALDATE "13-Feb-2016 19:03:14 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {269}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 63 FETCH (UID 2820 RFC822.SIZE 3483 FLAGS () INTERNALDATE "12-Feb-2016 22:01:17 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {263}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 52 FETCH (UID 2809 RFC822.SIZE 6137 FLAGS (\Deleted \Seen) INTERNALDATE "10-Feb-2016 07:43:19 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {293}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 45 FETCH (UID 2802 RFC822.SIZE 16064 FLAGS (\Seen) INTERNALDATE " 5-Feb-2016 18:23:03 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {558}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 10 FETCH (UID 2767 RFC822.SIZE 4414 FLAGS (\Seen) INTERNALDATE "27-Jan-2016 22:41:14 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {306}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 3 FETCH (UID 1616 RFC822.SIZE 84191 FLAGS (\Seen) INTERNALDATE "20-Dec-2013 15:41:10 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {290}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 2 FETCH (UID 2 RFC822.SIZE 26708 FLAGS (\Seen) INTERNALDATE "15-Mar-2015 22:23:58 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {266}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: * 1 FETCH (UID 1 RFC822.SIZE 26708 FLAGS (\Seen) INTERNALDATE "14-Mar-2015 21:25:27 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {266}"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   2172   97729   "2016-03-03 10:47:15.584"   "xxx.xxx.xxx.xxx"   "SENT: 10 OK UID completed"
"IMAPD"   1324   97729   "2016-03-03 10:47:15.709"   "xxx.xxx.xxx.xxx"   "RECEIVED: 11 NOOP"
"IMAPD"   1324   97729   "2016-03-03 10:47:15.709"   "xxx.xxx.xxx.xxx"   "SENT: 11 OK NOOP completed"
"IMAPD"   252   97729   "2016-03-03 10:47:15.725"   "xxx.xxx.xxx.xxx"   "RECEIVED: 12 UID FETCH 2866 (BODY.PEEK[HEADER] BODY.PEEK[TEXT])"
"IMAPD"   252   97729   "2016-03-03 10:47:15.725"   "xxx.xxx.xxx.xxx"   "SENT: * 109 FETCH (UID 2866 BODY[HEADER] {1520}"
"IMAPD"   252   97729   "2016-03-03 10:47:15.725"   "xxx.xxx.xxx.xxx"   "SENT:  BODY[TEXT] {25}"
"IMAPD"   252   97729   "2016-03-03 10:47:15.725"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   252   97729   "2016-03-03 10:47:15.725"   "xxx.xxx.xxx.xxx"   "SENT: 12 OK UID completed"
"IMAPD"   2332   97729   "2016-03-03 10:47:15.913"   "xxx.xxx.xxx.xxx"   "RECEIVED: 13 NOOP"
"IMAPD"   2332   97729   "2016-03-03 10:47:15.913"   "xxx.xxx.xxx.xxx"   "SENT: 13 OK NOOP completed"
"IMAPD"   1160   97729   "2016-03-03 10:47:15.913"   "xxx.xxx.xxx.xxx"   "RECEIVED: 14 UID FETCH 2809 (BODYSTRUCTURE BODY.PEEK[HEADER])"
"IMAPD"   1160   97729   "2016-03-03 10:47:15.928"   "xxx.xxx.xxx.xxx"   "SENT: * 52 FETCH (UID 2809 BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "UTF-8") NIL NIL "quoted-printable" 1749 48)("TEXT" "HTML" ("CHARSET" "UTF-8") NIL NIL "quoted-printable" 2976 59) "ALTERNATIVE" ("BOUNDARY" "-==AGNITASOUTER164240059B2900000B==") NIL NIL) BODY[HEADER] {1123}"
"IMAPD"   1160   97729   "2016-03-03 10:47:15.928"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   1160   97729   "2016-03-03 10:47:15.928"   "xxx.xxx.xxx.xxx"   "SENT: 14 OK UID completed"
"IMAPD"   912   97729   "2016-03-03 10:47:15.959"   "xxx.xxx.xxx.xxx"   "RECEIVED: 15 UID FETCH 2809 BODY.PEEK[2]<0.2976>"
"IMAPD"   912   97729   "2016-03-03 10:47:15.975"   "xxx.xxx.xxx.xxx"   "SENT: * 52 FETCH (UID 2809 BODY[2]<0> {2976}"
"IMAPD"   912   97729   "2016-03-03 10:47:15.975"   "xxx.xxx.xxx.xxx"   "SENT: )"
"IMAPD"   912   97729   "2016-03-03 10:47:15.975"   "xxx.xxx.xxx.xxx"   "SENT: 15 OK UID completed"


I could be completely wrong here (as i know nothing about IMAP), but it seems to perform two searches. One which returns a handful of results, the other that returns a whole lot more.

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 13:04

And here is a search for "test" via roundcube on the same mailbox for your reference.

Code: Select all

"IMAPD"   2092   97785   "2016-03-03 11:01:36.321"   "xxx"   "RECEIVED: A0004 UID SORT (DATE) US-ASCII ALL UNDELETED OR OR OR OR HEADER SUBJECT test HEADER FROM test HEADER TO test HEADER BCC test BODY test"
"IMAPD"   2092   97785   "2016-03-03 11:01:36.336"   "xxx"   "SENT: * SORT 1377"
"IMAPD"   2092   97785   "2016-03-03 11:01:36.336"   "xxx"   "SENT: A0004 OK UID completed"
"IMAPD"   1324   97785   "2016-03-03 11:01:36.367"   "xxx"   "RECEIVED: A0005 UID FETCH 1377 (UID RFC822.SIZE FLAGS INTERNALDATE BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY)])"
"IMAPD"   1324   97785   "2016-03-03 11:01:36.367"   "xxx"   "SENT: * 6 FETCH (UID 1377 RFC822.SIZE 31594 FLAGS (\Seen) INTERNALDATE "27-Feb-2016 19:31:45 +0000" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY)] {401}"
"IMAPD"   1324   97785   "2016-03-03 11:01:36.367"   "xxx"   "SENT: )"
"IMAPD"   1324   97785   "2016-03-03 11:01:36.367"   "xxx"   "SENT: A0005 OK UID completed"
"IMAPD"   2172   97785   "2016-03-03 11:01:36.414"   "xxx"   "RECEIVED: A0006 GETQUOTAROOT INBOX"
"IMAPD"   2172   97785   "2016-03-03 11:01:36.414"   "xxx"   "SENT: * QUOTAROOT INBOX ""[nl]* QUOTA "" ()[nl]A0006 OK GETQUOTAROOT completed"
"IMAPD"   2332   97785   "2016-03-03 11:01:36.414"   "xxx"   "RECEIVED: A0007 LOGOUT"
"IMAPD"   2332   97785   "2016-03-03 11:01:36.414"   "xxx"   "SENT: * BYE Have a nice day[nl]A0007 OK Logout completed"
Last edited by jimxms on 2016-03-03 13:21, edited 1 time in total.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 13:15

That search string sent to the server by the iphone is VERY different in its format - a lot of nested "OR ( ...(OR ...) " - strings. It doesnt make much sense to me and such nesting might result in nonsense to HMS too (hence its return of anything). In any case, I would think it is a problem with the iphone and the way it does things. Have you reviewed its settings to see what may affect it does things?

Do further tests with different APPs on the iphone, and differernt clients generally. (Maybe you will see some similarities to the results you have already found).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 13:21

jimimaseye wrote:That search string sent to the server by the iphone is VERY different in its format - a lot of nested "OR ( ...(OR ...) " - strings. It doesnt make much sense to me and such nesting might result in nonsense to HMS too (hence its return of anything). In any case, I would think it is a problem with the iphone and the way it does things. Have you reviewed its settings to see what may affect it does things?

Do further tests with different APPs on the iphone, and differernt clients generally. (Maybe you will see some similarities to the results you have already found).


Yes I agree, the iPhone search does seem a lot more complex than what Roundcube is sending. I would say though that at least one of those searches does return legitimate reuslts as the iPhone briefly displays good results, and floods them with bad results.

There aren't really any iPhone settings that I can see which would affect searching. It also occurs on my wives iPhone which is connected to a different hmailserver mailbox, but also has the same issues.

I'm reluctant to try any other mail clients as this doesn't really help get to the root cause.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 13:35

The point of trying other apps and phones IS to get to the root cause. But knowing the cause doesnt necessarily mean you can fix it. MY suspicion is that the cause is iPhone default mail app and how it does things.

Out of interest, how does iphone react to non-hms accounts when searching? (Do you have any accounts you can add other than these HMS accounts?)

As there are no settings in HMS (other than indexing) that can affect speed or search results, and there arent any settings in iPhone to change (as you say) then it would seem that you are stuck with its behaviour unless you try a different 3rd party app. (Apparently MyMAIL or Spark mail has been rated very highly for iOS).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby mattg » 2016-03-03 16:03

As a matter of interest, HOW / WHERE are you searching your mail from your iPhone??
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 16:34

mattg wrote:As a matter of interest, HOW / WHERE are you searching your mail from your iPhone??


I am searching from the Inbox folder of my hmailserver account using the pull-down search box at the top of the mail list.

Thanks

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 16:45

jimimaseye wrote:The point of trying other apps and phones IS to get to the root cause. But knowing the cause doesnt necessarily mean you can fix it. MY suspicion is that the cause is iPhone default mail app and how it does things.

Out of interest, how does iphone react to non-hms accounts when searching? (Do you have any accounts you can add other than these HMS accounts?)

As there are no settings in HMS (other than indexing) that can affect speed or search results, and there arent any settings in iPhone to change (as you say) then it would seem that you are stuck with its behaviour unless you try a different 3rd party app. (Apparently MyMAIL or Spark mail has been rated very highly for iOS).


My corporate mail box which links via IMAP to a Kerio mail server works perfectly on my iPhone.

I have just tried CloudMagic (another client) on my iPhone and this returns search results as expected.

So this would seem to be an issue between iOS and hmailserver, more than likely the way that hmailserver handles iOS' search requests. Another hmailserver user sydman has also PM'd me to say that he has the same issue.

User avatar
mattg
Moderator
Moderator
Posts: 17596
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby mattg » 2016-03-03 17:03

I have multiple accounts on my iPhone that connect to my hMailserver

I've just done a search in one of the accounts, and it seems to me that the search went as expected

I searched for the word 'quote'
first up four messages in the relevant account were shown

When I pressed cancel (it was still doing something) a heap of matching results for ALL accounts came up

What iOS version?
What hMailserver version?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 17:08

OK here's another update.

It only seems to be happening when iOS performs a "Message" search (the whole message body). Thats not to say that hmailserver/iOS is actually finding the search term in the body, because even if I search for a phrase which will definitely not be in any emails (like: xkxoasdhjkjsadlklasjkdjklh) it will still return the whole mailbox as a result.

However, if I perform a "Subject" search, the results are correct.

Here is a comparison of the IMAP request for a Message search vs Subject Search....



MESSAGE:
"IMAPD" 2528 98695 "2016-03-03 15:01:32.928" "xxx.xxx.xxx.xxx" "RECEIVED: 75 UID SEARCH (OR FROM "Test" (OR SUBJECT "Test" (OR TO "Test" (OR CC "Test" BODY "Test")))) NOT DELETED"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.944" "xxx.xxx.xxx.xxx" "SENT: * SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.944" "xxx.xxx.xxx.xxx" "SENT: 75 OK UID completed"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "RECEIVED: 76 UID FETCH 1489,1488,1487,1377,1227,1222,1218,1098,1095 (INTERNALDATE UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)])"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: * 9 FETCH (UID 1489 RFC822.SIZE 7016 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 16:07:40 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {392}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: * 8 FETCH (UID 1488 RFC822.SIZE 12208 FLAGS (\Seen) INTERNALDATE " 1-Mar-2016 15:33:43 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {296}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: * 7 FETCH (UID 1487 RFC822.SIZE 12561 FLAGS (\Answered \Seen) INTERNALDATE " 1-Mar-2016 14:00:23 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {296}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.959" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 6 FETCH (UID 1377 RFC822.SIZE 31594 FLAGS (\Seen) INTERNALDATE "27-Feb-2016 19:31:45 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {409}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 5 FETCH (UID 1227 RFC822.SIZE 6086 FLAGS (\Seen) INTERNALDATE "23-Feb-2016 15:10:13 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {343}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 4 FETCH (UID 1222 RFC822.SIZE 5248 FLAGS (\Seen) INTERNALDATE "23-Feb-2016 06:41:39 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {370}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 3 FETCH (UID 1218 RFC822.SIZE 6050 FLAGS (\Seen) INTERNALDATE "22-Feb-2016 15:05:25 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {343}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 2 FETCH (UID 1098 RFC822.SIZE 3376 FLAGS (\Seen) INTERNALDATE " 4-Feb-2016 17:24:23 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {550}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: * 1 FETCH (UID 1095 RFC822.SIZE 2495 FLAGS (\Answered \Seen) INTERNALDATE " 4-Feb-2016 15:07:39 +0000" BODY[HEADER.FIELDS (date subject from content-type to cc bcc message-id in-reply-to references)] {425}"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: )"
"IMAPD" 2528 98695 "2016-03-03 15:01:32.975" "xxx.xxx.xxx.xxx" "SENT: 76 OK UID completed"
"IMAPD" 2172 98695 "2016-03-03 15:01:32.991" "xxx.xxx.xxx.xxx" "RECEIVED: 77 UID SEARCH UID 1:1094 UNSEEN UNDELETED"
"IMAPD" 2172 98695 "2016-03-03 15:01:33.006" "xxx.xxx.xxx.xxx" "SENT: * SEARCH"
"IMAPD" 2172 98695 "2016-03-03 15:01:33.006" "xxx.xxx.xxx.xxx" "SENT: 77 OK UID completed"
"IMAPD" 2528 98695 "2016-03-03 15:01:44.944" "xxx.xxx.xxx.xxx" "RECEIVED: 79 UID SEARCH UID 1:1094 UNSEEN UNDELETED"
"IMAPD" 2528 98695 "2016-03-03 15:01:44.944" "xxx.xxx.xxx.xxx" "SENT: * SEARCH"
"IMAPD" 2528 98695 "2016-03-03 15:01:44.944" "xxx.xxx.xxx.xxx" "SENT: 79 OK UID completed"





SUBJECT:
"IMAPD" 1712 98695 "2016-03-03 15:01:44.913" "x" "RECEIVED: 78 UID SEARCH SUBJECT "Test" NOT DELETED"
"IMAPD" 1712 98695 "2016-03-03 15:01:44.913" "x" "SENT: * SEARCH"
"IMAPD" 1712 98695 "2016-03-03 15:01:44.928" "x" "SENT: 78 OK UID completed"
Last edited by jimxms on 2016-03-03 17:17, edited 1 time in total.

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 17:09

mattg wrote:What iOS version?
What hMailserver version?



iOS 9.2.1
hMail 5.6.3-B2249

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 17:32

"IMAPD" 2528 98695 "2016-03-03 15:01:32.928" "xxx.xxx.xxx.xxx" "RECEIVED: 75 UID SEARCH (OR FROM "Test" (OR SUBJECT "Test" (OR TO "Test" (OR CC "Test" BODY "Test"))))


    (OR FROM "Test"
      (OR SUBJECT "Test"
        (OR TO "Test"
          (OR CC "Test" BODY "Test")
          )))

Looks a bit suspect. Doesnt seem to follow the usual pattern of nesting with brackets.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 17:43

Here's something else I just found out...

If I put my phone in airplane mode and perform a search for "Dallas" on my mailbox, I get perfect search results.

If I switch airplane mode off (so my phone is back online) and perform exactly the same search, I get the issue again where it returns good results for a couple of seconds and then spews out all of my emails.

This would seem to suggest that iOS's local database search is what is returning the good results, and they are then being skewed by the remote IMAP search?

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 17:50

You could do with temporarily installing another mail app, connect the same account via IMAP and do a similar search. See what the results are and how the search command is logged in HMS (as youve done above) to compare.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 18:06

jimimaseye wrote:You could do with temporarily installing another mail app, connect the same account via IMAP and do a similar search. See what the results are and how the search command is logged in HMS (as youve done above) to compare.


OK I will give it a try, but I think it's safe to assume that the search command issued by a different mail client will be different to the nested command that iOS is sending.

I think a more interesting test would be to try and issue the nested IMAP search command directly to hMailserver and see if it returns relevant results, or spews out the whole mailbox. Then maybe try the same command again, only with the suspect nesting corrected, and see what results we get. Is there a way that we can do this?

I may also see if i have an older iOS device to try - maybe Apple changed something in a recent update...?

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 18:24

jimxms wrote:I think a more interesting test would be to try and issue the nested IMAP search command directly to hMailserver and see if it returns relevant results, or spews out the whole mailbox. Then maybe try the same command again, only with the suspect nesting corrected, and see what results we get. Is there a way that we can do this?

Technically YOU could if you want. You just have to learn the IMAP 'language - ie the commands of the IMAP protocol. Then you can do it at a command line. (Good luck with that. Maybe repeating the "SENT" commands as they appear in the log file will help you.)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-03 20:23

Just out of interest could this issue have anything to do with the back-end being used (in my case mysql)?

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-03 21:30

Nah.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-07 11:25

Just another update:

This bug is not present in stock Android handsets (using the Gmail client).
It is also not present in the OS X Mail app.

It is however present in iOS 8.4.


This is really doing my head in! Why is iOS not playing nicely with hMailServer!

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-07 11:56

Did you compare the search command structure between the iOS and those other mail apps? (I assume the 'working' mail apps send in a different search string).

RECEIVED: 75 UID SEARCH (OR FROM "Test" (OR SUBJECT "Test" (OR TO "Test" (OR CC "Test" BODY "Test"))))


(Remember, its not unusual to have big players not doing things 'normally' and in the same fashion as others, and you dont get any bigger than Microsoft and Apple. Just look at the problems Ms has with IMAP).
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-08 19:41

I haven't compared the search commands yet, but my concern is what comes next

This is a problem, at least for my server, between iOS and hMailServer. What can be done to fix it, if anything?

I guess what I'm asking is that if I do some more leg work from my end, is anyone going to be able/willing to work out the issue from hMailServer's end?

I just want to make sure that my time is not goign to be better used migrating to a different mail system :(

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-08 20:23

Here is the format of IMAP search from another mail client:



Code: Select all

"IMAPD"   1280   118967   "2016-03-08 18:11:40.885"   "xxx"   "RECEIVED: 6 UID SEARCH CHARSET US-ASCII OR FROM {14}"
"IMAPD"   1280   118967   "2016-03-08 18:11:40.885"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1712   118967   "2016-03-08 18:11:40.885"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR TO {14}"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.885"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   2332   118967   "2016-03-08 18:11:40.900"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR CC {14}"
"IMAPD"   2332   118967   "2016-03-08 18:11:40.900"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   2372   118967   "2016-03-08 18:11:40.916"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR SUBJECT {14}"
"IMAPD"   2372   118967   "2016-03-08 18:11:40.916"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1280   118967   "2016-03-08 18:11:40.916"   "xxx"   "RECEIVED: lejsjjabsiuuab BODY {14}"
"IMAPD"   1280   118967   "2016-03-08 18:11:40.916"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1712   118967   "2016-03-08 18:11:40.932"   "xxx"   "RECEIVED: lejsjjabsiuuab)))"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.947"   "xxx"   "SENT: * SEARCH"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.947"   "xxx"   "SENT: 6 OK UID completed"


Which I believe in a single line would be:

Code: Select all

6 UID SEARCH CHARSET US-ASCII OR FROM {14} lejsjjabsiuuab (OR TO {14} lejsjjabsiuuab (OR CC {14} lejsjjabsiuuab (OR SUBJECT {14} lejsjjabsiuuab BODY {14} lejsjjabsiuuab)))


The nested way it searches seems very similar to the iOS native mail app, but with the exception of it defining a charset and also using the number 14 in curly braces for something. Remove those and its near identical to the iOS search.

Aftermarket app:

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))


iOS native app:

Code: Select all

75 UID SEARCH (OR FROM "lejsjjabsiuuab" (OR SUBJECT "lejsjjabsiuuab" (OR TO "lejsjjabsiuuab" (OR CC "lejsjjabsiuuab" BODY "lejsjjabsiuuab"))))

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-08 21:47

jimxms wrote:I haven't compared the search commands yet, but my concern is what comes next

This is a problem, at least for my server, between iOS and hMailServer. What can be done to fix it, if anything?

I guess what I'm asking is that if I do some more leg work from my end, is anyone going to be able/willing to work out the issue from hMailServer's end?

I just want to make sure that my time is not goingto be better used migrating to a different mail system :(

Unless you can prove that it is explicitly a fault in Hmailserver in that it is not performing according to RFC rules, then I would doubt anything is going to be looked at.

So those other search strings look similar, but how did they perform? Ok? Was the problem ONLY with iOS?

If so, then (in my opinion only of course) there is nothing to fix in Hmailserver but Martin has the final decision.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-09 00:24

Yes, the only issue was with the native iOS mail client search results. All other mail clients I have tested so far, have worked fine.

There is a high chance that hMailserver is performing according to RFC rules, and that the iOS mail client is breaking them. But in my humble opinion, to leave the issue unresolved would be to do a disservice to hMailServer.

I migrated away from Kerio to hMailServer as I couldn't afford the license fee's after 6 years of using the software. I had plenty of issues with Kerio too - and most were due to Microsoft/Apple not sticking to the rules, but Kerio knew that if anything was going to get fixed, it was them that were going to have to do it :/

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-09 00:37

I cant see how HMS can be modified in any way to fix iOS and its handling of data. If the search string sent to HMS is standard (as your tests above with different apps suggest its is), HMS cant know what the receiving device is that is making the request nor change the results in any way to help the faulty device 'make better sense of its own failure' (after all, HMS does only report back what the submitted search reveals).

But what do I know. :roll:
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-09 13:03

Well, there is a difference in the search strings, albeit small - and it seems to be this difference in the search string which is causing a difference in the results that hMailServer sends.

And it isn't iOS's handling of data that is at fault:

For this search string:

Code: Select all

6 UID SEARCH CHARSET US-ASCII OR FROM {14} lejsjjabsiuuab (OR TO {14} lejsjjabsiuuab (OR CC {14} lejsjjabsiuuab (OR SUBJECT {14} lejsjjabsiuuab BODY {14} lejsjjabsiuuab)))


hMailServer replied with 0 result ID's

For this search string:

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))


hMailServer replied with 13 result ID's (the entire contents of my inbox).


If I were able to use the built-in scripting engine to modify the IMAP commands, I'd work out how to modify the native iOS search string to match the aftermarket app. But as I understand it, the VBScript engine doesn't have that kind of power.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-09 13:28

Earlier in the thread you stated that

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))

was the search string for an Aftrermarket app:

jimxms wrote:Aftermarket app:

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))


And earlier you said that only iOS was failing.

Then in your last post you said that same search string failed by return entiure contents of the inbox:
jimxms wrote:For this search string:

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))

hMailServer replied with 13 result ID's (the entire contents of my inbox).



To be clear: Did the aftermarket app work or not?

If the aftermarket app worked, then I would suggest it is iOS itself that is at fault because:

aftermarket:

Code: Select all

6 UID SEARCH OR FROM lejsjjabsiuuab (OR TO lejsjjabsiuuab (OR CC lejsjjabsiuuab (OR SUBJECT lejsjjabsiuuab BODY lejsjjabsiuuab)))


looks pretty similar to iOS native app

Code: Select all

75 UID SEARCH (OR FROM "lejsjjabsiuuab" (OR SUBJECT "lejsjjabsiuuab" (OR TO "lejsjjabsiuuab" (OR CC "lejsjjabsiuuab" BODY "lejsjjabsiuuab"))))

the only difference being the extra bracket nest and the order of fields. (all quoted from your posts earlier)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-09 15:36

Sorry my mistake, I pasted in the wrong code for the iOS native search.

To be clear: the aftermarket app works fine, the native iOS mail app does not.

However the code you pasted for the aftermarket app is a version I simplified to make it easier to compare the two. The real aftermarket search code is:

Code: Select all

"IMAPD"   1280   118967   "2016-03-08 18:11:40.885"   "xxx"   "RECEIVED: 6 UID SEARCH CHARSET US-ASCII OR FROM {14}"
"IMAPD"   1280   118967   "2016-03-08 18:11:40.885"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1712   118967   "2016-03-08 18:11:40.885"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR TO {14}"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.885"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   2332   118967   "2016-03-08 18:11:40.900"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR CC {14}"
"IMAPD"   2332   118967   "2016-03-08 18:11:40.900"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   2372   118967   "2016-03-08 18:11:40.916"   "xxx"   "RECEIVED: lejsjjabsiuuab (OR SUBJECT {14}"
"IMAPD"   2372   118967   "2016-03-08 18:11:40.916"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1280   118967   "2016-03-08 18:11:40.916"   "xxx"   "RECEIVED: lejsjjabsiuuab BODY {14}"
"IMAPD"   1280   118967   "2016-03-08 18:11:40.916"   "xxx"   "SENT: + Ready for additional command text."
"IMAPD"   1712   118967   "2016-03-08 18:11:40.932"   "xxx"   "RECEIVED: lejsjjabsiuuab)))"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.947"   "xxx"   "SENT: * SEARCH"
"IMAPD"   1712   118967   "2016-03-08 18:11:40.947"   "xxx"   "SENT: 6 OK UID completed"
"IMAPD"   1712    118967   "2016-03-08 18:11:40.947"   xxx"   "SENT: * SEARCH"


vs the iOS native mail app code of:

Code: Select all

"IMAPD"   1712   118937   "2016-03-08 18:04:40.478"   "xxx"   "RECEIVED: 20 UID SEARCH (OR FROM "Lejsjjabsiuab" (OR SUBJECT "Lejsjjabsiuab" (OR TO "Lejsjjabsiuab" (OR CC "Lejsjjabsiuab" BODY "Lejsjjabsiuab")))) NOT DELETED"
"IMAPD"   1712   118937   "2016-03-08 18:04:40.493"   "xxx"   "SENT: * SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562"


My purpose for simplifying them originally was because you originally mentioned that this nesting looked odd:

jimimaseye wrote:
    (OR FROM "Test"
      (OR SUBJECT "Test"
        (OR TO "Test"
          (OR CC "Test" BODY "Test")
          )))

Looks a bit suspect. Doesnt seem to follow the usual pattern of nesting with brackets.


However, the nesting of the aftermarket app is also very similar in that it combines SUBJECT and BODY searches in one set of brackets at the end of the IMAP command.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-09 16:33

Its pretty clear then. iOS is doing things very differently and is probsbly why it isnt working.

The working apps send the an individual search field, await the "SENT: + Ready for additional command text." to be returned before then sending the next one (and so on and so on). All fields are submitted separately. However, iOS is sending a single search command on one line and finishing its search string with ") NOT DELETED" whereas the other apps do not. Also the iPhone is not specifying he character set whereas the others are ("US-ASCII"). Is your HMS/database in the same language/character set?

Now I dont know how IMAP search commands are supposed to be and what the official method is or whether iOS is right to expect it to be understood but it does scream a lot that all other apps do it differently....and works. (I guess some reading is in order: https://tools.ietf.org/html/rfc3501#section-6.4.4)
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-09 19:28

OK I think I've gotten to the bottom of it. I telnetted into my IMAP server, logged in, selected the inbox folder and issued the following commands:

a002 UID SEARCH (OR FROM "xyz" (OR SUBJECT "xyz" (OR TO "xyz" (OR CC "xyz" BODY "xyz")))) NOT DELETED
* SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562 1569 1571
a002 OK UID completed


a002 UID SEARCH (OR FROM "xyz" (OR TO "xyz" (OR CC "xyz" (OR SUBJECT "xyz" BODY "xyz")))) NOT DELETED
* SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562 1569 1571
a002 OK UID completed


a002 UID SEARCH OR FROM "xyz" (OR TO "xyz" (OR CC "xyz" (OR SUBJECT "xyz" BODY "xyz"))) NOT DELETED
* SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562 1569 1571
a002 OK UID completed


a002 UID SEARCH (OR FROM xyz (OR SUBJECT xyz (OR TO xyz (OR CC xyz BODY xyz)))) NOT DELETED
* SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562 1569 1571
a002 OK UID completed


a002 UID SEARCH CHARSET US-ASCII (OR FROM "xyz" (OR SUBJECT "xyz" (OR TO "xyz" (OR CC "xyz" BODY "xyz")))) NOT DELETED
* SEARCH 1095 1098 1218 1222 1227 1377 1487 1488 1489 1529 1554 1555 1562 1569 1571
a002 OK UID completed


a002 UID SEARCH (OR FROM "xyz" (OR SUBJECT "xyz" (OR TO "xyz" (OR CC "xyz" BODY "xyz"))))
* SEARCH
a002 OK UID completed


a002 UID SEARCH (OR FROM "eBay" (OR SUBJECT "eBay" (OR TO "eBay" (OR CC "eBay" BODY "eBay"))))
* SEARCH 1571
a002 OK UID completed


As you can see I tried the original iOS command along with several variations of it with brackets moved/removed.

Each of the commands in red failed because none of the items in my Inbox contained the phrase "xyz", yet the search result returned several items (my entire inbox of 15 emails).

Each of the commands in green succeeded because they either returned zero items, or in the case of the eBay search, returned the correct result of 1 email.


The only difference between the commands...the use of NOT DELETED. For some reason hMailServer is choking on this and returning all emails regardless.

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-09 20:02

Furthermore, moving the "NOT DELETED" command directly after SEARCH works as expected:

Code: Select all

a006 UID SEARCH NOT DELETED (OR FROM "eBay" (OR SUBJECT "eBay" (OR TO "eBay" (OR CC "eBay" BODY "eBay"))))
* SEARCH 1571
a006 OK UID completed

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-03-09 21:26

Interesting findings. Reading the RFC (linked to above) I cant see any obvious ruling that the string of search text must be AFTER the specific flag search key - ie, having 'not deleted' at the end is the same as having it at the beginning (both assuming an 'AND' joining to the other search keys by default).

eg

SEARCH NOT DELETED (and) FROM "ebay"

should be the same as

SEARCH FROM "ebay" (and) NOT DELETED.


(But Im not very good at reading those RFC definitions. :wink: )

Interestingly though all the apps you have tested that work, and the examples given in the RFC's, does show the flag key at the beginning before actual text pattern searches and only the iOS search is placing it at the end.

Might be worth you raising this as an issue for Martin to see in https://github.com/hmailserver/hmailserver/issues/ and point to you recent diagnostic posting above.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-10 15:35

Thanks, I have put this on github as suggested:

https://github.com/hmailserver/hmailserver/issues/149

User avatar
martin
Developer
Developer
Posts: 6774
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby martin » 2016-03-29 07:19

Fixed. The fix will be included in next 5.6.5 build.
Martin Knafve
martin@hmailserver.com
https://twitter.com/knafve

jimxms
New user
New user
Posts: 25
Joined: 2010-09-16 09:37

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimxms » 2016-03-30 02:16

Great! Cant wait for it to be available.

User avatar
jimimaseye
Moderator
Moderator
Posts: 6402
Joined: 2011-09-08 17:48

Re: Hmailserver + iOS returns all emails in mailbox when searching

Postby jimimaseye » 2016-04-24 19:30

https://www.hmailserver.com/changelog/? ... build=2339

Issue 149: When searching for messages using IMAP and a "Not Deleted" criteria, sometimes incorrect email messages were returned in the response.


Download the latest here: https://www.hmailserver.com/download_ge ... loadid=252
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829


Return to “Development & alpha discussions”



Who is online

Users browsing this forum: No registered users and 2 guests