summaryrefslogtreecommitdiff
path: root/plugins/ImportTXT/doc/examples_ru.txt
blob: 2120fd2b7225b6784d90d2b526ccbb6767d273b7 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169

Ïðèìåð ôàéëà:
************

	Èñòîðèÿ ñîîáùåíèé ñ Íåèçâåñòíûé (000000000)
	Ñîõðàíåíî èç Jimm 07.06.2008 11:49:17


------------------------------------>>>-
 Abyss  (06.09.2007 17:52:51):
Ïðèâåò!

------------------------------------<<<-
 Íåèçâåñòíûé (06.09.2007 18:03:09):
Õàé

************

Øàáëîí òàêîé:

[General]
Name=Jimm import pattern
Charset=ANSI
UseHeader=2
UsePreMsg=1
[Message]
Pattern=^------------------------------------(<<<|>>>)-\r\n\s([^\r\n]+?)\s\((\d\d?)\.(\d\d?)\.(\d\d\d?\d?)\s(\d\d?):(\d\d?):(\d\d?)\):$
In=<<<
Out=>>>
Direction=1
Day=3
Month=4
Year=5
Hours=6
Minutes=7
Seconds=8
[PreMessage]
PreRN=1
AfterRN=2
[Header]
Pattern=^\r\n\tÈñòîðèÿ ñîîáùåíèé ñ ([^\r\n]+?)\s\((\d{5,})\)\r\n\tÑîõðàíåíî èç Jimm\s[^\r\n]+?\r\n
InNick=1
InUID=2

Êîìåíòàðèè: îñíîâíûå ìîìåíòû ñîäåðæàòüñÿ â pattern_cfg,
Òàêèå çíà÷åíèÿ RN ïîòîìó ÷òî:
ñ÷èòàåì...

Ïðèâåò!{\r\n} Ðàç
{\r\n} äâà ïîñëå
------------------------------------<<<-
 Íåèçâåñòíûé (06.09.2007 18:03:09):{\r\n} Îäèí äî
Õàé

UseHeader=2 èñïîëüçóåì çàãîëîâîê òîëüêî äëÿ îïðåäåëåíèÿ êîíòàêòà íàçíà÷åíèÿ


====================================================================================================================================
Äëÿ History++ 
=============

Ïðèìåð ôàéëà
************

###
### Ïîëíàÿ èñòîðèÿ
### Abyss (ICQ: 0000000) - Íåèçâåñòíûé (ICQ: 00000000)
### (ñîçäàíà ìîäóëåì history++)
###

[06.09.2007 17:52:51] Abyss:
Ïðèâåò!

[06.09.2007 18:03:09] Íåèçâåñòíûé:
Õàé

************
Ôàéë øàáëîíà âûãëÿäèò òàê:
**************************
[General]
Name=History++ pattern
Charset=UCS2
UseHeader=3
UsePreMsg=1
[Message]
Pattern=^\[(\d\d?)\.(\d\d?)\.(\d\d\d?\d?)\s(\d\d?):(\d\d?):(\d\d?)\]\s([^\r\n]+?):$
Direction=7
Day=1
Month=2
Year=3
Hours=4
Minutes=5
Seconds=6
[Header]
Pattern=^###\r\n###\s[^\r\n]+?\r\n###\s([^\r\n]+?)\s\([^\r\n]+?:\s([^\r\n]+?)\)\s-\s([^\r\n]+?)\s\([^\r\n]+?:\s([^\r\n]+?)\)\r\n###\s[^\r\n]+?\r\n###\r\n
In=3
Out=1
InNick=3
OutNick=1
InUID=4
OutUID=2
[PreMessage]
PreRN=1
AfterRN=2
**************************

Âñå àíàëîãè÷íî òîëüêî äîáàâëÿåòñÿ îáðàáîòêà çàãîëîâêà, ïîëó÷àåì íèê äëÿ òîãî ÷òîáû ïîòîì åãî èñïîëüçîâàòü â êà÷åñòâå ìàðêåðà íàïðàâëåíèÿ

========================================================================================================================================

Äëÿ Message Export
==================
Ôàéë:
*****
------------------------------------------------
      History for
User      : Íåèçâåñòíûé
Protocol  : ICQ
UIN       : 00000000
FirstName : Mister
LastName  : X
Age       : 0
Gender    : M
e-mail    : 
Nick      : Íåèçâåñòíûé 
City      : 
State     : 66
Phone     : 
Homepage  : 
- About -

------------------------------------------------
Abyss        06.09.2007 17:52:51 Ïðèâåò
                                 Êàê äåëà?
Íåèçâåñòíûé  06.09.2007 18:03:09 Õàé, íîðìàëüíî

*******************

[General]
Name=Message export import pattern
Charset=UTF8
UseHeader=3
UsePreMsg=1
[Message]
Pattern=^([^\r\n]+?)[\s]+?(\d\d?)\.(\d\d?)\.(\d\d\d?\d?)\s(\d\d?):(\d\d?):(\d\d?)\s
Direction=1
Day=2
Month=3
Year=4
Hours=5
Minutes=6
Seconds=7
[Header]
Pattern=^------------------------------------------------\r\n[\s]+?History for\r\nUser[\s]+?:\s([^\r\n]+?)\r\n(.*\r\n)+?Nick[\s]+?:\s([^\r\n]+?)\s\r\n(.*\r\n)+?^------------------------------------------------$
In=1
InNick=3
[PreMessage]
PreRN=0
AfterRN=1
PreSP=-2
*********************


Äîáàâëåíî óäàëåíèå ïðîáåëîâ â ìíîãîñòðî÷íûõ ñîîáùåíèÿõ PreSP=-2

Ñ ýòèì ôîðìàòîì ñîîáùåíèé áàðäàê: 1) åñëè ïðîòîêîë ÍÅ ICQ òî UID ìû íå óâèäèì, òîåñòü íè JID íè ÷òî-òî òàì åùå íå ñîõðàíÿþòñÿ
									 ïðèõîäèòñÿ èñïîëüçîâàòü Íèê, ÷òî íå åñòü ãóä
								  2) Íèê! Çà÷åì ïèñàòü â ôàéëû ïðîáåë ïîñëå íèêà????
									 Âñå ñòðî÷êè (Potocol, User, email) íîðìàëüíûå, à ïîñëå íèêà ïðîáåë.