[DF-616] improvements in qmimehelper