write inbox files