17 |
|
|
18 |
import StringIO |
import StringIO |
19 |
import string |
import string |
20 |
|
import re |
21 |
import gzz |
import gzz |
22 |
import java |
import java |
23 |
|
|
164 |
gzz.mediaserver.storage.TransientStorer()) |
gzz.mediaserver.storage.TransientStorer()) |
165 |
|
|
166 |
gzz.modules.email.converter.storeMailbox(mboxfile, medServ) |
gzz.modules.email.converter.storeMailbox(mboxfile, medServ) |
|
mailIDs = medServ.getIDs() |
|
167 |
|
|
168 |
|
p = re.compile( '(\r\n|\n)') |
169 |
|
mail1c = p.sub('\r\n', mail1) |
170 |
|
mail2c = p.sub('\r\n', mail2) |
171 |
|
mail3c = p.sub('\r\n', mail3) |
172 |
|
|
173 |
|
mailIDs = medServ.getIDs() |
174 |
if mailIDs.size() != 3: |
if mailIDs.size() != 3: |
175 |
raise java.lang.Error() |
raise java.lang.Error() |
176 |
|
|
178 |
|
|
179 |
for mail in mailIDs.iterator(): |
for mail in mailIDs.iterator(): |
180 |
tmail = java.lang.String(medServ.getDatum(mail).getBytes()) |
tmail = java.lang.String(medServ.getDatum(mail).getBytes()) |
181 |
if tmail.equals(mail1): m1 = 1 |
if tmail.equals(mail1c): m1 = 1 |
182 |
if tmail.equals(mail2): m2 = 1 |
if tmail.equals(mail2c): m2 = 1 |
183 |
if tmail.equals(mail3): m3 = 1 |
if tmail.equals(mail3c): m3 = 1 |
184 |
|
|
185 |
if not (m1 and m2 and m3): |
if not (m1 and m2 and m3): |
186 |
raise java.lang.Error() |
raise java.lang.Error() |
|
|
|