CN108768835A - A kind of mail analytic method, device, server and storage medium - Google Patents

A kind of mail analytic method, device, server and storage medium Download PDF

Info

Publication number
CN108768835A
CN108768835A CN201810541554.0A CN201810541554A CN108768835A CN 108768835 A CN108768835 A CN 108768835A CN 201810541554 A CN201810541554 A CN 201810541554A CN 108768835 A CN108768835 A CN 108768835A
Authority
CN
China
Prior art keywords
mail
attachment
mime
attachment block
datas
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.)
Granted
Application number
CN201810541554.0A
Other languages
Chinese (zh)
Other versions
CN108768835B (en
Inventor
杨良志
汪志新
丁德平
邵正军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
POLYTRON TECHNOLOGIES Inc
Original Assignee
POLYTRON TECHNOLOGIES Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by POLYTRON TECHNOLOGIES Inc filed Critical POLYTRON TECHNOLOGIES Inc
Priority to CN201810541554.0A priority Critical patent/CN108768835B/en
Publication of CN108768835A publication Critical patent/CN108768835A/en
Application granted granted Critical
Publication of CN108768835B publication Critical patent/CN108768835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of mail analytic method, device, server and storage mediums.Wherein, this method includes:When receiving mail, according to the boundary marking in multipurpose internet mail extensions MIME mail datas, each attachment block message in the MIME mail datas is determined;When receiving the mail analysis instruction of user's effect, remaining e-mail messages in the MIME mail datas in addition to each attachment block message are parsed according to the mail analysis instruction;Parsing e-mail page is generated according to remaining e-mail messages and each attachment block message for parsing.The technical solution of the embodiment of the present invention, it when parsing mail, is only parsed to going out remaining e-mail messages except each attachment block message, the duration consumption during reducing mail load and parsing and EMS memory occupation, mail analysis feature is improved, user experience is improved.

Description

A kind of mail analytic method, device, server and storage medium
Technical field
The present embodiments relate to data processing field more particularly to a kind of mail analytic method, device, server and deposit Storage media.
Background technology
With the fast development of Internet technology, mail contact can not during having become personal comminication and enterprise's office Or scarce communication way.Current mail generally uses multipurpose internet mail extensions (Multipurpose Internet Mail Extensions, MIME) agreement is transmitted, and can include such as simultaneously using MIME messages as the carrier of Mail Contents The MIME message contents of the various information such as rich text, inline picture, attachment and meeting correlation, current mail are increasing, right There are many nonstandardized techniques the case where such as the corresponding various characters collection of word and coding, to mail analytic ability, there is also higher It is required that.
Currently, the prior art when receiving mail, can will indicate the MIME packet storages of mail data in system in advance In disk, when being parsed to mail, corresponding MIME messages are loaded into from system disk in memory, are carried out line by line or even word for word The scanning of symbol, to obtain the different text blocks for including in email messages, picture block and attachment block etc., then the data for different masses Block is parsed, and by after parsing attachment block and the information storages to disk such as picture on.At this point, for comprising 20M or more For the mail of big accessory, mail parsing the consumed time is longer, and the memory of occupancy is also very big, seriously reduces local mail Analyzing efficiency.
Invention content
An embodiment of the present invention provides a kind of mail analytic method, device, server and storage mediums, each to being removed in mail Remaining e-mail messages is parsed except attachment block message, is reduced duration consumption and EMS memory occupation in mail resolving, is carried Mail analysis feature is risen, is improved the user experience.
In a first aspect, an embodiment of the present invention provides a kind of mail analytic method, this method includes:
When receiving mail, according to the boundary marking in multipurpose internet mail extensions MIME mail datas, institute is determined State each attachment block message in MIME mail datas;
When receiving the mail analysis instruction of user's effect, according to the mail analysis instruction to the MIME mails number Remaining e-mail messages in addition to each attachment block message are parsed;
Mail display data is generated according to remaining e-mail messages and each attachment block message for parsing.
Second aspect, an embodiment of the present invention provides a kind of mail resolver, which includes:
Attachment determining module is used for when receiving mail, according in multipurpose internet mail extensions MIME mail datas Boundary marking, determine each attachment block message in the MIME mail datas;
First parsing module, for when receiving the mail analysis instruction of user's effect, being referred to according to mail parsing Order parses remaining e-mail messages in the MIME mail datas in addition to each attachment block message;
Page generation module is parsed, for generating postal according to remaining e-mail messages and each attachment block message for parsing Part display data.
The third aspect, an embodiment of the present invention provides a kind of server, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the mail analytic method described in any embodiment of the present invention.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the mail analytic method described in any embodiment of the present invention when the program is executed by processor.
A kind of mail analytic method, device, server and storage medium provided in an embodiment of the present invention, by receiving postal When part, each attachment block message in MIME mail datas is determined, when parsing mail, only to going out except each attachment block message Remaining e-mail messages is parsed, and the duration consumption during reducing mail load and parsing and EMS memory occupation improve postal Part analysis feature, improves user experience.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Figure 1A is a kind of flow chart for mail analytic method that the embodiment of the present invention one provides;
Figure 1B is the stream that each attachment block message in MIME mail datas is determined in the method that the embodiment of the present invention one provides Cheng Tu;
Fig. 2 is a kind of flow chart of mail analytic method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for mail resolver that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Figure 1A is a kind of flow chart for mail analytic method that the embodiment of the present invention one provides, and the present embodiment is applicable to appoint One carries out in the Mail Clients of mail contact.A kind of mail analytic method provided in this embodiment can be by the embodiment of the present invention The mail resolver of offer executes, which can be realized by way of software and/or hardware, and be integrated in execution In the server of this method, in the present embodiment execute this method server can be tablet computer, desktop computer, notebook and Mobile phone etc. any one include the smart machine of Mail Clients.Specifically, with reference to figure 1A, this method may include walking as follows Suddenly:
S110, according to the boundary marking in MIME mail datas, is determined each in MIME mail datas when receiving mail Attachment block message.
Wherein, existing reciprocal mail data usually follows a certain form requirement, therefrom to analyze and extract outbox The information such as people, addressee, theme and attachment, the basic format and detail of mail data are respectively by the reticle of Email Formula RFC 822 and MIME protocol definitions.822 standards of RFC can only send basic ASCII character text message, and MIME agreements are also A variety of different rich texts, inline picture and attachment etc. can be added in mail, and there are in the mail of kinds of characters collection and coding Hold.At this point, being MIME mail numbers by the mail data that can add a variety of different coding files wherein of MIME protocol definitions According to.Specifically, MIME mail datas can be made of mail head and mail body two parts.Wherein, can include hair in mail head The important informations such as part people, addressee, theme, time, MIME versions and email type can include plain text in mail body, super Text, embedded resource (such as the picture being embedded in hypertext) or attachment combination etc. are at least one of therein, are indicated with this Particular content in the mail, at this point, mail body specifically can indicate this respectively by including multiple sections of paragraph header and segment body Each single item content in mail.It should be noted that the mail particular content for including in the present embodiment mail body can pass through postal Email type in part head is distinguished.
Further, the boundary marking in MIME mail datas can be used for distinguishing and determining different in MIME mail datas Mail Contents, such as plain text, hypertext, inline picture and attachment etc..Boundary marking can be according to specific Mail Contents By User Defined, boundary marking can distinguish each single item Mail Contents in multiple Mail Contents, and determine each single item postal Specific location of the corresponding field of part content in mail body.Specifically, the boundary marking in the present embodiment can pass through MIME Boundary field informations in mail data determine.Wherein, boundary marking may include the email type in mail head, with This determines the different mail content for including in MIME mail datas.
Optionally, in order to promote the performance of mail parsing, it is desirable to reduce disk loads the time of mail, leads in the present embodiment It crosses when receiving mail, it is first determined the mail of reception is MIME mails, secondly during receiving the MIME mails, to this MIME mails are pre-processed, that is, each boundary field informations are found out in the MIME mail datas, really with this Fixed corresponding each boundary marking, and determine boundary marking corresponding with attachment block message in all boundary mark, with this The specific each attachment block message determined in MIME mail datas.Wherein, each attachment block message may include the MIME postals of the reception All attachmentes that number of packages carries in.Can be the new stamp for receiving other accounts and sending specifically, receiving mail in the present embodiment Part can also be the new mail directly opened in desktop and do not opened before a current mail client, for example, local use Family is in other users there copy, the mail for other accounts that do not opened in local mail client.
Further, the boundary marking in the present embodiment may include boundary types and boundary parameter.Wherein, boundary types It can determine that specific Mail Contents in the MIME mail datas, the email type being equivalent in mail head are receiving mail When, it can directly whether be determined in the MIME mail datas including attachment by parsing the email type in mail head.Meanwhile Boundary parameter can determine specific location of the corresponding field of each attachment block in the MIME mail datas, should to directly determine Each attachment block message in MIME mail datas.
Specifically, the boundary types in boundary marking, that is, email type, the Content- in mail head can be passed through The type field determines that, when Mail Contents only include plain text, Content-Type fields are text/plain expressions, work as postal When part content further includes other contents of a variety of mixing, Content-Type fields are multipart types, including Multipart/mixed types, multipart/related types and multipart/Alternative types.Wherein, three Interrelated between person, multipart/mixed types indicate chopped-off head block message, and there are attachmentes in MIME mail datas; Multipart/related types indicate secondary block message, there is embedded resource in MIME mail datas, such as be embedded in super Picture etc. in text;Multipart/Alternative types indicate that there are multiple text blocks in MIME mail datas.
Specifically, the boundary parameter in boundary marking can be that email type is corresponding specific in mail head Boundary parameters, and corresponding Mail Contents position can be determined in mail body according to specific boundary parameters.For example, When receiving mail, the mail head in MIME mail datas includes:
"Content-Type:multipart/mixed;
Boundary=" --- -=_ Part_217443_152692695.1495196666093 " ";
Wherein, boundary types multipart/mixed indicates that there are attachmentes, boundary parameter to be in MIME mail datas " --- -=_ Part_217443_152692695.1495196666093 ", it can be determined in mail body according to the boundary parameter The specifying information of each attachment.
If the mail head in MIME mail datas includes:
"Content-Type:multipart/alternative;
Boundary=" --- -=_ Part_214835_1240140699.1495194691872 " ";
Wherein, boundary types multipart/alternative indicates that there are text block, sides in MIME mail datas Boundary's parameter is " --- -=_ Part_214835_1240140699.1495194691872 ", can be according to the boundary parameter in postal The specifying information of text block is determined in part body.
On the basis of the above embodiments, as shown in Figure 1B, according to the boundary marking in MIME mail datas, MIME is determined Each attachment block message in mail data may include:
S111 obtains at least one of MIME mail datas boundary marking.
Specifically, being pre-processed to the MIME mails, that is, each boundary is found out in the MIME mail datas Field information determines corresponding each boundary marking with this.Include multinomial specific Mail Contents in the MIME mail datas When, it can be provided with multiple and different boundary markings, correspond to different Mail Contents respectively.When receiving mail, obtain first The boundary types and boundary parameter at least one of MIME mail datas boundary marking and boundary marking are taken, that is, Content-Type fields and boundary field informations.
S112, if being determined in MIME mail datas there are attachment according to the boundary types in each boundary marking, according to Boundary parameter in the corresponding each boundary marking of attachment determines each attachment block message.
Specifically, after obtaining at least one boundary marking, first determine whether that the boundary types in each boundary marking are corresponding Whether Content-Type fields have multipart/mixed type informations, and if it exists, then determine and deposited in the MIME mail datas In attachment, obtain the boundary parameter in each boundary marking corresponding with attachment at this time, that is, with the multipart/mixed words The corresponding boundary field parameters of section determine each attachment block message according to the boundary field parameters in mail body.
Illustratively, when the multipart/mixed fields in the mail head of the MIME mail datas are corresponding When boundary field parameters are " --- -=_ Part_217443_152692695.1495196666093 ", only in mail body Determine the field information that the boundary fields include, that is, each attachment block message.Such as:In mail body
" --- ---=_ Part_217443_152692695.1495196666093
Content-Type:text/plain;Name=" first1.txt "
Content-Transfer-Encoding:base64
Content-Disposition:attachment;Filename=" first1.txt "
MTIzNA==
--- ---=_ Part_217443_152692695.1495196666093
Content-Type:text/plain;Name=" first2.txt "
Content-Transfer-Encoding:base64
Content-Disposition:attachment;Filename=" first2.txt "
MTIzNA==
--- ---=_ Part_217443_152692695.1495196666093-- ";
Wherein, there are two attachmentes in the mail body, and specify and carry out coding biography to the content by the way of base64 It is defeated.In addition, may each comprise in each attachment block message in the present embodiment:The initial position of attachment block, attachment block length and The contents such as attachment block title can be previously obtained the title of each attachment block and big by being parsed to each attachment block message The information such as small determine the specifying information of each attachment block in MIME mail datas with this, in case follow-up use.
S120, when receiving the mail analysis instruction of user's effect, according to mail analysis instruction to MIME mail datas In remaining e-mail messages in addition to each attachment block message parsed.
Wherein, for user when needing to open mail, Mail Clients can receive the mail analysis instruction of user's effect, should Mail analysis instruction can indicate the Email Name specifically opened, and can also be to automatically analyze mail letter related to extraction mail Corresponding order when breath, to be parsed to corresponding specified mail.
Optionally, Mail Clients can refer to when receiving the mail analysis instruction of user's effect according to mail parsing It enables and judges whether the corresponding specified mail opened passes through pretreatment, corresponding each attachment block letter in determining the MIME mail datas After breath, each attachment block message is filtered out in MIME mail datas, only to remaining mail in addition to each attachment block message Breath carries out load parsing, is not parsed to each attachment block, improves mail load and analyzing efficiency.Wherein, remaining e-mail messages May include the information such as text message and inline picture in the MIME mail datas.
S130 generates mail display data according to remaining e-mail messages parsed and each attachment block message.
Specifically, after remaining e-mail messages parses in addition to each attachment block message in MIME mail datas, need Analysis result is displayed for a user, according to the text or pictorial information in remaining e-mail messages parsed, and is not parsed Each attachment block message generate mail display data, which can be shown by e-mail page, can also will be solved Mail display data after analysis stores, so as to later use.Wherein, the MIME mails are specified in the mail display data The specific Mail Contents for including in data, attachment block of message body, inline picture and carrying etc..Optionally, can pass through The title and size for parsing attachment block in advance, only show the title and size of each attachment block, without to each attachment block Particular content parsed.
The technical solution of the present embodiment, by when receiving mail, determining that each attachment block in MIME mail datas is believed Breath, when parse mail, only parsed to going out remaining e-mail messages except each attachment block message, reduce mail load with Duration consumption in resolving and EMS memory occupation, improve mail analysis feature, improve user experience.
Embodiment two
Fig. 2 is a kind of flow chart of mail analytic method provided by Embodiment 2 of the present invention.The present embodiment is in above-mentioned reality It applies and optimizes on the basis of example.Specifically, with reference to Fig. 2, the present embodiment may include steps of:
S210, according to the boundary marking in MIME mail datas, is determined each in MIME mail datas when receiving mail Attachment block message.
S220 stores each attachment block message into attachment table.
Specifically, initial position, attachment block length and the attachment block name of the attachment block in determining each attachment block message It after title, can be recorded corresponding each attachment block message as a data, in corresponding storage to attachment table.Wherein, the attachment The mode that table is referred to tables of data in database is stored, and keyword identification is arranged to each data record, with after an action of the bowels Continue when needing to parse corresponding attachment block, find corresponding attachment block message in attachment table in time, improves analyzing efficiency.
S230, when receiving the mail analysis instruction of user's effect, according to mail analysis instruction to MIME mail datas In remaining e-mail messages in addition to each attachment block message parsed.
S240 determines text message and/or inline pictorial information in mail according to remaining e-mail messages parsed, with And the corresponding display location in mail display data.
In the present embodiment, remaining e-mail messages in MIME mail datas in addition to each attachment block message may include The text message of message body and/or inline pictorial information, wherein text message may include plain text and hypertext etc..It is optional , when being shown to remaining e-mail messages parsed, it is thus necessary to determine that the text message in mail and/or inline picture letter Breath and text information and/or inline the pictorial information corresponding display location in mail display data.
Text message and/or inline pictorial information are shown in corresponding display location, and each attachment block are combined to believe by S250 Breath generates mail display data.
Optionally, when the correspondence display location of text message and/or inline pictorial information in e-mail page is determined, Text message and/or inline pictorial information can be shown in corresponding display location in mail display data, and according to Each attachment block message determined in MIME mail datas generates corresponding mail in conjunction with the attachment block title and size of each attachment block Display data, for showing mail analysis result.
S260 judges whether the attachment analysis instruction for receiving user's effect, if so, executing S270;If it is not, executing S280。
Specifically, after having displayed for a user mail analysis result in mail display data, if user also needs to check Corresponding attachment block is needed by double-clicking corresponding attachment block title in mail display data, to be carried out to corresponding accessory block Parsing, for user in the attachment block on double-clicking mail display data, Mail Clients can receive the attachment parsing of user's effect Instruction, to be parsed to corresponding accessory block.
S270 obtains target attachment block message corresponding with attachment analysis instruction in attachment table, and is based on target attachment Block message parses the target attachment data in MIME mail datas.
Specifically, when receiving the attachment analysis instruction of user's effect, use can be determined according to the attachment analysis instruction Family needs the target attachment data parsed, and true in time in attachment table by the corresponding keyword identification of target attachment data Fixed corresponding data recording position determines that target attachment block exists to search the target attachment block message stored in the attachment table The information such as initial position, attachment block length and attachment block title in MIME mail datas, according to target attachment block in MIME Initial position in mail data reads the target attachment data and corresponds to MIME field informations, and root in MIME mail datas The corresponding MIME field informations of the target attachment data are decoded according to corresponding transmission coding mode in field, are parsed Target attachment afterwards.Optionally, it can be stored into temp directory by the target attachment data for parsing this, then row is beaten It opens, displays for a user corresponding target attachment content.
S280 terminates this flow.
The technical solution of the present embodiment, by when receiving mail, determining that each attachment block in MIME mail datas is believed Breath does not occupy disk space additionally, reduces postal to which remaining e-mail messages to accessory information and in addition to attachment parse respectively Duration consumption during part load and parsing and EMS memory occupation, improve mail analysis feature, improve user experience.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for mail resolver that the embodiment of the present invention three provides, specifically, such as Fig. 3 institutes Show, which may include:
Attachment determining module 310, for when receiving mail, according to the boundary marking in MIME mail datas, determining Each attachment block message in MIME mail datas;
Mail parsing module 320, for receive user effect mail analysis instruction when, according to mail analysis instruction Remaining e-mail messages in MIME mail datas in addition to each attachment block message are parsed;
Mail shows generation module 330, for generating postal according to remaining e-mail messages and each attachment block message for parsing Part display data.
The technical solution of the present embodiment, by when receiving mail, determining that each attachment block in MIME mail datas is believed Breath, when parse mail, only parsed to going out remaining e-mail messages except each attachment block message, reduce mail load with Duration consumption in resolving and EMS memory occupation, improve mail analysis feature, improve user experience.
Further, above-mentioned boundary marking may include boundary types and boundary parameter, correspondingly, above-mentioned attachment determines mould Block 310 may include:Mark acquiring unit 3101, for obtaining at least one of MIME mail datas boundary marking;Attachment Determination unit 3102, if for determining that there are attachment, roots in MIME mail datas according to the boundary types in each boundary marking Each attachment block message is determined according to the boundary parameter in each boundary marking corresponding with attachment.
Further, above-mentioned attachment block message may include:Initial position, attachment block length and the attachment block of attachment block Title.
Further, above-mentioned apparatus can also include:Attachment memory module 340, in determining MIME mail datas Each attachment block message after, each attachment block message is stored into attachment table.
Correspondingly, above-mentioned apparatus can also include:Attachment parsing module 350, in the attachment for receiving user's effect When analysis instruction, target attachment block message corresponding with attachment analysis instruction is obtained in attachment table, and be based on target attachment block Information parses the target attachment data in MIME mail datas.
Further, above-mentioned mail shows that generation module 330 may include:Determination unit 3301 is shown, for according to solution Remaining e-mail messages being precipitated determine text message and/or inline pictorial information in mail, and in mail display data Corresponding display location;Mail shows generation unit 3302, for text message and/or inline pictorial information to be shown in correspondence Display location, and combine each attachment block message generate mail display data.
Mail resolver provided in this embodiment is applicable to the mail analytic method that above-mentioned any embodiment provides, tool Standby corresponding function and advantageous effect.
Example IV
Fig. 4 is a kind of structural schematic diagram for server that the embodiment of the present invention four provides, as shown in figure 4, the server packet Include processor 40, memory 41, communication device 42, input unit 43 and output device 44;The quantity of processor 40 in server Can be one or more, in Fig. 4 by taking a processor 40 as an example;Processor 40, memory 41, communication device in server 42, input unit 43 can be connected with output device 44 by bus or other modes, in Fig. 4 for being connected by bus.
Memory 41 is used as a kind of computer readable storage medium, can be used for storing software program, computer can perform journey Sequence and module, if the corresponding program instruction/module of mail analytic method in the embodiment of the present invention is (for example, mail parsing dress Attachment determining module 310, mail parsing module 320 in setting and parsing page generation module 330).Processor 40 passes through operation Software program, instruction and the module being stored in memory 41, to the various function application and data of execute server Processing, that is, realize above-mentioned mail analytic method.
Memory 41 can include mainly storing program area and storage data field, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.This Outside, memory 41 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 41 can be further Include the memory remotely located relative to processor 40, these remote memories can pass through network connection to server.On The example for stating network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Communication device 42 can be used for network connection or the mobile data cube computation of server.
Input unit 43 can be used for receiving the number or character information of input, and generate with the user setting of server with And the related key signals input of function control.Output device 44 may include that display screen etc. shows equipment.
A kind of server provided in this embodiment can be used for executing the mail analytic method that above-mentioned any embodiment provides, tool Standby corresponding function and advantageous effect.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should Program can realize the mail analytic method in above-mentioned any embodiment when being executed by processor.This method can specifically include:
When receiving mail, according to the boundary marking in multipurpose internet mail extensions MIME mail datas, institute is determined State each attachment block message in MIME mail datas;
When receiving the mail analysis instruction of user's effect, according to the mail analysis instruction to the MIME mails number Remaining e-mail messages in addition to each attachment block message are parsed;
Mail display data is generated according to remaining e-mail messages and each attachment block message for parsing.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer The mail parsing that any embodiment of the present invention is provided can also be performed in the method operation that executable instruction is not limited to the described above Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of above-mentioned mail resolver, included each unit and module are only pressed It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, The specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
The foregoing is merely the preferred embodiment of the present invention, are not intended to restrict the invention, for those skilled in the art For, the present invention can have various modifications and changes.It is all within spirit and principles of the present invention made by any modification, equivalent Replace, improve etc., it should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of mail analytic method, which is characterized in that including:
When receiving mail, according to the boundary marking in multipurpose internet mail extensions MIME mail datas, determine described in Each attachment block message in MIME mail datas;
When receiving the mail analysis instruction of user's effect, according to the mail analysis instruction in the MIME mail datas Remaining e-mail messages in addition to each attachment block message are parsed;
Mail display data is generated according to remaining e-mail messages and each attachment block message for parsing.
2. according to the method described in claim 1, it is characterized in that, the boundary marking includes boundary types and boundary parameter, Correspondingly, according to the boundary marking in MIME mail datas, each attachment block message in the MIME mail datas is determined, wrap It includes:
Obtain at least one of MIME mail datas boundary marking;
If determining that there are attachment, basis and institutes in the MIME mail datas according to the boundary types in each boundary marking It states the boundary parameter in the corresponding each boundary marking of attachment and determines each attachment block message.
3. according to the method described in claim 2, it is characterized in that, the attachment block message includes:The initial position of attachment block, Attachment block length and attachment block title.
4. according to any methods of claim 1-3, which is characterized in that each attached in determining the MIME mail datas After part block message, further include:
Each attachment block message is stored into attachment table;
Correspondingly, when receiving the attachment analysis instruction of user's effect, obtains in the attachment table and parsed with the attachment Corresponding target attachment block message is instructed, and attached to the target in the MIME mail datas based on the target attachment block message Number of packages is according to being parsed.
5. according to the method described in claim 3, it is characterized in that, according to remaining e-mail messages and each attachment parsed Block message generates mail display data, including:
Text message and/or inline pictorial information in the mail are determined according to described remaining e-mail messages parsed, with And the corresponding display location in mail display data;
The text message and/or inline pictorial information are shown in corresponding display location, and believed in conjunction with each attachment block Breath generates mail display data.
6. a kind of mail resolver, which is characterized in that including:
Attachment determining module is used for when receiving mail, according to the side in multipurpose internet mail extensions MIME mail datas Boundary mark is known, and determines each attachment block message in the MIME mail datas;
Mail parsing module, for receive user effect mail analysis instruction when, according to the mail analysis instruction pair Remaining e-mail messages in the MIME mail datas in addition to each attachment block message are parsed;
Page generation module is parsed, it is aobvious for generating mail according to remaining e-mail messages and each attachment block message for parsing Registration evidence.
7. device according to claim 6, which is characterized in that the boundary marking includes boundary types and boundary parameter, Correspondingly, the attachment determining module includes:
Mark acquiring unit, for obtaining at least one of MIME mail datas boundary marking;
Attachment determination unit, if being deposited for being determined in the MIME mail datas according to the boundary types in each boundary marking In attachment, then each attachment block message is determined according to the boundary parameter in each boundary marking corresponding with the attachment.
8. device according to claim 7, which is characterized in that the attachment block message includes:The initial position of attachment block, Attachment block length and attachment block title.
9. a kind of server, which is characterized in that the server includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now mail analytic method as described in any in claim 1-5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The mail analytic method as described in any in claim 1-5 is realized when execution.
CN201810541554.0A 2018-05-30 2018-05-30 Mail analysis method, device, server and storage medium Active CN108768835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810541554.0A CN108768835B (en) 2018-05-30 2018-05-30 Mail analysis method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810541554.0A CN108768835B (en) 2018-05-30 2018-05-30 Mail analysis method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN108768835A true CN108768835A (en) 2018-11-06
CN108768835B CN108768835B (en) 2022-03-18

Family

ID=64004584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810541554.0A Active CN108768835B (en) 2018-05-30 2018-05-30 Mail analysis method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN108768835B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213987A (en) * 2018-11-13 2019-01-15 国家***第海洋研究所 A kind of ice buoy satellite data processing method
CN109284444A (en) * 2018-11-29 2019-01-29 彩讯科技股份有限公司 A kind of recommended method of good friend, device, server and storage medium
CN111917632A (en) * 2020-07-31 2020-11-10 北京明朝万达科技股份有限公司 Method and device for analyzing mail, nonvolatile storage medium and electronic device
CN114157734A (en) * 2021-12-06 2022-03-08 北京天融信网络安全技术有限公司 Data analysis method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001052081A1 (en) * 1999-08-30 2001-07-19 Zaplet, Inc. Methods and systems to manage and track the states of electronic media
CN1838645A (en) * 2006-02-27 2006-09-27 宇龙计算机通信科技(深圳)有限公司 E-mail receiving method
CN1889106A (en) * 2005-06-30 2007-01-03 腾讯科技(深圳)有限公司 Method for separate keeping mail appendix
US20080059593A1 (en) * 2006-08-29 2008-03-06 Ban Oliver K Symbol-based message transmission method and system
CN101155153A (en) * 2006-09-26 2008-04-02 国际商业机器公司 Method and apparatus for managing e-mail attachments
CN101937530A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Method and device for displaying information of email
CN102368753A (en) * 2011-12-02 2012-03-07 山东大学 Mail receiving and sending processing method under thin client mode
CN102567274A (en) * 2010-12-08 2012-07-11 比亚迪股份有限公司 Method and system for realizing transfer of mail data between mobile terminal and computer
CN103188128A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 Preview method of mail attachment and mail system
CN105827511A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 System and method for processing email with large attachments

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001052081A1 (en) * 1999-08-30 2001-07-19 Zaplet, Inc. Methods and systems to manage and track the states of electronic media
CN1889106A (en) * 2005-06-30 2007-01-03 腾讯科技(深圳)有限公司 Method for separate keeping mail appendix
CN1838645A (en) * 2006-02-27 2006-09-27 宇龙计算机通信科技(深圳)有限公司 E-mail receiving method
US20080059593A1 (en) * 2006-08-29 2008-03-06 Ban Oliver K Symbol-based message transmission method and system
CN101155153A (en) * 2006-09-26 2008-04-02 国际商业机器公司 Method and apparatus for managing e-mail attachments
CN101937530A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Method and device for displaying information of email
CN102567274A (en) * 2010-12-08 2012-07-11 比亚迪股份有限公司 Method and system for realizing transfer of mail data between mobile terminal and computer
CN102368753A (en) * 2011-12-02 2012-03-07 山东大学 Mail receiving and sending processing method under thin client mode
CN103188128A (en) * 2011-12-29 2013-07-03 盈世信息科技(北京)有限公司 Preview method of mail attachment and mail system
CN105827511A (en) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 System and method for processing email with large attachments

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KIET V. NGUYEN等: "《Vietnamese transition-based dependency parsing with supertag features》", 《IEEE》 *
唐芳伟: "《高性能邮件安全网关***设计与实现》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213987A (en) * 2018-11-13 2019-01-15 国家***第海洋研究所 A kind of ice buoy satellite data processing method
CN109213987B (en) * 2018-11-13 2023-05-19 自然资源部第一海洋研究所 Ice buoy satellite data processing method
CN109284444A (en) * 2018-11-29 2019-01-29 彩讯科技股份有限公司 A kind of recommended method of good friend, device, server and storage medium
CN111917632A (en) * 2020-07-31 2020-11-10 北京明朝万达科技股份有限公司 Method and device for analyzing mail, nonvolatile storage medium and electronic device
CN114157734A (en) * 2021-12-06 2022-03-08 北京天融信网络安全技术有限公司 Data analysis method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108768835B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN108768835A (en) A kind of mail analytic method, device, server and storage medium
CN108462758B (en) Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium
US20030195928A1 (en) System and method for providing reference information to allow chat users to easily select a chat room that fits in with his tastes
US20020174186A1 (en) Electronic mail typestyle processing device
KR20160015240A (en) Capture services through communication channels
CN111817984B (en) Message sending method, device, equipment and storage medium
CN112016290A (en) Automatic document typesetting method, device, equipment and storage medium
CN112822286B (en) Message pushing method and device
CN103118346B (en) A kind of send the method for note, device and terminal
CN112199331A (en) Automatic generation method, system, terminal and storage medium of interface document
CN109450776A (en) Cohesion calculation method, device, equipment and medium
CN107370661A (en) Message method, device and electronic equipment based on contacts list
CN107925610B (en) Computing device, method and computer-readable memory device for providing dialog modification
CN109766315A (en) Document presentation method and terminal, computer storage medium, computer equipment
US20160241502A1 (en) Method for Generating an Electronic Message on an Electronic Mail Client System, Computer Program Product for Executing the Method, Computer Readable Medium Having Code Stored Thereon that Defines the Method, and a Communications Device
US20070027918A1 (en) Mail processing server, mail processing method, and mail processing program
CN109462538A (en) Electronic device, the mail sharing method based on level of confidentiality and storage medium
CN105491136B (en) Message method and device
CN108416015A (en) A kind of information security method for pushing
JP3814991B2 (en) E-mail editing apparatus and storage medium
US7370041B2 (en) Information processing method, information processing system, information registration apparatus, information acquisition apparatus, and computer memory product
CN107733790B (en) Mail delivery method, device and server
JP3501262B2 (en) Email processing equipment
KR20120029662A (en) Device and method for managing spam
JP5402700B2 (en) Reply mail creation device and reply mail creation method

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
CB02 Change of applicant information

Address after: 518000 31st floor, Caixun technology building, 3176 Keyuan South Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: RICHINFO TECHNOLOGY CO.,LTD.

Address before: 518057 unit 01-11, 4 / F, Changhong science and technology building, 18 Keji South 12 road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: RICHINFO TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant