Hello Ed, On Tue, Aug 03, 2010 at 01:38:59PM -0700, Ed Blackman wrote: > I used mairix to search for a particular Message-Id, expecting one > message to be returned. Instead I was suprised to see hundreds returned. > On closer inspection, the ID was structured like > aanlkti=manymorecharact...@mail.gmail.com, so my search was "mairix > m:aanlkti=manymorecharact...@mail.gmail.com", which was treated the same > as if I had run "mairix m:AANLkTi=". "AANLkTi" is a common prefix of > many Gmail Message-Ids, so I got search results from lots of Gmail > users.
I had exactly the same problem! It seems like mairix is not yet able to escape special characters. In my opinion there are two ways to fix that: a) no special characters for "m:" queries, since they aren't used here very often b) escape character "\", good since words can't contain "\" (or "\\" -> "\") As a workaround, I split the Message-ID in subwords: | mairix -r "m:$(echo "$msgid" | sed -e 's/[~,/=^]\+/=,/g' \ | -e 's/.\{31\}/&=,/g' -e 's/^\(=,\)\+//g' -e 's/$/=/' \ | -e 's/\(=,\|=\)\+$/=/g')" This works for me... Johannes
pgphFSj0Dcq5p.pgp
Description: PGP signature
------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________ Mairix-users mailing list Mairix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mairix-users