-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backup mdbox -> rbox #118
Comments
a retest with a backup from mdbox to sdbox shows that the keyword order is also not preserved. |
Due to the fact that sdbox storage plugin is handling keywords in the same way, i looked for answers regarding this issue and got the answer: "there is nothing that guarantees their ordering So i think we need to modify our check scripts to handle this "random" ordering of keywords. |
I changed the keyword checking script by omitting the field "flags" now. But I extended the script with manual flags verification. |
t10.mdbox.log
t10.rbox.log
diff.log
in some cases there is a difference of the keyword order:
e.g.
rbox: $label1 $label4 $label5
mdbox: $label4 $label1 $label5
to reproduce:
validate:
compare.sh
users t1 - t100
#!/bin/bash
for i in
seq 1 100
;do
doveadm fetch -u t$i "guid date.received date.sent flags pop3.uidl seq size.virtual uid user mailbox-guid mailbox" ALL > diff.text1
doveadm -c path to mdbox dovecot.conf fetch -u t$i "guid date.received date.sent flags pop3.uidl seq size.virtual uid user mailbox-guid mailbox" ALL > diff.text2
result=$(diff -y -W 200 diff.text1 diff.text2)
if [ $? -eq 0 ]
then
echo "all the same t$i"
else
echo "files are different t$i"
echo "$result"
fi
done
echo "done"
#################
The text was updated successfully, but these errors were encountered: