Update imap_and_smtp.rst

Insert the trigger in the proper database.
Merge pull request #521 from tonioo/1.1.x

Update imap_and_smtp.rst