webnotes/wnframework — pull request #286 by miguelfontanes (2013-11-04 20:28:27+00:00)
Title: Patch 2

use slugify to handle unicode characters because files with utf-8 or iso8859-1 characters were not saved properly and impossible to open
add doc.name to file name saved because every file received is different and we can't use a previous file
delete file form pop3 server only after mail processing in order to avoid losing it if an error happens