sympa | 17 May 2011 00:59
Picon

Reminder of your subscription to sympa-dev

Your are subscriber of list sympa-dev@... with  email gmsd-sympa-
dev <at> m.gmane.org

Everything about this list: https://listes.cru.fr/sympa/info/sympa-dev

Unsubscription:
mailto:sympa@...?subject=sig%20sympa-dev%20gmsd-sympa-dev%40m.gmane.org

Alfonso Marín Marín | 31 May 2011 10:48
Picon
Favicon

Improving urlize behaviour

Hi All,

We have activated 'urlize' reception mode in some heavy internal lists 
to save space in users mailboxes. It is working fine, but we have 
noticed a behaviour that can be improved, from our point of view.

When an user with a graphic signature send a message with an attached 
file, or an user send a message with embedded images and an attached 
file,  sympa 'urlize' the file but also it 'urlize' the html part. That 
occurs because the mail client creates the html message inside a 
"multipart/related" MIME part and this part is greater than 
'urlize_min_size'.

An obvious solution could be to increase 'urlize_min_size', but then 
there is the risk of passing some attachments 'un-urlized', loosing the 
adventages of 'urlize' reception mode.

We think that a better solution would be to 'urlize' the parts inside 
the 'multipart/*' part, instead of the whole part itself.

I propose a patch to do this. Inside List::_urlize_part, if the part 
hasn't got a recommended_filename, and the part is 'multipart/*', we 
pass this part throw List::_urlize_part again.

I would appreciate your point of view, because I don't know if I'm 
missing something or this is not a good idea for any reason.

Regards.

--

-- 
(Continue reading)


Gmane