X-GM-RAW

Showing 1-4 of 4 messages
X-GM-RAW Shkur 10/4/11 12:38 AM
Hi. I confused about this:
I have 3 messages in inbox:
1. message body → живалов
2. message body → qwerty живалов
3. message body → йцукен живалов
under ubuntu I use openssl s_client -crlf -connect imap.gmail.com:993
. login user pas
……….
. select “[Gmail]/&BBIEQQRP- &BD8EPgRHBEIEMA-” ← this is all mail
……….
. search charset utf-8 X-GM-RAW живалов+йцукен
* SEARCH 52 ← ok this is good (correct) BUT
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов-йцукен
* SEARCH
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов–йцукен
* SEARCH
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов+-йцукен
* SEARCH
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов+\-йцукен
. BAD Could not parse command
. search charset utf-8 X-GM-RAW живалов+/-йцукен
* SEARCH
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов+\\-йцукен
. BAD Could not parse command
. search charset utf-8 X-GM-RAW ‘живалов -йцукен’
. BAD Could not parse command
. search charset utf-8 X-GM-RAW живалов -йцукен
. BAD Could not parse command
. search charset utf-8 X-GM-RAW живалов|-йцукен
* SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов||-йцукен
* SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52
. OK SEARCH completed (Success)
. search charset utf-8 X-GM-RAW живалов&-йцукен
* SEARCH
. OK SEARCH completed (Success)
. search charset utf-8 живалов&-йцукен
. BAD Could not parse command
. search charset utf-8 живалов|-йцукен
. BAD Could not parse command
. search charset utf-8 живалов AND -йцукен
. BAD Could not parse command
. search charset utf-8 “живалов AND -йцукен”
. BAD Could not parse command
. search charset utf-8 “живаловAND-йцукен”
. BAD Could not parse command

may be somebody know what is the problem? How to use non english words
with qutes and negative words like “живалов -йцукен”.
If I make this request in english e.g. “sometext -someAnotherText” it
will works well.

Re: [google-mail-xoauth-tools] X-GM-RAW bkennelly 10/4/11 11:09 AM
Send non-ASCII data using literals:

. search charset utf-8 x-gm-raw {30}
+ go ahead
"живалов -йцукен"
* SEARCH 586
. OK SEARCH completed (Success)


--
You received this message because you are subscribed to the Google Groups "Google Mail Xoauth Tools" group.
To post to this group, send email to google-mail-...@googlegroups.com.
To unsubscribe from this group, send email to google-mail-xoauth-tools+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-mail-xoauth-tools?hl=en.




--
Brian Kennelly
Re: X-GM-RAW Shkur 10/5/11 8:11 PM
Brain Kennelly, thank you very much! I should read RFC more
carefully :)
And so, if I use NBSP (non break space) (see below) in search query it
will work ok! :)

. search charset utf-8 x-gm-raw живалов йцукен
* SEARCH 52


. OK SEARCH completed (Success)
. search charset utf-8 x-gm-raw живалов -йцукен
* SEARCH 47 48 50 51

. OK SEARCH completed (Success)

ура! здесь просто можно использовать неразрывнцй пробел! тогда он не
будет интерпритироваться в качестве разделителся!
[непечатный символ]

U+00A0 NO-BREAK SPACE
Основные свойства символа
В стандарте с версии 1.1
Категория Юникода: Разделители, пробелы
Другие полезные представления
UTF-8: 0xC2 0xA0
UTF-16: 0x00A0
Восьмеричное представление UTF-8 в языке C: \302\240
Десятичное представление XML:  
Аннотации и перекрёстные ссылки
Примечания:
 • commonly abbreviated as NBSP
См. также:
 • U+0020 SPACE
 • U+2007 FIGURE SPACE
 • U+202F NARROW NO-BREAK SPACE
 • U+2060 WORD JOINER
 • U+FEFF ZERO WIDTH NO-BREAK SPACE
Приблизительные эквиваленты:
 • <noBreak> U+0020 SPACE

Re: X-GM-RAW Shkur 10/9/11 12:56 PM
one more question about search:
I've got message with text (phone number): +79031234567
If query is +79031234567 search will find this message. But if query is 9031234567 search will find nothing. How to solve this problem?