A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Cleaned up file_name()
Daniel Quinn39134b517ed3
diff --git a/src/documents/mail.py b/src/documents/mail.pyindex 2fc8e4698..dd58673a5 100644--- a/src/documents/mail.py+++ b/src/documents/mail.py@@ -2,7 +2,6 @@ import datetimeimport emailimport imaplibimport os-import randomimport reimport time@@ -93,12 +92,7 @@ class Message(object):@propertydef file_name(self):-- prefix = str(random.randint(100000, 999999))- if self.SAFE_SUBJECT_REGEX.match(self.subject):- prefix = self.subject-- return "{}.{}".format(prefix, self.attachment.suffix)+ return "{}.{}".format(self.subject, self.attachment.suffix)class Attachment(object):