Mercurial > dovecot > core-2.2
comparison src/dsync/test-dsync-brain.c @ 9644:16849c0931be HEAD
dsync: Handle missing mail GUIDs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 17 Jul 2009 20:11:05 -0400 |
parents | ffda7bd92ebc |
children | 4d5cc6ce68aa |
comparison
equal
deleted
inserted
replaced
9643:3b285975bb15 | 9644:16849c0931be |
---|---|
92 { | 92 { |
93 unsigned char sha1_sum[SHA1_RESULTLEN]; | 93 unsigned char sha1_sum[SHA1_RESULTLEN]; |
94 | 94 |
95 sha1_get_digest(guid, strlen(guid), sha1_sum); | 95 sha1_get_digest(guid, strlen(guid), sha1_sum); |
96 memcpy(guid_128, sha1_sum, MAIL_GUID_128_SIZE); | 96 memcpy(guid_128, sha1_sum, MAIL_GUID_128_SIZE); |
97 } | |
98 | |
99 bool mail_guid_128_is_empty(const uint8_t guid_128[MAIL_GUID_128_SIZE] ATTR_UNUSED) | |
100 { | |
101 return FALSE; | |
97 } | 102 } |
98 | 103 |
99 static bool mailbox_find(const char *name, unsigned int *idx_r) | 104 static bool mailbox_find(const char *name, unsigned int *idx_r) |
100 { | 105 { |
101 unsigned int i; | 106 unsigned int i; |