[en] Bootstrap – accordion closes modal

Because Bootstrap events are not namespaced until they release version 3.0 (see https://github.com/twitter/bootstrap/issues/3736), they conflict with each other. It causes for instance closing modals when switching accordion tabs — they both listen to „hidden” event. A simple, global solution is not to use data-toggle=”collapse” but following code (that attaches „live”, 1.9.x jQuery style):

$(document).on('click', 'a.accordion-toggle', function(event) {
    event.preventDefault();
    var parent = $(this).parent().parent(),
        body = parent.find('.accordion-body');
        
    // hide currently shown group
    parent.parent().find('.accordion-body.collapse.in').collapse('toggle').on('hidden', function(event) {
        event.stopPropagation();
    }); 
    
    // show newly clicked group
    body.collapse('toggle').on('hidden', function(event) {
        event.stopPropagation();
    });
});

Roundcube ATT####.dat in Outlook with diacritical characters

When you get reports that some people get e-mails from Roundcube that have ATT####.dat attachments, check if they’re using Microsoft programs, especially Outlook Express. They don’t (of course) implement the most recent RFCs, so if attachment name contains diacritical characters (such as Polish ą, ć, ś, etc.) it gets corrupted. When using Roundcube, the solution is quite simple — search the main config file for „mime_param_folding” and change its value from 0 to 1.