# [icq-devel] incorrect RTF message packet?

sharc sharc at tut.by
Mon Apr 5 17:48:08 CEST 2004

Hi all!
Here is already two day I try resolve problem with my icq but can't decide what is reason of this bug! I try send RTF message to other client and have failure. ICQ2002-2003 successfull parsed this packet, but trillian doesn't display my message, throught it received my packet from server. Maybe I made mistake when create rtf-packet, or do not set any service flags, or forget any capability string. I don,t know...
Help me!!! :'-(
There is my packet, that i send to the server:
Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

00000000   2A 02 00 2E 02 3F 00 04  00 06 00 00 00 00 00 06   *....?..........
00000010   41 11 01 1A 59 16 3A 2C  00 02 09 33 31 39 38 35   A...Y.:,...31985
00000020   35 34 39 35 00 05 02 19  00 00 41 11 01 1A 59 16   5495......A...Y.
00000030   3A 2C 09 46 13 49 4C 7F  11 D1 82 22 44 45 53 54   :,.F.IL.С'"DEST
00000040   00 00 00 0A 00 02 00 01  00 0F 00 00 27 11 01 F1   ............'..с
00000050   1B 00 0A 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
00000060   00 00 00 00 00 00 03 00  00 00 00 D1 FF 0E 00 D1   ...........Ся..С
00000070   FF 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00   я...............
00000080   00 21 00 8A 01 7B 5C 72  74 66 31 5C 61 6E 73 69   .!.?.{\rtf1\ansi
00000090   5C 61 6E 73 69 63 70 67  31 32 35 31 5C 64 65 66   \ansicpg1251\def
000000A0   66 30 5C 64 65 66 6C 61  6E 67 31 30 34 39 7B 5C   f0\deflang1049{\
000000B0   66 6F 6E 74 74 62 6C 7B  5C 66 30 5C 66 73 77 69   fonttbl{\f0\fswi
000000C0   73 73 5C 66 70 72 71 32  5C 66 63 68 61 72 73 65   ss\fprq2\fcharse
000000D0   74 30 20 41 72 69 61 6C  3B 7D 7B 5C 66 31 5C 66   t0 Arial;}{\f1\f
000000E0   73 77 69 73 73 5C 66 70  72 71 32 5C 66 63 68 61   swiss\fprq2\fcha
000000F0   72 73 65 74 32 30 34 20  41 72 69 61 6C 20 43 59   rset204 Arial CY
00000100   52 3B 7D 7D 0D 0A 7B 5C  63 6F 6C 6F 72 74 62 6C   R;}}..{\colortbl
00000110   3B 5C 72 65 64 37 31 5C  67 72 65 65 6E 32 30 5C   ;\red71\green20\
00000120   62 6C 75 65 31 38 3B 5C  72 65 64 33 30 5C 67 72   blue18;\red30\gr
00000130   65 65 6E 31 35 35 5C 62  6C 75 65 31 39 31 3B 5C   een155\blue191;\
00000140   72 65 64 31 38 34 5C 67  72 65 65 6E 32 33 35 5C   red184\green235\
00000150   62 6C 75 65 32 33 37 3B  5C 72 65 64 32 35 35 5C   blue237;\red255\
00000160   67 72 65 65 6E 30 5C 62  6C 75 65 31 32 38 3B 5C   green0\blue128;\
00000170   72 65 64 30 5C 67 72 65  65 6E 32 35 35 5C 62 6C   red0\green255\bl
00000180   75 65 30 3B 5C 72 65 64  32 35 35 5C 67 72 65 65   ue0;\red255\gree
00000190   6E 30 5C 62 6C 75 65 30  3B 7D 0D 0A 5C 76 69 65   n0\blue0;}..\vie
000001A0   77 6B 69 6E 64 34 5C 75  63 31 5C 70 61 72 64 5C   wkind4\uc1\pard\
000001B0   63 66 32 5C 68 69 67 68  6C 69 67 68 74 33 5C 6C   cf2\highlight3\l
000001C0   61 6E 67 31 30 33 33 5C  66 30 5C 66 73 32 30 20   ang1033\f0\fs20
000001D0   73 64 66 5C 63 66 34 20  73 64 66 66 73 64 5C 63   sdf\cf4 sdffsd\c
000001E0   66 35 20 73 64 77 64 73  5C 63 66 36 20 73 64 66   f5 sdwds\cf6 sdf
000001F0   5C 63 66 32 5C 6C 61 6E  67 31 30 34 39 5C 66 31   \cf2\lang1049\f1
00000200   5C 66 73 32 30 5C 70 61  72 0D 0A 7D 0D 0A 00 00   \fs20\par..}....
00000210   00 00 00 FF FF FF 00 26  00 00 00 7B 39 37 42 31   ...яяя.&...{97B1
00000220   32 37 35 31 2D 32 34 33  43 2D 34 33 33 34 2D 41   2751-243C-4334-A
00000230   44 32 32 2D 44 36 41 42  46 37 33 46 31 34 39 32   D22-D6ABF73F1492
00000240   7D 00 03 00 00                                     }....