fix mail preview

(cherry picked from commit 18ea0bb1dd921ef8fd8c53c7adbed0c5ed0a3eb9)