Author serhiy.storchaka
Recipients BreamoreBoy, allenap, barry, ggenellina, mwh, pitrou, r.david.murray, serhiy.storchaka, varun
Date 2015-05-17.17:46:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431884792.22.0.749023152251.issue6598@psf.upfronthosting.co.za>
In-reply-to
Content
Currently the maximal length of local part is

    14+1+len(str(2**16))+1+len(str(10**5-1)) == 26

With the patch it will be

    len(str(2**31*100))+1+len(str(2**16))+1+len(str(2**64)) = 39

If encode all three numbers with hexadecimal, it will be

    len('%x'%(2**31*100))+1+len('%x'%(2**16))+1+len('%x'%(2**64)) = 34

If encode their with base32:

    math.ceil((31+math.log(100)/math.log(2))/5)+1+math.ceil(16/5)+1+math.ceil(64/5) = 27

Using base64 or base85 can be not safe, because message ID can be used as file name in case-insensitive file system.
History
Date User Action Args
2015-05-17 17:46:32serhiy.storchakasetrecipients: + serhiy.storchaka, mwh, barry, ggenellina, pitrou, allenap, r.david.murray, BreamoreBoy, varun
2015-05-17 17:46:32serhiy.storchakasetmessageid: <1431884792.22.0.749023152251.issue6598@psf.upfronthosting.co.za>
2015-05-17 17:46:32serhiy.storchakalinkissue6598 messages
2015-05-17 17:46:32serhiy.storchakacreate