$ 0 0 I use PR_DISPLAY_NAME as this value also gives same as PR_ATTACH_LONG_FILENAME and PR_ATTACH_LONG_FILENAME is absent when MSG is an attachment.