Correct emails when folders are shared.

itemType is never "dir"; it's either "file" or "folder".