[Dovecot] deliver saving mails with hard linking

Karsten Bräckelmann guenther at rudersport.de
Mon Jun 2 00:28:42 EEST 2008


Sorry, posting in chunks today.

On Mon, 2008-06-02 at 00:06 +0300, Timo Sirainen wrote:
> I think my previous mail about it described some persistent uniqueness  
> checks.

You didn't mention persistence, but uniqueness checks with SHA-1 sums
stored in some database. Assuming databases are designed to be dynamic
and not constantly growing, the hashes would be removed when the mail is
being deleted (for the last time).

Unless it really is about persistence, which is not the request by the
OP, option (2) lacks cleaning up.

Just something to keep in mind. Same for this patch, where the wrapper
script should perform this, needing to be documented.

  guenther


-- 
char *t="\10pse\0r\0dtu\0. at ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



More information about the dovecot mailing list