use QMutex to guard against multiple mail checking that could lead to a crash