Inbox attachment correction, remove directory

*Fix #629