Intelligent mail scanning processing method and system, storage medium and program product

By detecting and processing super-large attachments in the mail transfer module, automatically saving them to the attachment download module and generating a download link, it solves the problem that corporate employees need to manually encrypt and compress and upload files, improves work efficiency and ensures the integrity and standardization of email data.

CN120050256APending Publication Date: 2025-05-27SUZHOU BROCADESOFT
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510234486.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

When sending oversized attachments in emails, the existing technology requires enterprise employees to manually encrypt and upload files to external platforms, resulting in inefficiency and error-prone problems.

Method used

By detecting the size of the scanned file attachment in the mail transfer module, when the preset threshold is exceeded, the attachment is automatically saved to the attachment download module and a download link is generated, and the download link is added to the mail body content, which realizes automated processing and ensures the integrity of the mail data.

Benefits of technology

There is no need for manual intervention, and manual encryption, compression and upload operations are avoided, which greatly improves work efficiency. By uniformly processing email formats and generating download links, the smooth sending and standardization of email data is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050256A_ABST
    Figure CN120050256A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent mail scanning processing method and system, a storage medium and a program product, and relates to the field of electric digital data processing. The mail transfer module automatically stores the scanned file attachment to the attachment downloading module, generates the downloading link of the scanned file attachment, and adds the downloading link into the mail body content, so that the mail data is ensured to be smoothly sent while the integrity of the mail data is ensured, and the problem that the sending of an oversized attachment fails in a traditional mode is effectively solved. The automatic processing mode does not need manual intervention, tedious operations such as manual file encryption and compression and uploading to an external platform by enterprise employees are avoided, and the working efficiency is greatly improved. And meanwhile, the mail transfer module also uniformly processes the mail format according to the preset rule, so that the mail normalization is ensured, and the enterprise mail management level is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic digital data processing, and particularly to an intelligent scanned mail processing method, system, storage medium and program product. Background Art

[0002] With the continuous improvement of automation, email has become an indispensable communication tool in the daily office work of modern enterprises. Enterprise employees often scan various documents into electronic formats and then send them to customers via email. These documents can be text, pictures and other multimedia content. However, if the size of the document exceeds the maximum byte limit allowed by the email, the sending will fail.

[0003] In the related art, when the size of the document exceeds the maximum byte limit, enterprise employees usually encrypt and compress the document to obtain an encrypted compressed package, and then upload the encrypted compressed package to an external intermediate platform to generate a download link so that the email can be successfully sent.

[0004] Although this method guarantees the data security of the document, it requires enterprise employees to spend extra time and labor. Especially when dealing with a large number or frequent file transfers, the manual operation steps are cumbersome and error-prone, resulting in a reduction in work efficiency. Summary of the Invention

[0005] This application provides an intelligent scanned mail processing method, system, storage medium and program product, which is used to improve work efficiency while ensuring data security.

[0006] In a first aspect, this application provides an intelligent scanned mail processing method, which is applied to an intelligent scanned mail processing system. The intelligent scanned mail processing system includes a document scanning terminal, a mail transfer module, an attachment download module, a mail sending server and a mail receiving terminal. The method includes: the mail transfer module receives first mail data sent by the document scanning terminal, and the first mail data includes first mail header information, first mail body content and a scanned file attachment; the mail transfer module determines whether the number of bytes of the scanned file attachment exceeds a preset byte number threshold; if the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the mail transfer module saves the scanned file attachment to the attachment download module and generates a download link corresponding to the scanned file attachment; the mail transfer module adds the download link to the first mail body content to obtain second mail body content; the mail transfer module processes the first mail header information and the second mail body content according to a preset processing rule to obtain second mail data; the mail transfer module sends the second mail data to the mail sending server so that the mail receiving terminal receives the second mail data.

[0007] By adopting the above technical solution, the mail relay module detects and scans the size of the file attachment. When the number of bytes of the scanned file attachment exceeds the preset byte threshold, the mail relay module automatically saves the scanned file attachment to the attachment download module and generates a download link for the scanned file attachment, and adds the download link to the mail body content. While ensuring the integrity of the mail data, it guarantees the smooth sending of the mail data, effectively solving the problem of failed sending of large attachments in the traditional method. This automated processing method requires no manual intervention, avoiding cumbersome operations such as manual encryption and compression of files by enterprise employees and uploading them to external platforms, greatly improving work efficiency. At the same time, the mail relay module also uniformly processes the mail format according to preset rules, ensuring the standardization of mails and improving the enterprise mail management level.

[0008] Combined with some embodiments of the first aspect, in some embodiments, the mail relay module processes the first mail header information and the second mail body content according to preset processing rules to obtain second mail data, specifically including: the mail relay module determines the standard sender address according to preset configuration; the mail relay module converts the original mail subject in the first mail header information into a standardized mail subject according to preset subject format rules, and the preset subject format rules include the arrangement rules of business type identifiers, department information, and mail generation timestamps; based on the standard sender address and the standardized mail subject, the mail relay module determines the second mail header information; the mail relay module processes the second mail body content according to preset body template rules, and the preset body template rules include body layout standards and additional information display methods; the mail relay module assembles the second mail header information and the second mail body content into the second mail data.

[0009] By adopting the above technical solution, the mail relay module standardizes the first mail header information and the second mail body content according to preset processing rules, including unifying the standard sender address, standardizing the mail subject, and typesetting the mail body content, etc., improving the readability and professionalism of mails, establishing a perfect enterprise mail management system, and being conducive to improving the enterprise's informatization management level.

[0010] Combined with some embodiments of the first aspect, in some embodiments, the mail relay module processes the second mail body content according to preset body template rules, specifically including: the mail relay module uniformly sets the font, font size, and color of the second mail body content to a preset style; the mail relay module adds a preset header information at the starting position of the second mail body content, and the mail relay module adds a preset footer information and a usage statement at the ending position of the second mail body content.

[0011] By adopting the above technical solution, the mail transfer module uniformly sets the font, font size, and color of the mail body content, and automatically adds the preset header information, preset footer information, and usage statement, achieving the standardization of enterprise mail styles. This unified mail style design makes the image presented by the enterprise to the outside world more professional and standardized, facilitating customer identification and reading. At the same time, this automated enterprise mail style processing method not only ensures the consistency of the mail format but also reduces the extra workload of enterprise employees.

[0012] In combination with some embodiments of the first aspect, in some embodiments, after the step in which the mail transfer module determines the second mail header information based on the standard sender address and the standardized mail subject, the method further includes: the mail transfer module adds the audit carbon copy or blind carbon copy address to the second mail header information.

[0013] By adopting the above technical solution, the mail transfer module automatically adds the audit carbon copy or blind carbon copy address to the mail header information, establishing a complete mail supervision chain. This design enables relevant management departments and auditors to monitor the mail transfer process in real time, promptly discover and handle potential risks. At the same time, the automatic carbon copy setting by the mail transfer module avoids the problem of possible omission of carbon copy in manual operations, ensuring the transparency and traceability of mail transmission.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after the step in which the mail transfer module receives the first mail data sent by the document scanning terminal, the first mail data including the first mail header information, the first mail body content, and the scanned file attachment, the method further includes: the mail transfer module saves the mail copy of the first mail data to a preset mail database.

[0015] By adopting the above technical solution, the mail transfer module saves the mail copy of the first mail data to a preset mail database to construct a complete mail archiving system. This automatic archiving mechanism ensures that all mails can be properly saved, facilitating subsequent query, statistics, and auditing, not only improving efficiency but also avoiding the missing of archiving caused by human negligence.

[0016] In combination with some embodiments of the first aspect, in some embodiments, after the step in which the mail transfer module determines whether the number of bytes of the scanned file attachment exceeds a preset byte number threshold, the method further includes: if the number of bytes of the scanned file attachment does not exceed the preset byte number threshold, the mail transfer module processes the first mail data according to the preset processing rule to obtain the third mail data; the mail transfer module sends the third mail data to the mail sending server, enabling the mail receiving terminal to receive the third mail data.

[0017] By adopting the above technical solution, the mail relay module detects and scans the size of the file attachment. When the number of bytes of the scanned file attachment does not exceed the preset byte number threshold, the mail relay module directly processes the mail data according to the preset processing rules and sends the mail data without generating a download link, and unifies the mail style, which is convenient for customers to identify and read.

[0018] Combined with some embodiments of the first aspect, in some embodiments, after the step that the mail relay module sends the second mail data to the mail sending server so that the mail receiving terminal receives the second mail data, the method further includes: the attachment download module obtains a scanned file attachment download request sent by the mail receiving terminal, and the scanned file attachment download request includes the download link; the attachment download module returns the scanned file attachment corresponding to the download link to the mail receiving terminal based on the scanned file attachment download request; after determining that the mail receiving terminal has completed the download of the scanned file attachment, the attachment download module deletes the scanned file attachment.

[0019] By adopting the above technical solution, a complete attachment download and cleaning mechanism is established, realizing the secure transmission of the scanned file attachment and the effective management of the storage space. After receiving the scanned file attachment download request, the attachment download module returns the scanned file attachment corresponding to the download link to the mail receiving terminal, and automatically deletes the scanned file attachment after confirming that the mail receiving terminal has received it, which not only ensures data security but also avoids the ineffective occupation of the storage space. At the same time, by cleaning up expired files in a timely manner, the risk of information leakage is also reduced.

[0020] In a second aspect, an embodiment of the present application provides an intelligent scanned mail processing system, and the intelligent scanned mail processing system includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the intelligent scanned mail processing system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0021] In a third aspect, an embodiment of the present application provides a computer program product containing instructions, and when the above computer program product runs on the intelligent scanned mail processing system, it enables the above intelligent scanned mail processing system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, and when the above instructions run on the intelligent scanned mail processing system, it enables the above intelligent scanned mail processing system to execute the method described in the first aspect and any possible implementation manner in the first aspect.

[0023] It can be understood that the intelligent scanning mail processing system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By adopting the above technical solution, the mail transfer module detects the size of the scanned file attachment. When the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the mail transfer module automatically saves the scanned file attachment to the attachment download module and generates a download link for the scanned file attachment. The download link is added to the body of the mail, ensuring the integrity of the mail data while ensuring the smooth sending of the mail data, effectively solving the problem of failure to send oversized attachments under traditional methods. This automated processing method does not require manual intervention, avoids tedious operations such as manual encryption and compression of files by corporate employees, and uploading to external platforms, greatly improving work efficiency. At the same time, the mail transfer module also uniformly processes mail formats according to preset rules, ensuring the standardization of mails and improving the level of corporate mail management.

[0025] 2. By adopting the above technical solution, the mail transfer module saves the mail copy of the first mail data to the preset mail database to build a complete mail archiving system. This automatic archiving mechanism ensures that all mails can be properly saved, which is convenient for subsequent query, statistics and auditing, not only improving efficiency, but also avoiding archive loss caused by human negligence.

[0026] 3. By adopting the above technical solution, a complete attachment download and cleanup mechanism is established, which realizes the secure transmission of scanned file attachments and the effective management of storage space. After receiving the scanned file attachment download request, the attachment download module returns the scanned file attachment corresponding to the download link to the email receiving terminal. After confirming that the email receiving terminal has received it, the scanned file attachment is automatically deleted, which not only ensures data security, but also avoids invalid occupation of storage space. At the same time, by timely cleaning up expired files, the risk of information leakage is also reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a structural architecture diagram of the intelligent scanning mail processing system in the embodiment of the present application; Figure 2 This is a flowchart of the intelligent scanning email processing method in the embodiment of the present application; Figure 3 This is another flowchart of the intelligent scanning email processing method in the embodiment of the present application; Figure 4It is a schematic structural diagram of an entity device in the intelligent scanning mail processing system according to an embodiment of the present application. Detailed implementation manners

[0028] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification of the present application, the singular forms "a", "an", "the above", "the" and "this" are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed items.

[0029] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0030] For ease of understanding, a structural architecture diagram of the intelligent scanning mail processing system according to an embodiment of the present application is introduced below, as Figure 1 shown.

[0031] The intelligent scanning mail processing system includes a document scanning terminal, a mail transfer module, an attachment download module, a mail sending server, and a mail receiving terminal. Among them, the document scanning terminal refers to a hardware device with a scanning function, which is used to convert paper documents into electronic formats. In the embodiments of the present application, the document scanning terminal refers to an office device within the company; the mail transfer module refers to a hardware device responsible for receiving, processing, and forwarding mail data. In the embodiments of the present application, the mail transfer module refers to a mail forwarding device within the company; the attachment download module refers to a hardware device specifically used for storing and managing large scanned file attachments. In the embodiments of the present application, the attachment download module refers to an attachment storage and download device within the company; the mail sending server refers to an SMTP server system responsible for mail delivery. In the embodiments of the present application, the mail sending server refers to a mail external sending device within the company; the mail receiving terminal refers to a mail client or device that receives mails. In the embodiments of the present application, the mail receiving terminal refers to an electronic device outside the company.

[0032] The document terminal device sends the email with attachments to the email relay module. If the attachment is too large, the email relay module will separate the attachment from the email to avoid sending failure caused by the large file size. Moreover, the email relay module will generate a link to the attachment, add it to the email, and send it to the email sending server. At the same time, the email relay module saves the attachment to the attachment download module. When the email receiving terminal sends a request to view the attachment to the attachment download module, the attachment download module directly returns the attachment to the email receiving terminal, effectively improving the flexibility and efficiency of file transmission.

[0033] It should be noted that the email relay module uses the traditional SMTP email protocol to send the email to the email sending server, and the attachment download module uses the HTTP download protocol to return the attachment to the email receiving terminal. The traditional SMTP email protocol has many limitations in attachment transmission, such as the upper limit of attachment size, file type restrictions, and limited transmission speed. The HTTP download protocol breaks through these limitations. It not only supports the transmission of large-capacity files but also has the function of resume breakpoint transmission. At the same time, it provides a more efficient transmission speed and wider support for file formats. Therefore, by converting the attachment into an HTTP download link and embedding it in the email body, the email relay module not only maintains the notification function of the email system but also realizes efficient file transmission. By replacing the traditional SMTP email protocol with the HTTP download protocol to send attachments, the limitations of the email system in file transmission can be effectively overcome.

[0034] For the sake of easy understanding, the method provided in this embodiment will be described in terms of its process in combination with the above scenario. Please refer to Figure 2 , which is a schematic flow diagram of the intelligent scanning email processing method in the embodiment of the present application.

[0035] S201. The email relay module receives the first email data sent by the document scanning terminal. The first email data includes the first email header information, the first email body content, and the scanned file attachment. Among them, the email relay module refers to the hardware device responsible for receiving, processing, and forwarding email data; the document scanning terminal refers to the hardware device with a scanning function, which is used to convert paper documents into electronic formats; the first email data refers to the original email data packet sent from the document scanning terminal; the first email header information refers to the email header in the first email data that includes basic information such as the sender, recipient, and subject; the first email body content refers to the main text content in the first email data; the scanned file attachment refers to the electronic document file generated by scanning.

[0036] Specifically, first, the email relay module establishes a communication connection with the document scanning terminal. Then, the email relay module receives the first email data sent by the document scanning terminal through a preset data transfer protocol. During the receiving process, the email relay module performs an integrity check on the first email data to ensure the accuracy of data transmission. If it is found that the first email data is incomplete or contains errors, the email relay module will request the document scanning terminal to resend it. After the data reception is completed, the email relay module parses the first email data into three parts: the first email header information, the first email body content, and the scanned file attachment, in preparation for subsequent processing.

[0037] S202. The email relay module determines whether the number of bytes of the scanned file attachment exceeds a preset byte number threshold. Among them, the number of bytes is used to represent the size of the scanned file attachment; the preset byte number threshold refers to the upper limit of the size of the email attachment set in advance, which is used to determine whether the scanned file attachment needs special processing.

[0038] Specifically, first, the email relay module calls the system function to obtain the number of bytes of the scanned file attachment. Then, the email relay module reads the preset byte number threshold (for example, 10MB). Next, the email relay module compares the number of bytes with the preset byte number threshold to obtain a boolean result indicating whether the number of bytes of the scanned file attachment exceeds the preset byte number threshold.

[0039] S203. If the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the email relay module saves the scanned file attachment to the attachment download module and generates a download link corresponding to the scanned file attachment. Among them, the attachment download module refers to the hardware device specifically used to store and manage large scanned file attachments; the download link refers to the unique identifier URL address used to access the scanned file attachment; saving refers to the process of writing file data into the storage space; generating refers to the process of creating and constructing the download link.

[0040] Specifically, first, the email relay module transfers the scanned file attachment to the attachment download module through a secure channel and assigns a unique identifier ID to the scanned file attachment. Then, the email relay module constructs a standard download link according to the preset URL template, combining parameters such as the unique identifier ID, access permission, and validity period of the scanned file attachment. The link format may be: "https: / / download.example.com / file / {fileId}?token={accessToken}".

[0041] To ensure security, the email relay module encrypts the download link, sets access restrictions and expiration time. Finally, the email relay module generates an encrypted download link for subsequent email processing.

[0042] S204. The email relay module adds the download link to the first email body content to obtain the second email body content. Here, "add" refers to the operation process of inserting the download link into the email body content; the second email body content refers to the new email text content with the download link added. The addition operation includes determining the insertion position, formatting the link display style, and adding necessary explanatory text.

[0043] Specifically, first, the email relay module analyzes the structure and format of the first email body content to determine the best insertion position for the download link (usually at the end of the body). Then, the email relay module generates standardized explanatory text according to the preset link display template, such as "Attachment download link:" or "Please click the following link to download the attachment:". Next, the email relay module formats the download link according to the unified style requirements of the enterprise (including font, color, size, etc.), and adds auxiliary information such as download instructions, file size, and validity period beside the download link. Finally, the email relay module inserts the formatted link information into the determined best insertion position to form the complete second email body content.

[0044] S205. The email relay module processes the first email header information and the second email body content according to the preset processing rules to obtain the second email data. Here, the preset processing rules refer to the pre-configured email normalization processing standards, including format specifications, security policies, etc.; the second email data refers to the complete email data after email normalization processing. The email normalization processing process includes operations such as format unification, information supplementation, and security check.

[0045] Specifically, first, the email relay module loads the preset processing rules, including sender address specifications, subject format requirements, body templates, header and footer rules, etc. Then, the email relay module standardizes the email header information, including unifying the sender address format, normalizing the email subject, and adding necessary control fields. Next, the email relay module further processes the email body content, including unifying the font style, adding the enterprise standard header and footer, and inserting a disclaimer. At the same time, the email relay module conducts a security check to ensure that the email content complies with the enterprise security policy. Finally, the email relay module packages the processed email header information and email body content to generate the second email data that meets the specifications.

[0046] S206: The mail transfer module sends the second mail data to the mail sending server, so that the mail receiving terminal receives the second mail data.

[0047] Among them, the mail sending server refers to the SMTP server system responsible for mail delivery; the mail receiving terminal refers to the mail client or device that receives mail.

[0048] Specifically, first, the mail transfer module establishes a secure communication connection with the mail sending server to perform identity authentication and authority verification. Then, the mail transfer module encapsulates the second mail data according to the requirements of the SMTP protocol and adds necessary transmission control information. Next, the mail transfer module sends the second mail data to the mail sending server through an encrypted channel and waits for the mail sending server to confirm receipt. After receiving the second mail data, the mail sending server will perform a format check and security scan. When the mail receiving terminal is online, the second mail data can be obtained.

[0049] By adopting the above technical solution, the mail transfer module detects the size of the scanned file attachment. When the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the mail transfer module automatically saves the scanned file attachment to the attachment download module and generates a download link for the scanned file attachment. The download link is added to the body of the mail, ensuring the integrity of the mail data while ensuring the smooth sending of the mail data, effectively solving the problem of failure to send oversized attachments under traditional methods. This automated processing method does not require manual intervention, avoids the tedious operations of corporate employees manually encrypting and compressing files, uploading them to external platforms, and greatly improves work efficiency. At the same time, the mail transfer module also uniformly processes mail formats according to preset rules, ensuring the standardization of mails and improving the level of corporate mail management.

[0050] The following is a more detailed description of the process of the method provided by this implementation. Figure 3 , is another flow chart of the intelligent scanning email processing method in an embodiment of the present application.

[0051] S301, the mail transfer module receives first mail data sent by the document scanning terminal, the first mail data including first mail header information, first mail body content and scanned file attachment; For details, please refer to step S201, which will not be described in detail here.

[0052] S302, the email transfer module saves the email copy of the first email data to a preset email database; Among them, the email copy refers to a complete backup of the first email data, including the first email header information, the first email body content, and the scanned file attachment; the preset email database refers to a data storage system specifically used for storing and managing enterprise email archives; the save operation refers to the process of writing data into persistent storage.

[0053] Specifically, first, when the email transfer module receives the first email data, it needs to perform integrity verification on the data to ensure that the data is not damaged. Then, the email transfer module generates a unique identifier (such as UUID) for the first email data and records the timestamp when the first email data is received. Next, the email transfer module serializes the first email data and converts it into a format suitable for database storage. During the storage process, the email transfer module adds additional metadata information, such as email classification, business type, processing status, etc. Finally, the email transfer module writes the processed first email data into the preset email database through a database connection and ensures the atomicity of the transaction.

[0054] S303. The email transfer module determines whether the number of bytes of the scanned file attachment exceeds a preset byte threshold; Specifically, refer to step S202, which will not be elaborated here.

[0055] S304. If the number of bytes of the scanned file attachment does not exceed the preset byte threshold, the email transfer module processes the first email data according to the preset processing rules to obtain the third email data; Among them, the preset byte threshold refers to the maximum size limit of the attachment allowed to be sent through ordinary emails, usually set to 10MB; the third email data refers to the complete email data that has been normalized but retains the original scanned file attachment.

[0056] Specifically, when the email transfer module detects that the scanned file attachment is within the size limit, it will execute the email standardization processing process. First, the email transfer module loads the preset processing rules and reads various format specifications and processing requirements. Then, the email transfer module processes the first email data according to the preset processing rules: uniformly adjusts the sender address format (such as uniformly replacing it with the company's email address), normalizes the email subject (such as arranging the preset subject fields in order), sets a unified body format (including font, color, paragraph, etc.), and at the same time keeps the original scanned file attachment unchanged. After processing, the email transfer module generates the third email data.

[0057] S305. The email transfer module sends the third email data to the email sending server, so that the email receiving terminal receives the third email data; Specifically, first, the mail relay module establishes a secure SMTP connection with the mail sending server for authentication. Then, the mail relay module encapsulates the third mail data according to the SMTP protocol specification and adds necessary transmission control parameters. Next, the mail relay module sends the third mail data to the mail sending server through an encrypted channel. During the sending process, the mail relay module monitors the transmission status, records the sending log, and will automatically retry if a transmission error occurs. After receiving the third mail data, the mail sending server conducts security checks (such as virus scanning and spam filtering), and then delivers the third mail data to the recipient's mailbox, enabling the mail receiving terminal to obtain the complete third mail data through the POP3 or IMAP protocol.

[0058] S306. If the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the mail relay module saves the scanned file attachment to the attachment download module and generates a download link corresponding to the scanned file attachment. Specifically, refer to step S203, which will not be elaborated here.

[0059] S307. The mail relay module adds the download link to the first mail body content to obtain the second mail body content. Specifically, refer to step S204, which will not be elaborated here.

[0060] S308. The mail relay module determines the standard sender address according to the preset configuration. Among them, the preset configuration refers to the mail sending address preset by the enterprise; the standard sender address refers to the unified enterprise mail sending address after being normalized.

[0061] Specifically, the preset configuration writes that the sender address for all mails sent from within the company to the outside of the company is the unified enterprise mail sending address, that is, the company's mail address. Therefore, the mail relay module replaces the sender address with the standard sender address, that is, the company's mail address. Unifying the sender address helps to establish the enterprise mail brand image and facilitates the recipient to identify the mail source.

[0062] S309. The mail relay module converts the original mail subject in the first mail header information into a normalized mail subject according to the preset subject format rule, and the preset subject format rule includes the arrangement rules of business type identifiers, department information, and mail generation timestamps. Among them, the preset theme format rules refer to a set of rules that specify the standardized format of the email subject, including the arrangement rules of the business type identifier, department information, and email generation timestamp; the original email subject refers to the initial subject text obtained from the first email header information; the standardized email subject refers to the subject text after the email subject standardization process; the business type identifier is a code used to indicate the category of the email business; the department information is a code used to represent the organizational department to which the email belongs; the email generation timestamp is an accurate time record of the email creation.

[0063] Specifically, first, the email transfer module extracts the original email subject from the first email header information. Then, the email transfer module performs conversion according to the preset theme format rules and reconstructs the email subject into the standard format of "[Business Type][Department][Timestamp]Original Email Subject". For example, the original email subject "Sales Record" is converted into "[DOC][SEL][20250215-143022]Sales Record". Among them, [DOC] represents the document type, [SEL] represents the sales department, and the timestamp is accurate to the second.

[0064] S310. Based on the standard sender address and the standardized email subject, the email transfer module determines the second email header information; Specifically, the email transfer module combines the previously generated standard sender address and the standardized email subject into a new email header data structure, that is, the second email header information. For example, the combination method of arranging the standard sender address above the standardized email subject can be adopted.

[0065] S311. The email transfer module adds the audit carbon copy or blind carbon copy address to the second email header information; Among them, the audit carbon copy refers to the email address of the management department used for email monitoring; the blind carbon copy address represents a hidden carbon copy address that is not displayed to other recipients.

[0066] Specifically, first, the email transfer module reads the audit carbon copy or blind carbon copy address to be added. Then, the email transfer module adds these audit carbon copy or blind carbon copy addresses to the CC (carbon copy) field or BCC (blind carbon copy) field in the second email header information according to the configuration rules. For example, adding the compliance department email "compliance@company.com" as the blind carbon copy address and adding the audit department email "audit@company.com" as the carbon copy address, and then the email transfer module adds the audit carbon copy or blind carbon copy address to the second email header information.

[0067] S312. The email transfer module uniformly sets the font, font size, and color of the second email body content to the preset style; Among them, the preset style refers to the text format standard uniformly stipulated by the enterprise, including attributes such as font, font size, and color.

[0068] Specifically, the email relay module reads the preset style and uniformly formats the font, font size, and color of the second email body content. For example, the font is set to a specified font (such as Arial or Song typeface), the font size is adjusted to a standard size (such as 12pt), and the text color is set to a specified color value (such as #000000 black). The specific actual situation is not limited here.

[0069] S313. The email relay module adds preset header information at the starting position of the second email body content, and adds preset footer information and a usage statement at the ending position of the second email body content; Among them, the preset header information refers to the enterprise logo information uniformly added at the beginning of the email; the preset footer information refers to information such as the enterprise contact information uniformly added at the end of the email; the usage statement refers to the legal statement text explaining the usage restrictions of the email content.

[0070] Specifically, first, the email relay module inserts the preset header information at the beginning of the second email body content, which usually includes the enterprise logo, company name, and department information, and adopts an HTML table layout to ensure the display effect. Then, the email relay module adds the preset footer information at the end of the second email body content, which usually includes the company address, contact phone number, website address, etc., and attaches a standard legal statement text, such as "The content of this email is confidential information and is only for the use of the designated recipient" and so on.

[0071] S314. The email relay module assembles the second email header information and the second email body content into the second email data; Among them, the second email header information refers to the email header containing all necessary control fields; the second email body content refers to the email body that has undergone email formatting processing; the second email data refers to the final complete standardized email data.

[0072] Specifically, the email relay module combines the processed second email header information and the second email body content into the complete second email data according to the MIME protocol specification. First, the email relay module generates an email boundary identifier, and then, the email relay module assembles each part of the content according to the multipart / mixed format. The email relay module will add necessary control fields such as Content-Type and Content-Transfer-Encoding to ensure that the second email data can be correctly parsed by various clients.

[0073] S315. The email transfer module sends the second email data to the email sending server, enabling the email receiving terminal to receive the second email data; Specifically, refer to step S206, which will not be elaborated here.

[0074] S316. The attachment download module obtains a scan file attachment download request sent by the email receiving terminal, and the scan file attachment download request includes the download link; Among them, the attachment download module refers to the hardware device specifically used for storing and managing large scan file attachments; the email receiving terminal refers to the email client or device that receives emails; the scan file attachment download request refers to the HTTP request for obtaining the scan file attachment; the download link refers to the URL address string used to identify the scan file attachment.

[0075] Specifically, when the recipient of the email receiving terminal clicks the download link in the email, the attachment download module receives the HTTP / HTTPS request. First, the attachment download module performs a security verification on the scan file attachment download request, checks the legality of the download link, including verifying the digital signature of the download link, checking the validity period of the access token, verifying the source IP address of the request, etc.

[0076] S317. The attachment download module returns the scan file attachment corresponding to the download link to the email receiving terminal based on the scan file attachment download request; Specifically, the attachment download module retrieves the scan file attachment corresponding to the download link from the storage system according to the scan file attachment download request. First, the attachment download module locates the storage location of the scan file attachment through the file identifier in the download link and verifies the integrity of the scan file attachment. Then, the attachment download module configures appropriate transmission parameters, such as setting an appropriate buffer size, enabling the resume function, configuring the transmission timeout time, etc. Next, the attachment download module transmits the scan file attachment to the email receiving terminal in a streaming manner through the HTTP response, while monitoring the transmission process and recording the transmission status and rate information.

[0077] S318. After determining that the email receiving terminal has completed the download of the scan file attachment, the attachment download module deletes the scan file attachment.

[0078] Among them, the download completion status means that the scan file is successfully transmitted and the email receiving terminal confirms the reception; the deletion operation refers to the process in which the attachment download module removes the scan file attachment from the storage system.

[0079] Specifically, the attachment download module confirms whether the download is completed by monitoring the transmission status. When receiving the download completion confirmation signal from the mail receiving terminal or detecting that the integrity verification of the scanned file attachment transmission has passed, the attachment download module starts to perform the deletion operation. This instant cleaning mechanism can effectively save storage space and reduce security risks.

[0080] The intelligent scanned mail processing system in the embodiment of the present invention application will be described from the perspective of hardware processing. Please refer to Figure 4 , which is a schematic structural diagram of an entity device of the intelligent scanned mail processing system in the embodiment of the present application.

[0081] It should be noted that Figure 4 the structure of the intelligent scanned mail processing system shown is only an example and should not bring any restrictions to the functions and usage scope of the embodiments of the present invention.

[0082] As Figure 4 shown, the intelligent scanned mail processing system includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 into the random access memory (RAM) 403, such as executing the method described in the above embodiments. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other through a bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.

[0083] The following components are connected to the I / O interface 405: an input part 406 including an audio input device, a button switch, etc.; an output part 407 including a liquid crystal display (LCD), an audio output device, an indicator light, etc.; a storage part 408 including a hard disk, etc.; and a communication part 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part 409 performs communication processing via a network such as the Internet. The drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that the computer program read from it can be installed into the storage part 408 as needed.

[0084] In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present invention includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the present invention are executed.

[0085] It should be noted that specific examples of the computer-readable storage medium may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.

[0086] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above module, program segment, or part of code includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings.

[0087] Specifically, the intelligent scanning mail processing system of this embodiment includes a processor and a memory, and a computer program is stored on the memory. When the computer program is executed by the processor, the intelligent scanning mail processing method provided in the above embodiment is implemented.

[0088] As another aspect, the present invention also provides a computer-readable storage medium, which may be included in the intelligent scanning mail processing system described in the above embodiments; or may exist alone without being assembled into the intelligent scanning mail processing system. The above storage medium carries one or more computer programs, and when the one or more computer programs are executed by a processor of the intelligent scanning mail processing system, the intelligent scanning mail processing system implements the intelligent scanning mail processing method provided in the above embodiments.

[0089] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the various embodiments of the present application.

[0090] As used in the above embodiments, depending on the context, the term "when..." may be interpreted to mean "if...", or "after...", or "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if detecting (the stated condition or event)" may be interpreted to mean "if determining...", or "in response to determining...", or "when detecting (the stated condition or event)", or "in response to detecting (the stated condition or event)".

[0091] Those of ordinary skill in the art can understand all or part of the processes in the above embodiment methods. These processes can be completed by relevant hardware instructed by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage media include: ROM or random access memory RAM, magnetic disks, or optical disks and other media that can store program codes.

Claims

1. An intelligent scanning mail processing method, characterized in that: Applied to an intelligent scanning mail processing system, the intelligent scanning mail processing system includes a document scanning terminal, a mail transfer module, an attachment download module, a mail sending server and a mail receiving terminal, the method includes: The mail transfer module receives first mail data sent by the document scanning terminal, wherein the first mail data includes first mail header information, first mail body content and scanned file attachment; The mail transfer module determines whether the number of bytes of the scanned file attachment exceeds a preset byte number threshold; If the number of bytes of the scanned file attachment exceeds the preset byte number threshold, the email transfer module saves the scanned file attachment to the attachment download module and generates a download link corresponding to the scanned file attachment; The email transfer module adds the download link to the first email body content to obtain the second email body content; The mail transfer module processes the first mail header information and the second mail body content according to a preset processing rule to obtain second mail data; The mail transfer module sends the second mail data to the mail sending server, so that the mail receiving terminal receives the second mail data.

2. The method according to claim 1, characterized in that The mail transfer module processes the first mail header information and the second mail body content according to a preset processing rule to obtain second mail data, specifically including: The mail transfer module determines the standard sender address according to the preset configuration; The email transfer module converts the original email subject in the first email header information into a normalized email subject according to a preset subject format rule, wherein the preset subject format rule includes an arrangement rule of a business type identifier, department information, and an email generation timestamp; Based on the standard sender address and the normalized email subject, the email transfer module determines the second email header information; The email transfer module processes the content of the second email body according to a preset body template rule, wherein the preset body template rule includes a body layout standard and an additional information display method; The mail transfer module assembles the second mail header information and the second mail body content into the second mail data.

3. The method according to claim 2, characterized in that The email transfer module processes the second email body content according to a preset body template rule, specifically including: The email transfer module uniformly sets the font, size and color of the second email body content to a preset style; The mail transfer module adds preset header information at the beginning position of the second mail body content, and the mail transfer module adds preset footer information and a usage statement at the end position of the second mail body content.

4. The method according to claim 2, characterized in that: After the step of determining the second email header information by the email transfer module based on the standard sender address and the normalized email subject, the method further includes: The email transfer module adds the audit carbon copy or blind carbon copy address to the second email header information.

5. The method according to claim 1, characterized in that After the step of the mail transfer module receiving the first mail data sent by the document scanning terminal, wherein the first mail data includes first mail header information, first mail body content and scanned file attachment, the method further includes: The mail transfer module saves the mail copy of the first mail data to a preset mail database.

6. The method according to claim 1, characterized in that After the step of the mail transfer module determining whether the number of bytes of the scanned file attachment exceeds a preset byte number threshold, the method further includes: If the number of bytes of the scanned file attachment does not exceed the preset byte number threshold, the mail transfer module processes the first mail data according to the preset processing rule to obtain third mail data; The mail transfer module sends the third mail data to the mail sending server, so that the mail receiving terminal receives the third mail data.

7. The method according to claim 1, characterized in that After the step in which the mail transfer module sends the second mail data to the mail sending server so that the mail receiving terminal receives the second mail data, the method further includes: The attachment download module obtains a scan file attachment download request sent by the mail receiving terminal, wherein the scan file attachment download request includes the download link; The attachment download module returns the scanned file attachment corresponding to the download link to the mail receiving terminal based on the scanned file attachment download request; After determining that the mail receiving terminal has completed downloading the scanned file attachment, the attachment downloading module deletes the scanned file attachment.

8. An intelligent scanning mail processing system, characterized in that: The intelligent scanning mail processing system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the intelligent scanning mail processing system to execute the method described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an intelligent scanning mail processing system, the intelligent scanning mail processing system is caused to execute the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on an intelligent scanning mail processing system, the intelligent scanning mail processing system is enabled to execute the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Heterogeneous CI system product access and archiving method, system and device based on mail event triggering and medium

    CN121326391A