* modest-mail-operation.c: refactored some common code.