CN108965095B - Mail analysis method, mail analysis system, electronic device and readable storage medium - Google Patents
Mail analysis method, mail analysis system, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN108965095B CN108965095B CN201710346730.0A CN201710346730A CN108965095B CN 108965095 B CN108965095 B CN 108965095B CN 201710346730 A CN201710346730 A CN 201710346730A CN 108965095 B CN108965095 B CN 108965095B
- Authority
- CN
- China
- Prior art keywords
- mailbox
- mailboxes
- server
- parsing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 51
- 238000013507 mapping Methods 0.000 claims abstract description 29
- 238000000034 method Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 9
- 230000007423 decrease Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 5
- 239000012634 fragment Substances 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013479 data entry Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000002567 autonomic effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/42—Mailbox-related aspects, e.g. synchronisation of mailboxes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a mail analysis method, a mail analysis system, electronic equipment and a readable storage medium. The mail analysis method comprises the following steps: receiving mail through each of a plurality of first mailboxes; distributing the mails from each first mailbox to one or more second mailboxes through a mail forwarding server according to a mailbox mapping relation so as to perform mail analysis in the second mailboxes, wherein the first mailboxes and the second mailboxes are associated through the mailbox mapping relation; distributing a corresponding thread to each second mailbox respectively, and analyzing each second mailbox simultaneously in a parallel mode; and configuring the mailbox mapping relation according to the analyzed result.
Description
Technical Field
The invention relates to a mail analysis method, a mail analysis system, electronic equipment and a readable storage medium, in particular to configurable mail analysis realized based on timing scheduling and cloud storage.
Background
Large e-commerce sites, especially the B2C commerce site directed to individual consumers, receive a large number of e-mails each day. And the e-mail is an important means for the mutual communication, the transfer of the order and the reporting work among the employees. The company is provided with various enterprise mailboxes to realize different division of work, such as a customer service mailbox for specially receiving customer mails and an unbinding mailbox for specially receiving unbinding requests of customer accounts and mobile phone numbers. The method aims to solve the problem of cooperatively processing a large number of mails among multiple customer services. In the prior art, a clover2.0 distributed timed task system is used for completing real-time scanning of mails in a designated mailbox, and a javaMail technology is used for analyzing the mails.
The clover2.0 distributed timed task system is an enterprise server bus, and the system has lower coupling, better expansion capability and the like through integrating and scheduling SOA services. The dispatch service is implemented by Worker. Each Worker is equivalent to a scheduling service, each Worker uses a web as a host server, and simultaneously the cloud is uniformly managed, such as the number of threads of a scheduling task, the running time, the opening and closing and the like.
The mail is converted into a mail request to be recorded into a database, and then different requests are distributed to different customer services. The method realizes the cooperative processing of different mails in the same mailbox among multiple customer services, and the sender is the same mailbox when sending the mails.
Generally, for a business website, when a mailbox is added to a service each time, for example, the mailbox is used for receiving a customer mail, the business website needs to add a Worker timing task for analysis. The business growth amount of enterprises and different business scenes are continuously changed, so that a mailbox analysis task needs to be re-developed every time a mailbox is added, the workload is increased, and the online time of new requirements is prolonged.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
1) single thread analysis, and low processing speed.
Because the mail has no fragment number, if a plurality of threads simultaneously analyze one mailbox, the problems of repeated mail analysis, repeated data entry and the like are caused.
2) Newly-added mailbox code needing to be redeveloped
With the expansion of the business scene, the automatic analysis service of a mail needs to be developed again every time a mailbox is newly added. And the repetition degree of the codes is high, so that extra workload is caused to engineers, and the working progress is influenced.
3) The server disk occupies a large space.
The attachment of the mail is directly stored on each application server, which occupies a large amount of disk space.
Disclosure of Invention
In view of this, an aspect of the embodiments of the present invention provides a mail parsing method, which includes: receiving mail through each of a plurality of first mailboxes; distributing the mails from each first mailbox to one or more second mailboxes through a mail forwarding server according to a mailbox mapping relation so as to perform mail analysis in the second mailboxes, wherein the first mailboxes and the second mailboxes are associated through the mailbox mapping relation; distributing a corresponding thread to each second mailbox respectively, and analyzing each second mailbox simultaneously in a parallel mode; and configuring the mailbox mapping relation according to the analyzed result.
Further, the mail parsing method further includes: and if the analysis result shows that the mail volume of at least one mailbox in the plurality of first mailboxes is increased, expanding the number of second mailboxes corresponding to the at least one mailbox.
Further, the mail parsing method further includes: and if the analysis result shows that the mail volume of at least one mailbox in the plurality of first mailboxes is reduced, reducing the number of second mailboxes corresponding to the at least one mailbox.
Further, the mail parsing method further includes: in the process of analyzing the mail, each mailbox in the second mailbox is individually allocated with a thread to execute mail analysis.
Further, the mail parsing method further includes: and storing the analyzed attachment of the mail in a cloud storage server in a unified manner by a cloud storage mode, and storing the path of the stored attachment in a database.
Further, the mail parsing method further includes: and converting the analyzed mail into a mail request and creating a mail request table, wherein the title and the text of the mail are stored in the mail request table.
Another aspect of an embodiment of the present invention provides a mail parsing system, including: a mail server including a plurality of first mailboxes and a plurality of second mailboxes, the first mailboxes for receiving mail from outside the system; a mail forwarding server for distributing mail from the first mailbox to the second mailbox; a task scheduling server for parsing the mail in the second mailbox; and a mailbox configuration section for configuring mailbox information on each of the first mailbox and the second mailbox and including a mailbox mapping relationship between the first mailbox and the second mailbox, wherein the mail from each of the first mailboxes is distributed to one or more of the second mailboxes through a mail forwarding server according to the mailbox mapping relationship to be parsed in the second mailbox, and each of the second mailboxes is parsed through the task scheduling server; and configuring, by the mailbox configuration section, the mailbox mapping relationship according to an analysis result of the analysis.
Further, in the mail analysis system, if the analysis result shows that the mail amount of at least one mailbox among the plurality of first mailboxes increases, the mailbox configuring part expands the number of second mailboxes corresponding to the at least one mailbox.
Further, in the mail analysis system, if the analysis result shows that the mail amount of at least one mailbox among the plurality of first mailboxes decreases, the mailbox configuring part reduces the number of second mailboxes corresponding to the at least one mailbox.
Further, in the mail parsing system, the task scheduling server individually allocates one thread to each of the second mailboxes to perform mail parsing.
Further, in the mail analysis system, the mail analysis system further includes a cloud storage server, wherein attachments of the analyzed mails are uniformly stored in the cloud storage server in a cloud storage manner, and paths of the attachments are stored in a database.
Further, in the mail parsing system, the mail parsing system further includes a mail text server, wherein the task scheduling server is further configured to: and converting the analyzed mail into a mail request, creating a mail request table, and storing the mail request table in the mail text server, wherein the title and the text of the mail are stored in the mail request table.
Another aspect of an embodiment of the present invention provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method according to the above aspects.
Another aspect of embodiments of the present invention provides a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method as described in the above aspects.
Embodiments of the present invention have the following advantages or advantageous effects. Specifically, because the analysis mailbox is configurable, codes do not need to be re-developed when the mailbox is newly added every time, and the deployment and the restart of an application server are not needed. In addition, multithreading processing of a single mailbox is indirectly realized through mapping, the rapid processing capacity of analyzing the large-data-volume mails is improved, and the analyzing speed is further improved. The quick response to the mail is realized, and the customer experience is indirectly improved. Further, by using the cloud storage technology, a prominent effect of saving occupation of the server disk is achieved. In addition, by visually managing the mailbox list, the mailbox can be subjected to page management by using the operation of adding, deleting, modifying and checking.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a prior art mail parsing method;
fig. 2 is a schematic diagram constructed by a mail parsing method according to an embodiment of the present invention;
fig. 3 is a block diagram showing a mail parsing system constructed by the mail parsing method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a mailbox mapping configuration according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a mail parsing center according to an embodiment of the invention;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Referring to fig. 1, the prior art uses Worker as a timing scheduling means to automatically parse the mail and save the mail text (title, content) into a database. In the prior art, a plurality of workers, namely workers 1 to Work N, are adopted to analyze a plurality of different special mailboxes, namely mailbox 1 to mailbox N respectively.
And directly storing the attachment of the mail in a specific directory of an application server disk, and sharing the specific directory by using a mount command. Therefore, when the mail attachment is viewed, the attachment can be downloaded no matter which disk the attachment is on.
However, the prior art has many drawbacks. For example, since single-thread analysis is adopted, the processing speed is low. Because the mail has no fragment number, if a plurality of threads simultaneously analyze one mailbox, the problems of repeated mail analysis, repeated data entry and the like are caused. In addition, with the expansion of the business scenario, an automatic analysis service of the mail needs to be developed again each time a mailbox is newly added. And the repetition degree of the codes is high, so that extra workload is caused to engineers, and the working progress is influenced. Moreover, because the attachments of the mails are directly stored on each application server, a large amount of disk space is occupied.
FIG. 2 is a schematic diagram of a system according to an embodiment of the invention.
In fig. 2, mailbox a and mailbox B are shown as the external mailbox (first mailbox). Note that the number of external mailboxes is not limited to two. In addition, fig. 2 also shows a plurality of internal mailboxes (second mailboxes) a1, a2, A3, B1, and the like. Note that the number of internal mailboxes is not limited to four.
And distributing the mails in the external mailbox to a corresponding internal mailbox through a mail forwarding server so as to analyze the mails in the internal mailbox, wherein the external mailbox and the internal mailbox are associated through the mailbox mapping relation. The internal mailboxes (a1, a2, A3) are simultaneously parsed periodically in parallel using a task scheduling server. By analyzing the analysis performance of the mails in the internal mailboxes, it can be determined whether to configure the mail mapping relationship, for example, whether to increase or decrease the number of the internal mailboxes, based on the current mail receiving amount and the future growth tendency.
If the external mailbox is, for example, the mail volume of the mailbox A is assumed to be increased, the number of the internal mailboxes corresponding to the mailbox A can be expanded, so that the rapid analysis is realized. Conversely, for example, if the mail volume to the external mailbox a is reduced, the number of the internal mailboxes corresponding to the mailbox a can be reduced. Specifically, for each of the internal mailboxes a2, A3, a4, and the like, a corresponding thread is assigned to perform analysis, so that the analysis of the internal mailboxes is performed simultaneously and in parallel. In addition, the task scheduling server may assign a thread for each internal mailbox and poll for all mail in that internal mailbox periodically, for example, every few minutes.
Additionally, referring to fig. 2, cloud storage is used to save mail attachments. Specifically, the attachments of the analyzed mail are stored in the cloud storage server in a unified manner, and the paths of the stored attachments are stored in the database. By saving the path of the attachment to the database, the attachment can be quickly searched and downloaded through the path. This enables a uniform management of the accessories.
Fig. 3 is a block diagram of a system according to an embodiment of the invention.
In fig. 3, the system shown includes a mail server 31, a mailbox allocation center (mailbox allocation unit) 32, a mail analysis center (mail analysis unit) 33, a text storage server 34, and an attachment storage server 35. The mail server 31 has at least the following functions: the external mailbox is responsible for receiving all external mails; and distributing the mail to a corresponding worker analysis mailbox through the mailbox mapping relation. Multi-thread resolution of a single external mailbox is indirectly achieved through the mail server 31.
Fig. 4 is a schematic diagram illustrating a mailbox mapping configuration according to an embodiment of the present invention. Referring to fig. 4, reference numerals 40, 41, 42, 43 and n in the above figure represent a mailbox, respectively, and n is a natural number greater than 0.
The mailbox 40 is an external mailbox dedicated to receive various external mails. The external mailbox can be a plurality of, such as a customer service mailbox, an unbundling mailbox and the like. The customer mailbox is generally used for receiving all mails sent by the customer to customer service personnel such as a business website, and the unbundling mailbox is generally a mailbox required by the customer to unbundle a mobile phone number. A dedicated external mailbox may be typically set for each service.
The mailboxes 41, 42, 43 and the like are internal mailboxes analyzed by the Worker, are only used for analyzing and are not responsible for receiving mails.
The mail server 31 is responsible for receiving the mails and uniformly distributing the mails in the external mailbox 40 to the internal mailboxes 41 to 43 according to the mapping relationship between the mailboxes as shown in fig. 4. For example, when there are 10000 mail in an external mailbox and 10 internal mailboxes mapped to the external mailbox, 1000 mail can be distributed in each internal mailbox.
The mailbox configuration center 32 has at least the following functions: configuring internal mailbox and external mailbox information, wherein the information comprises but is not limited to information such as user name, password, mailbox address and the like; and configuring the mapping relation between the external mailbox and the internal mailbox. It should be noted that when the user name, password, and the like of the mailbox are stored in the data, the data may be multiple pieces of data, each piece of data represents one mail parsing task, and the Worker periodically assigns a thread to perform mail parsing.
Fig. 5 is a schematic diagram showing an operation performed by the mail resolution center 33.
The mail analysis center 33 has at least the following functions: and allocating a thread for each internal mailbox, wherein the thread is used for realizing mailbox resolution.
Referring to fig. 5, 41 to 43 represent internal mailboxes for mail parsing, respectively. A fragment number is set for each internal mailbox.
When the database is built, a field is defined as a fragment number, and the fragment number is used for realizing multi-thread distributed processing data. Typically 0-63 cycles in sequence. For example, assume that there are 2 threads, where a thread with thread number 0 fetches a line record with number 0, 2, 4, 6, 8 … … 62, and a thread with thread number 1 fetches a line record with number 1, 3, 5, 7, 9, and. In other words, the number of slices allocated per thread is the total number of slices divided by the number of threads. For example, when the total number of slices is 64 and the number of threads is 4, each thread may get 64/4-16 slice numbers.
Each mailbox is used as a processing task, and the Worker can allocate a thread to each task and execute mail analysis. Through the mapping and the mail forwarding, the mail of an external mailbox can be indirectly processed by a plurality of threads, so that the analyzing speed of the mail is accelerated.
In the invention, the attachments of the mails are stored in a cloud storage mode. In particular, each piece of mail may contain attachments. And when the mail is analyzed, the attachments carried by the mail are compressed and then are uniformly stored in the cloud storage. The compressed file uses the requested ID (identifier) and is given a unique attribute at the same time. The request ID is derived from the incremental ID of the database table. Before the mail attachment is stored in the cloud storage, a database table creates a row record, the request ID is a primary key of the row record, then the row record is stored in the cloud storage, an attachment url is generated, and the row of the request ID of the database is synchronously updated. With respect to the request ID, it is an autonomic key of a database table that has global uniqueness in the table. Assume that a mail is received and a mail table is set in the database table. Thus, the mailing table row ID can be used as a request ID that is a key for file storage of the cloud storage as a parameter for searching for a file from the cloud storage.
By adopting the cloud storage mode, the mail is prevented from being directly stored in the analysis server, so that the occupation amount of a disk is reduced, the attachments can be uniformly managed through cloud storage, and the attachments are prevented from being scattered on a plurality of servers.
The system according to the embodiment of the invention is also provided with a mail text database. By converting the mail into a mail request, a mail request table is created, and the title and text of the mail are saved. And a mail attachment table is newly established, and then the cloud storage path of the mail attachment is stored.
Fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiment of the present disclosure, the mail parsing method according to the embodiment of the present disclosure as shown in fig. 2 above may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in FIG. 2. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
It is to be noted that the schematic and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the various schematic or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a mail server unit including a plurality of first mailboxes and a plurality of second mailboxes, the first mailboxes for receiving mail from outside the system; a mail forwarding server unit for distributing the mail from the first mailbox to the second mailbox; a task scheduling server unit for parsing the mail in the second mailbox; and a mailbox configuring section unit for configuring mailbox information on each of the first mailbox and the second mailbox, and containing a mailbox mapping relationship of the first mailbox and the second mailbox. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform operations comprising: receiving mail through each of a plurality of first mailboxes; distributing the mails from each first mailbox to one or more second mailboxes through a mail forwarding server according to a mailbox mapping relation so as to perform mail analysis in the second mailboxes, wherein the first mailboxes and the second mailboxes are associated through the mailbox mapping relation; distributing a corresponding thread to each second mailbox respectively, and analyzing each second mailbox simultaneously in a parallel mode; and configuring the mailbox mapping relation according to the analyzed result.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the beneficial effects can be realized.
(1) The parsing mailbox is configurable so that code does not need to be re-developed each time a mailbox is added.
(2) Multithreading processing of a single mailbox is indirectly realized through mapping, and the analysis speed is improved. And then realize the quick reply to the mail to indirectly promote customer experience.
(3) The occupation of a web server disk is saved by using a cloud storage technology.
(4) And (4) carrying out visual management on the mailbox list, and carrying out page management on the mailbox by using an increasing, deleting, modifying and checking operation.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (14)
1. A mail parsing method, comprising:
receiving mail through each of a plurality of first mailboxes;
distributing the mails from each first mailbox to one or more second mailboxes through a mail forwarding server according to a mailbox mapping relation so as to perform mail analysis in the second mailboxes, wherein the first mailboxes and the second mailboxes are associated through the mailbox mapping relation;
distributing a corresponding thread to each second mailbox respectively, and analyzing each second mailbox simultaneously in a parallel mode; and
configuring the mailbox mapping relation according to the analyzed result, including: and judging whether to increase or decrease the number of second mailboxes associated with the first mailbox according to the current mail volume and the future growth trend of the first mailbox.
2. The mail parsing method of claim 1, further comprising:
and if the analysis result shows that the mail volume of at least one mailbox in the plurality of first mailboxes is increased, expanding the number of second mailboxes corresponding to the at least one mailbox.
3. The mail parsing method of claim 1, further comprising:
and if the analysis result shows that the mail volume of at least one mailbox in the plurality of first mailboxes is reduced, reducing the number of second mailboxes corresponding to the at least one mailbox.
4. The mail parsing method of claim 1, further comprising:
in the process of analyzing the mail, each mailbox in the second mailbox is individually allocated with a thread to execute mail analysis.
5. The mail parsing method according to any one of claims 1-4, further comprising:
and storing the analyzed attachment of the mail in a cloud storage server in a unified manner by a cloud storage mode, and storing the path of the stored attachment in a database.
6. The mail parsing method of claim 5, further comprising:
and converting the analyzed mail into a mail request and creating a mail request table, wherein the title and the text of the mail are stored in the mail request table.
7. A mail parsing system, comprising:
a mail server including a plurality of first mailboxes and a plurality of second mailboxes, the first mailboxes for receiving mail from outside the system;
a mail forwarding server for distributing mail from the first mailbox to the second mailbox;
a task scheduling server for parsing the mail in the second mailbox; and
a mailbox configuration section for configuring mailbox information on each of the first mailbox and the second mailbox and containing a mailbox mapping relationship of the first mailbox and the second mailbox,
wherein,
distributing the mail from each first mailbox to one or more second mailboxes through a mail forwarding server according to the mailbox mapping relation so as to perform mail resolution in the second mailboxes,
analyzing each second mailbox through the task scheduling server; and
configuring, by the mailbox configuration section, the mailbox mapping relationship according to the analysis result of the analysis, including: and judging whether to increase or decrease the number of second mailboxes associated with the first mailbox according to the current mail volume and the future growth trend of the first mailbox.
8. The mail parsing system of claim 7, wherein:
if the analysis result shows that the mail amount of at least one mailbox in the plurality of first mailboxes is increased, the mailbox configuration part expands the number of second mailboxes corresponding to the at least one mailbox.
9. The mail parsing system of claim 7, wherein:
if the analysis result shows that the mail amount of at least one mailbox in the plurality of first mailboxes is reduced, the mailbox configuration part reduces the number of second mailboxes corresponding to the at least one mailbox.
10. The mail parsing system of claim 9, wherein:
and the task scheduling server individually allocates one thread to each mailbox in the second mailbox to execute mail analysis.
11. Mail parsing system according to any of claims 7-10,
the mail parsing system further comprises a cloud storage server,
wherein,
and uniformly storing the attachments of the analyzed mails in the cloud storage server in a cloud storage mode, and simultaneously storing the paths of the attachments in a database.
12. The mail parsing system of claim 11,
the mail parsing system further comprises a mail text server,
wherein,
the task scheduling server is further configured to: and converting the analyzed mail into a mail request, creating a mail request table, and storing the mail request table in the mail text server, wherein the title and the text of the mail are stored in the mail request table.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710346730.0A CN108965095B (en) | 2017-05-17 | 2017-05-17 | Mail analysis method, mail analysis system, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710346730.0A CN108965095B (en) | 2017-05-17 | 2017-05-17 | Mail analysis method, mail analysis system, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965095A CN108965095A (en) | 2018-12-07 |
CN108965095B true CN108965095B (en) | 2021-03-30 |
Family
ID=64462566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710346730.0A Active CN108965095B (en) | 2017-05-17 | 2017-05-17 | Mail analysis method, mail analysis system, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965095B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109802884B (en) * | 2018-12-29 | 2021-09-07 | 论客科技(广州)有限公司 | Campus mail migration method and device |
CN114971571A (en) * | 2021-07-20 | 2022-08-30 | 支付宝(杭州)信息技术有限公司 | Bill processing method and device based on mailbox |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5778217A (en) * | 1996-04-02 | 1998-07-07 | Lite-On Communications Corp. | Parallel signal processing device for high-speed timing |
CN102291328A (en) * | 2011-07-27 | 2011-12-21 | 上海和辰信息技术有限公司 | Multi-protocol supporting webpage-based third-party email account transmission and receiving method and system |
CN102986174A (en) * | 2010-08-31 | 2013-03-20 | 株式会社日立制作所 | Mail transfer system, mail gateway and data store server |
CN103106573A (en) * | 2013-02-20 | 2013-05-15 | 中国科学院信息工程研究所 | Massive email analyzing method and system based on relational graph |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101329755A (en) * | 2008-06-10 | 2008-12-24 | 施文武 | Method and system for managing mail box leasehold |
US8886734B2 (en) * | 2012-02-03 | 2014-11-11 | Apple Inc. | Email mailbox management with sender-specific message lists |
CN103078787B (en) * | 2013-01-17 | 2015-11-25 | 华为技术有限公司 | Email processing method and equipment |
US9992147B2 (en) * | 2015-08-25 | 2018-06-05 | Quest Software Inc. | During an email migration, converting distribution list messages into single-instanced content within a collaboration platform group |
-
2017
- 2017-05-17 CN CN201710346730.0A patent/CN108965095B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5778217A (en) * | 1996-04-02 | 1998-07-07 | Lite-On Communications Corp. | Parallel signal processing device for high-speed timing |
CN102986174A (en) * | 2010-08-31 | 2013-03-20 | 株式会社日立制作所 | Mail transfer system, mail gateway and data store server |
CN102291328A (en) * | 2011-07-27 | 2011-12-21 | 上海和辰信息技术有限公司 | Multi-protocol supporting webpage-based third-party email account transmission and receiving method and system |
CN103106573A (en) * | 2013-02-20 | 2013-05-15 | 中国科学院信息工程研究所 | Massive email analyzing method and system based on relational graph |
Also Published As
Publication number | Publication date |
---|---|
CN108965095A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729139B (en) | Method and device for concurrently acquiring resources | |
US20210392198A1 (en) | Data Center Management System | |
CN110889656B (en) | Warehouse rule configuration method and device | |
CN110837409A (en) | Method and system for executing task regularly | |
CN111127181A (en) | Voucher bookkeeping method and device | |
CN108965095B (en) | Mail analysis method, mail analysis system, electronic device and readable storage medium | |
CN109213743B (en) | Data query method and device | |
CN111435329A (en) | Automatic testing method and device | |
CN111241189A (en) | Method and device for synchronizing data | |
CN113127335A (en) | System testing method and device | |
CN110807058B (en) | Method and system for exporting data | |
CN104954496A (en) | Cloud resource allocation method and device | |
CN111698109A (en) | Method and device for monitoring log | |
CN110851483B (en) | Method, apparatus, electronic device, and medium for screening objects | |
CN110764882B (en) | Distributed management method, distributed management system and device | |
CN113283742A (en) | Task allocation method and device | |
CN113282455A (en) | Monitoring processing method and device | |
CN113114557A (en) | Message sending method and device, electronic equipment and storage medium | |
CN112688982A (en) | User request processing method and device | |
CN113065920B (en) | Data processing method and system | |
CN117478535B (en) | Log storage method and device | |
US20220012657A1 (en) | Scheduler for jobs during off peak hours | |
CN114329197A (en) | Method, electronic device and program product for feeding back target data to user terminal | |
CN114860708A (en) | Data quality inspection method and device, electronic equipment and computer readable medium | |
CN111984711A (en) | Method, device, equipment and computer readable medium for extracting data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |