CN109039876A - Email processing method and device - Google Patents
Email processing method and device Download PDFInfo
- Publication number
- CN109039876A CN109039876A CN201811093609.2A CN201811093609A CN109039876A CN 109039876 A CN109039876 A CN 109039876A CN 201811093609 A CN201811093609 A CN 201811093609A CN 109039876 A CN109039876 A CN 109039876A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- mail service
- attachment
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims abstract description 81
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000005540 biological transmission Effects 0.000 claims abstract description 10
- 238000004590 computer program Methods 0.000 claims description 16
- 230000004044 response Effects 0.000 claims description 16
- 230000007246 mechanism Effects 0.000 abstract description 10
- 238000012545 processing Methods 0.000 description 36
- 230000008569 process Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000004458 analytical method Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 239000008186 active pharmaceutical agent Substances 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
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
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本申请涉及互联网技术领域,尤其涉及一种邮件处理方法和装置。The present application relates to the technical field of the Internet, in particular to a mail processing method and device.
背景技术Background technique
随着互联网的快速发展,用户可以通过不同设备进行各种网络服务,例如邮件服务、远程登录服务、文件传输服务等等。其中,邮件服务因其具有传输速度快、内容和形式多样、使用方便、费用低、安全性好等特征,成为目前最常见、应用最广泛的一种互联网服务。With the rapid development of the Internet, users can perform various network services through different devices, such as mail services, remote login services, file transfer services, and so on. Among them, mail service has become the most common and widely used Internet service because of its fast transmission speed, diverse content and forms, convenient use, low cost, and good security.
目前,相关的邮件服务系统,多是为客户提供了邮件服务应用程序编程接口(Application Programming Interface,简称为:API),各企业可以基于该API,设置相对应的前端功能界面,以满足企业的实际应用需求。At present, most of the relevant mail service systems provide customers with a mail service application programming interface (Application Programming Interface, referred to as: API), and each enterprise can set up a corresponding front-end function interface based on the API to meet the requirements of the enterprise. practical application needs.
然而,由于不同的邮件服务通常具有其对应的一套验证系统与编码系统,并且每一个接收方,在网页端、应用程序编程接口(Application Programming Interface,简称为:API)内也可能使用不同的编码系统与显示机制,从而使得目前进行邮件收发时,极易出现邮件内容乱码,无法正常显示的问题。However, since different mail services usually have their corresponding sets of verification systems and encoding systems, and each recipient may also use different The encoding system and display mechanism make it easy for email content to be garbled and cannot be displayed normally when sending and receiving emails.
发明内容Contents of the invention
本申请提供一种邮件处理方法和装置,用于解决相关技术中,具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,极易出现邮件内容乱码,无法正常显示的问题。This application provides a mail processing method and device, which are used to solve the problem in the related art that receivers with different encoding systems and display mechanisms are prone to garbled codes and cannot be displayed normally when sending and receiving mail.
本申请一方面实施例提供一种邮件处理方法,该方法包括:对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据及邮件正文;将所述邮件正文进行编码处理,以生成所述邮件正文对应的第一编码数据;根据预设的邮件服务参数、所述第一编码数据及所述通讯数据,生成待向邮件服务系统发送的邮件服务请求。An embodiment of the present application provides a mail processing method, the method includes: analyzing the sending request of the mail, obtaining the communication data and the text of the mail contained in the sending request; encoding the text of the mail to generate The first encoded data corresponding to the email text; generating an email service request to be sent to an email service system according to preset email service parameters, the first encoded data, and the communication data.
本申请另一方面实施例提供一种邮件处理装置,该装置包括:获取模块,用于对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据及邮件正文;第一生成模块,用于将所述邮件正文进行编码处理,以生成所述邮件正文对应的第一编码数据;第二生成模块,用于根据预设的邮件服务参数、所述第一编码数据及所述通讯数据,生成待向邮件服务系统发送的邮件服务请求。Another embodiment of the present application provides a mail processing device, which includes: an acquisition module, configured to analyze the sending request of the mail, and obtain the communication data and the text of the mail contained in the sending request; a first generating module, For encoding the mail text to generate first encoded data corresponding to the mail text; a second generating module, configured to use preset mail service parameters, the first encoded data, and the communication data , to generate a mail service request to be sent to the mail service system.
本申请又一方面实施例提供一种电子设备,该电子设备包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,以实现第一方面实施例所述的邮件处理方法。An embodiment of another aspect of the present application provides an electronic device, the electronic device includes: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, to realize The mail processing method described in the embodiment of the first aspect.
本申请再一方面实施例的计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,以实现第一方面实施例所述的邮件处理方法。The computer-readable storage medium in another embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the mail processing method described in the embodiment of the first aspect can be realized.
本申请再一方面实施例的计算机程序,当所述计算机程序被处理器执行时,以实现第一方面实施例所述的邮件处理方法。The computer program in another embodiment of the present application, when the computer program is executed by a processor, can realize the mail processing method described in the embodiment of the first aspect.
本申请公开的技术方案,具有如下有益效果:The technical solution disclosed in this application has the following beneficial effects:
通过对邮件的发送请求进行解析,获取邮件发送请求中包括的通讯数据及邮件正文,将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据,并根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。By analyzing the sending request of the mail, the communication data and the mail text included in the mail sending request are obtained, and the mail text is encoded to generate the first encoded data corresponding to the mail text, and according to the preset mail service parameters, the first coded data 1. Encoding data and communication data to generate a mail service request to be sent to the mail service system. Thus, by re-encoding the mail text, the recipients with different encoding systems and display mechanisms can display the mail content normally when sending and receiving mail, so that users can obtain accurate mail content , thereby improving the performance of the mail service and improving the user experience.
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present application will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein,
图1是根据本申请一实施例示出的邮件处理方法的流程示意图;FIG. 1 is a schematic flow diagram of a mail processing method according to an embodiment of the present application;
图2是根据本申请另一实施例示出的邮件处理方法的流程示意图;FIG. 2 is a schematic flowchart of a mail processing method according to another embodiment of the present application;
图3是根据本申请另一实施例示出的邮件处理方法的流程示意图;Fig. 3 is a schematic flowchart of a mail processing method according to another embodiment of the present application;
图4是根据本申请又一实施例示出的邮件处理方法的流程示意图;Fig. 4 is a schematic flowchart of a mail processing method according to another embodiment of the present application;
图5是根据本申请再一实施例示出的邮件处理方法的流程示意图;Fig. 5 is a schematic flowchart of a mail processing method according to yet another embodiment of the present application;
图6是根据本申请一实施例示出的邮件处理装置的结构示意图;Fig. 6 is a schematic structural diagram of a mail processing device according to an embodiment of the present application;
图7是根据本申请另一实施例示出的邮件处理装置的结构示意图;Fig. 7 is a schematic structural diagram of a mail processing device according to another embodiment of the present application;
图8是根据本申请又一实施例示出的邮件处理装置的结构示意图;Fig. 8 is a schematic structural diagram of a mail processing device according to another embodiment of the present application;
图9是根据本申请再一实施例示出的邮件处理装置的结构示意图;Fig. 9 is a schematic structural diagram of a mail processing device according to yet another embodiment of the present application;
图10是根据本申请一实施例示出的电子设备的结构示意图。Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.
本申请各实施例针对相关技术中,具有不同编码系统和显示机制的接收方,对邮件收发时,极易出现邮件内容乱码,无法正常显示的问题,提出一种邮件处理方法。Various embodiments of the present application aim at the problem that in the related art, receivers with different encoding systems and display mechanisms are prone to garbled content and cannot be displayed normally when sending and receiving emails, and propose an email processing method.
本申请实施例,通过对邮件的发送请求进行解析,以获取邮件发送请求中包括的通讯数据及邮件正文,并将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据,并根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。In this embodiment of the present application, by analyzing the sending request of the mail, the communication data and the text of the mail included in the sending request of the mail are obtained, and the text of the mail is encoded to generate the first encoded data corresponding to the text of the mail, and according to the preset The set mail service parameters, first coded data and communication data are used to generate a mail service request to be sent to the mail service system. Thus, by re-encoding the mail text, the recipients with different encoding systems and display mechanisms can display the mail content normally when sending and receiving mail, so that users can obtain accurate mail content , thereby improving the performance of the mail service and improving the user experience.
下面参考附图描述本申请实施例的邮件处理方法和装置进行详细说明。The mail processing method and device according to the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
首先,结合图1对本申请实施例中邮件处理方法进行具体说明。Firstly, the mail processing method in the embodiment of the present application will be specifically described with reference to FIG. 1 .
图1是根据本申请一实施例示出的邮件处理方法的流程示意图。Fig. 1 is a schematic flowchart of a mail processing method according to an embodiment of the present application.
如图1所示,本申请的邮件处理方法可以包括以下步骤:As shown in Figure 1, the mail processing method of the present application may include the following steps:
步骤101,对邮件发送请求进行解析,获取发送请求中包含的通讯数据及邮件正文。Step 101, analyze the email sending request, and obtain the communication data and email text included in the sending request.
其中,本实施例中,通讯数据可以包括,但不限于:收件人信息、抄送人信息、密送人信息、发件人信息等等。Wherein, in this embodiment, the communication data may include, but is not limited to: recipient information, CC recipient information, BCC recipient information, sender information, and so on.
其中,本申请实施例提供的邮件处理方法,可以由本申请实施例提供的电子设备执行。其中,电子设备中设置有邮件处理装置,以实现对邮件服务的处理过程进行控制。本实施例中,电子设备可以是任一具有数据处理功能的硬件设备,比如智能手机、个人电脑、个人数字化助理等等。Wherein, the mail processing method provided in the embodiment of the present application may be executed by the electronic device provided in the embodiment of the present application. Wherein, the electronic device is provided with a mail processing device, so as to control the processing process of the mail service. In this embodiment, the electronic device may be any hardware device with a data processing function, such as a smart phone, a personal computer, a personal digital assistant, and the like.
在实际使用过程中,由于同一时间可能存在多个用户同时触发邮件发送动作,即触发邮件的发送请求,而邮件服务器并不能同时处理多个邮件的发送请求。此时为了保证邮件服务器能够正常有序的将接收到的多个邮件的发送请求发送出去,电子设备可以将同一时间接收到的多个邮件的发送请求,存储到预设的邮件发送请求队列中,然后依次从预设的邮件发送请求队列中获取邮件的发送请求,并对获取到的邮件发送请求进行相对应的处理操作。In actual use, since there may be multiple users simultaneously triggering an email sending action at the same time, that is, triggering an email sending request, and the mail server cannot process multiple email sending requests at the same time. At this time, in order to ensure that the mail server can normally and orderly send the received multiple mail sending requests, the electronic device can store the multiple mail sending requests received at the same time in the preset mail sending request queue , and then sequentially obtain mail sending requests from the preset mail sending request queue, and perform corresponding processing operations on the obtained mail sending requests.
其中,预设的邮件发送请求队列可以是电子设备出厂时预先设置的,此处对其不作具体限定。Wherein, the preset email sending request queue may be preset when the electronic device leaves the factory, which is not specifically limited here.
也就是说,本实施例在执行步骤101之前,可以从预设的邮件发送请求队列中获取邮件的发送请求。That is to say, before step 101 is executed in this embodiment, the email sending request can be obtained from the preset email sending request queue.
在本申请的另一个实现方式中,当邮件服务器同一时间接收到多个邮件的发送请求时,还可以依次将多个邮件的发送请求存入到预设的数据库和可扩展的分布式文件系统(Google File System,简称为:GFS文件系统)中,然后通过异步队列的方式调用对应的应用程序编程接口(Application Programming Interface,简称为:API),将预设的数据库中存储的多个邮件的发送请求导入到内存中,然后依次对内存中存储的多个邮件的发送请求进行相对应的处理操作。In another implementation of the present application, when the mail server receives multiple mail sending requests at the same time, it can also sequentially store the multiple mail sending requests in the preset database and scalable distributed file system (Google File System, abbreviated as: GFS file system), and then call the corresponding application programming interface (Application Programming Interface, abbreviated as: API) through an asynchronous queue, and store multiple emails stored in the preset database The sending request is imported into the memory, and then corresponding processing operations are performed on the sending requests of multiple mails stored in the memory in turn.
进而,电子设备可以通过对获取到的邮件发送请求进行解析处理,以获取到邮件发送请求中包含的通讯数据及邮件正文。Furthermore, the electronic device may analyze and process the obtained mail sending request to obtain the communication data and the mail text contained in the mail sending request.
步骤102,将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据。Step 102: Encoding the email body to generate first encoded data corresponding to the email body.
可选的,本实施例可以通过对解析到的邮件正文进行重新编码处理,以生成邮件正文对应的第一编码数据。Optionally, in this embodiment, the parsed email body may be re-encoded to generate first encoded data corresponding to the email body.
其中,由于传统的编码方案存在局限性,例如容许电子设备处理双语环境,但无法同时支持多语言环境。因此,本实施例通过采用万国码(Unicode,又名:统一码、单一码)对邮件正文进行编码,以实现为每种语言中的字符设定统一并且唯一的二进制编码,使得电子设备能够实现跨语言、跨平台的文本转换及处理的目的,从而保证具有不同编码系统的接收方均能正确的解析出邮件发送请求包含的邮件正文。Among them, due to the limitation of the traditional coding scheme, for example, it allows the electronic device to handle the bilingual environment, but cannot support the multilingual environment at the same time. Therefore, this embodiment encodes the mail text by adopting Unicode (Unicode, also known as: Unicode, Unicode) to realize setting a unified and unique binary code for the characters in each language, so that the electronic device can realize The purpose of cross-language and cross-platform text conversion and processing, so as to ensure that receivers with different encoding systems can correctly parse out the mail text contained in the mail sending request.
步骤103,根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。Step 103: Generate a mail service request to be sent to the mail service system according to preset mail service parameters, first encoded data and communication data.
其中,预设的邮件服务参数,是指邮件服务系统指定的,用于标识邮件各部分内容的参数,比如可以包括用于标识通讯信息的参数、用于标识邮件正文的参数、用于标识附件的参数等等,此处对其不作具体限定。Among them, the preset mail service parameters refer to the parameters specified by the mail service system for identifying the content of each part of the mail, for example, it may include parameters for identifying communication information, parameters for identifying the body of the mail, and parameters for identifying attachments. parameters, etc., which are not specifically limited here.
可选的,当生成邮件正文对应的第一编码数据之后,电子设备可根据预设的邮件服务参数,第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求,从而通过向邮件服务系统发送邮件服务请求,实现邮件的发送操作。Optionally, after generating the first coded data corresponding to the mail text, the electronic device can generate a mail service request to be sent to the mail service system according to the preset mail service parameters, the first coded data and the communication data, so as to pass to The mail service system sends a mail service request to realize the mail sending operation.
可以理解的是,本申请实施例通过解析邮件的发送请求,确定邮件的发送请求中包含的通讯数据及邮件正文,并根据万国码对邮件正文进行重新编码,然后根据预设的邮件服务参数及邮件正文对应的第一编码数据及通讯数据,生成邮件服务请求,以通过邮件服务系统将邮件服务请求进行发送,从而当邮件服务请求发送给对应的接收方之后,可以准确的解析到邮件内容,从而能够有效防止因接收方的编码系统不同而导致对邮件内容解析出现乱码的情况。It can be understood that, in the embodiment of the present application, by analyzing the sending request of the mail, the communication data and the text of the mail contained in the sending request of the mail are determined, and the text of the mail is recoded according to the unicode, and then according to the preset mail service parameters and The first coded data and communication data corresponding to the email body generate an email service request to send the email service request through the email service system, so that after the email service request is sent to the corresponding recipient, the email content can be accurately parsed, In this way, it is possible to effectively prevent garbled characters in the analysis of the email content due to the difference in the encoding system of the receiver.
本申请实施例提供的邮件处理方法,通过对邮件的发送请求进行解析,获取邮件发送请求中包括的通讯数据及邮件正文,将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据,并根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。The mail processing method provided by the embodiment of the present application obtains the communication data and the mail text included in the mail sending request by analyzing the mail sending request, and encodes the mail text to generate the first coded data corresponding to the mail text, And generate an email service request to be sent to the email service system according to the preset email service parameters, first coded data and communication data. Thus, by re-encoding the mail text, the recipients with different encoding systems and display mechanisms can display the mail content normally when sending and receiving mail, so that users can obtain accurate mail content , thereby improving the performance of the mail service and improving the user experience.
通过上述分析可知,本申请实施例通过对邮件正文进行编码处理,生成第一编码数据,从而根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。It can be seen from the above analysis that the embodiment of the present application generates the first coded data by encoding the mail text, thereby generating the mail service to be sent to the mail service system according to the preset mail service parameters, the first coded data and the communication data. ask.
在本申请另一个实施例中,邮件的发送请求中还可以包含附件信息,那么本申请对邮件的发送请求进行解析,获取到的数据除了通讯数据、邮件正文还包括附件信息。下面结合图2,对本申请实施例中的邮件处理方法上述情况进行详细说明。In another embodiment of the present application, the email sending request may also include attachment information, then the present application analyzes the email sending request, and the obtained data includes attachment information in addition to communication data and email text. The above situation of the mail processing method in the embodiment of the present application will be described in detail below with reference to FIG. 2 .
图2是根据本申请另一实施例示出的邮件处理方法的流程示意图。Fig. 2 is a schematic flowchart of a mail processing method according to another embodiment of the present application.
如图2所示,本申请的邮件处理方法可以包括以下步骤:As shown in Figure 2, the mail processing method of the present application may include the following steps:
步骤201,对邮件的发送请求进行解析,获取发送请求中包含的通讯数据、邮件正文及附件信息。Step 201, analyzing the sending request of the mail, and obtaining the communication data, the text of the mail and the attachment information contained in the sending request.
步骤202,若附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,以生成邮件正文对应的第一编码数据及附件名称对应第二编码数据。Step 202, if the attachment information includes the name of the attachment, encode the email body and the attachment name to generate first encoded data corresponding to the email body and second encoded data corresponding to the attachment name.
可选的,当确定出邮件发送请求中包含的附件信息包含附件的名称时,为了避免后续具有不同编码系统的接收方(即接收邮箱),在对该邮件进行解码时出现乱码的情况。本实施例可以通过对解析到的邮件正文及附件名称进行重新编码处理,以生成邮件正文及附件名称分别对应的编码数据。Optionally, when it is determined that the attachment information included in the mail sending request includes the name of the attachment, in order to avoid subsequent recipients (ie receiving mailboxes) with different encoding systems, garbled characters will appear when decoding the mail. In this embodiment, encoded data corresponding to the email body and attachment names can be generated by re-encoding the parsed email body and attachment names.
其中,由于传统的编码方案存在局限性,例如容许电子设备处理双语环境,但无法同时支持多语言环境。因此,本实施例通过采用万国码(Unicode,又名:统一码、单一码)对邮件正文及附件名称进行编码,以实现为每种语言中的字符设定统一并且唯一的二进制编码,使得电子设备能够实现跨语言、跨平台的文本转换及处理的目的,从而保证具有不同编码系统的接收方均能正确的解析出邮件发送请求包含的邮件正文及附件名称。Among them, due to the limitation of the traditional coding scheme, for example, it allows the electronic device to handle the bilingual environment, but cannot support the multilingual environment at the same time. Therefore, the present embodiment encodes the mail text and attachment names by adopting Unicode (Unicode, also known as: Unicode, Unicode), so as to realize setting a unified and unique binary code for characters in each language, so that electronic The device can achieve cross-language and cross-platform text conversion and processing, so as to ensure that receivers with different encoding systems can correctly parse out the email body and attachment names included in the email sending request.
步骤203,根据预设的邮件服务参数、第一编码数据、通讯数据及第二编码数据,生成待向邮件服务系统发送的邮件服务请求。Step 203: Generate a mail service request to be sent to the mail service system according to the preset mail service parameters, the first coded data, the communication data and the second coded data.
其中,预设的邮件服务参数,是指邮件服务系统指定的,用于标识邮件各部分内容的参数,比如可以包括用于标识通讯信息的参数、用于标识邮件正文的参数、用于标识附件的参数等等,此处对其不作具体限定。Among them, the preset mail service parameters refer to the parameters specified by the mail service system for identifying the content of each part of the mail, for example, it may include parameters for identifying communication information, parameters for identifying the body of the mail, and parameters for identifying attachments. parameters, etc., which are not specifically limited here.
可选的,当生成邮件正文及附件名称分别对应的第一编码数据及第二编码之后,电子设备可根据预设的邮件服务参数、第一编码数据、通讯数据及第二编码数据,生成待向邮件服务系统发送的邮件服务请求,从而通过向邮件服务系统发送邮件服务请求,实现邮件的发送操作。Optionally, after generating the first encoded data and the second encoded data corresponding to the email text and attachment names respectively, the electronic device can generate the waiting The mail service request sent to the mail service system, so as to realize the mail sending operation by sending the mail service request to the mail service system.
可以理解的是,本申请实施例通过解析邮件发送请求,确定邮件发送请求中包含的附件信息是否包含附件名称,当包含附件名称时,根据万国码对邮件正文及附件名称进行重新编码,然后根据预设的邮件服务参数及邮件正文及附件名称分别对应的编码数据及通讯数据,生成邮件服务请求,以通过邮件服务系统将邮件服务请求进行发送,从而当邮件服务请求发送给对应的接收方之后,可以准确的解析到邮件内容,从而能够有效防止因接收方的编码系统不同而导致对邮件内容解析出现乱码的情况。It can be understood that the embodiment of the present application determines whether the attachment information contained in the mail sending request includes the attachment name by analyzing the mail sending request, and if it contains the attachment name, recodes the mail body and the attachment name according to the unicode, and then according to The coded data and communication data corresponding to the preset mail service parameters, mail body and attachment names respectively generate mail service requests to send the mail service requests through the mail service system, so that when the mail service requests are sent to the corresponding recipients , it can accurately parse the content of the email, thus effectively preventing garbled characters in the analysis of the email content due to the difference in the encoding system of the receiver.
本申请实施例提供的邮件处理方法,通过将邮件发送请求进行解析处理,以获取邮件发送请求中包括的通讯数据、邮件正文及附件信息,并当确定附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,以生成邮件正文及附件名称分别对应的编码数据,然后再根据预设的邮件服务参数,及邮件正文及附件名称分别对应的编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文及附件名称进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。The mail processing method provided by the embodiment of the present application analyzes and processes the mail sending request to obtain the communication data, mail text and attachment information included in the mail sending request, and when it is determined that the attachment information includes the name of the attachment, the mail text and attachment names to generate encoding data corresponding to the mail text and attachment names, and then generate incoming mail service according to the preset mail service parameters, and the encoding data and communication data corresponding to the mail text and attachment names respectively Mail service request sent by the system. As a result, by recoding the email body and attachment names, the receivers with different encoding systems and display mechanisms can display the email content normally when sending and receiving emails, so that users can obtain accurate information. mail content, thereby improving the performance of the mail service and improving the user experience.
通过上述分析可知,本申请实施例通过对附件信息包含附件名称的邮件正文及附件名称进行编码处理,生成第一编码数据及第二编码数据,从而根据预设的邮件服务参数,第一编码数据、通讯数据及第二编码数据,生成待向邮件服务系统发送的邮件服务请求。It can be seen from the above analysis that the embodiment of the present application encodes the email body and the attachment name whose attachment information includes the attachment name to generate the first encoded data and the second encoded data, so that according to the preset mail service parameters, the first encoded data , the communication data and the second coded data to generate a mail service request to be sent to the mail service system.
在实际使用时,用户可能需要在邮件正文或者附件信息中添加图片,以使接收方能够通过图片清楚的了解发送者的意图。例如,企业员工将公司的商标图片添加至邮件正文中,并发送给客户,从而客户在接收到该邮件之后,即可根据邮件正文中的图片了解该公司的相关信息。下面结合图3,对本申请实施例的邮件处理方法上述情况进行详细说明。In actual use, the user may need to add a picture in the email body or attachment information, so that the receiver can clearly understand the sender's intention through the picture. For example, employees of an enterprise add the company's trademark picture to the email body and send it to the customer, so that after receiving the email, the customer can learn about the company's relevant information based on the picture in the email body. The above situation of the mail processing method according to the embodiment of the present application will be described in detail below with reference to FIG. 3 .
图3是根据本申请另一实施例示出的邮件处理方法的流程示意图。Fig. 3 is a schematic flowchart of a mail processing method according to another embodiment of the present application.
如图3所示,本申请实施例的邮件处理方法可以包括以下步骤:As shown in Figure 3, the mail processing method of the embodiment of the present application may include the following steps:
步骤301,对邮件的发送请求进行解析,获取发送请求中包含的通讯数据、邮件正文及附件信息。In step 301, the email sending request is analyzed to obtain the communication data, email text and attachment information contained in the sending request.
步骤302,判断邮件正文或附件信息中是否包含图片标识。Step 302, judging whether the email body or attachment information contains a picture identifier.
步骤303,若包含,则获取与图片标识对应的图片数据。Step 303, if it is included, obtain the picture data corresponding to the picture identifier.
可选的,本实施例在获取到发送请求中包含的通讯数据、邮件正文及附件信息之后,还可进一步的对邮件正文或者附件信息中是否包含图片标识进行判断操作。其中,本实施例可以根据预设规则,对邮件正文或附件信息中是否包含图片标识进行判断操作。Optionally, in this embodiment, after obtaining the communication data, email text and attachment information included in the sending request, it may further determine whether the email text or attachment information contains a picture identifier. Wherein, in this embodiment, according to a preset rule, a judgment operation may be performed on whether the email text or attachment information contains a picture identifier.
可以理解的是,本实施例中对邮件正文或附件信息中是否包含图片标识判断过程,可以是对邮件正文进行判断;或者,可以是对附件信息进行判断;或者,还可以是对邮件正文和附件信心共同进行判断等,此处对其不作具体限定。It can be understood that, in this embodiment, the process of judging whether a picture identification is included in the mail text or attachment information may be to judge the mail text; or, it may be to judge the attachment information; or, it may also be to judge the mail text and Attachments, confidence, etc., are jointly judged, etc., which are not specifically limited here.
当判断出邮件正文或者附件信息中包含图片标识时,电子设备即可根据图片标识,从预设的图片数据库中获取对应的图片数据,并根据图片数据所在的位置,确定图片数据对应的参数。When it is determined that the email body or attachment information contains a picture identifier, the electronic device can obtain the corresponding picture data from the preset picture database according to the picture marker, and determine the corresponding parameters of the picture data according to the location of the picture data.
其中,在本实施例中,预设的图片数据库可以是发送方和电子设备共用的。Wherein, in this embodiment, the preset picture database may be shared by the sender and the electronic device.
也就是说,当确定图片标识之后,电子设备即可在共用的图片数据库中获取到与图片标识对应的图片数据。That is to say, after the picture identifier is determined, the electronic device can acquire the picture data corresponding to the picture identifier in the shared picture database.
例如,图片标识为A,那么电子设备即可根据图片标识A从预设的图片数据库中,查找与图片标识A对应的图片数据A’。For example, if the picture ID is A, then the electronic device can search the picture data A' corresponding to the picture ID A from the preset picture database according to the picture ID A.
步骤304,根据图片数据所在的位置,确定图片数据对应的参数。Step 304, according to the location of the picture data, determine the parameters corresponding to the picture data.
其中,图片数据所在位置可以在邮件正文中,也可以在附件信息中,此处对其不作具体限定。Wherein, the location of the picture data can be in the email body or in the attachment information, which is not specifically limited here.
可选的,当图片数据所在位置不同时,图片数据对应的参数也不相同。因此,为了能够准确的确定图片数据对应的参数,本实施例可以根据图片数据所在位置,查询预设的位置与参数的对应关系表,确定图片数据对应的参数。Optionally, when the location of the image data is different, the parameters corresponding to the image data are also different. Therefore, in order to accurately determine the parameters corresponding to the picture data, in this embodiment, according to the location of the picture data, a preset correspondence table between positions and parameters may be queried to determine the parameters corresponding to the picture data.
步骤305,若附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,以生成邮件正文对应的第一编码数据及附件名称对应的第二编码数据。Step 305, if the attachment information includes the name of the attachment, encode the email body and the attachment name to generate first encoded data corresponding to the email body and second encoded data corresponding to the attachment name.
需要说明的是,本实施例中步骤302和步骤305的执行顺序,可以是先执行步骤302,然后再执行步骤305;或者,还可以是先执行步骤305,然后再执行步骤302;或者,也可以是同时执行步骤302和步骤305,本实施例对此不作具体限定。It should be noted that, the execution order of step 302 and step 305 in this embodiment may be that step 302 is executed first, and then step 305 is executed; or, step 305 is executed first, and then step 302 is executed; or, Step 302 and step 305 may be executed simultaneously, which is not specifically limited in this embodiment.
步骤306,根据图片数据对应的参数、第一编码数据、通讯数据及第二编码数据,生成待向邮件服务系统发送的邮件服务请求。Step 306: Generate a mail service request to be sent to the mail service system according to the parameters corresponding to the picture data, the first coded data, the communication data and the second coded data.
可选的,当确定出图片数据对应的参数之后,电子设备即可根据图片数据对应的参数、邮件正文对应的第一编码数据、附件名称对应的第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。Optionally, after determining the parameters corresponding to the picture data, the electronic device can generate the incoming mail according to the parameters corresponding to the picture data, the first coded data corresponding to the email body, the second coded data corresponding to the attachment name, and the communication data Email service request sent by the service system.
为了更清楚说明本实施例,下面结合示例进行具体说明。In order to describe this embodiment more clearly, specific descriptions will be given below in conjunction with examples.
若本实施例中,判断邮件正文中包含图片标识时,则电子设备根据该图片标识从预设的图片数据库中获取对应的图片数据,并根据预设的位置与参数的对应关系表,确定图片数据对应的参数。举例来说,若预设的正文中的图片数据对应的参数为embeddedCid,附件中的图片数据对应的参数为attachmentCid,则电子设备在根据任一图片数据所在的位置,确定该图片数据为正文中的图片数据时,则可以将该图片的名称改为相应的embeddedCid,以生成待向邮件服务系统发送的邮件服务请求。If in this embodiment, when it is determined that the email body contains a picture identifier, the electronic device obtains the corresponding picture data from the preset picture database according to the picture marker, and determines the picture data according to the preset correspondence table between positions and parameters. The parameters corresponding to the data. For example, if the parameter corresponding to the picture data in the preset text is embeddedCid, and the parameter corresponding to the picture data in the attachment is attachmentCid, then the electronic device determines that the picture data is located in the text according to the location of any picture data. When the image data is displayed, the name of the image can be changed to the corresponding embeddedCid to generate an email service request to be sent to the email service system.
本申请实施例提供的邮件处理方法,通过将邮件发送请求进行解析,以获取邮件发送请求中包含的通讯数据、邮件正文及附件信息,并判断邮件正文或附件信息中是否包含图片标识,若包含,则获取与图片标识对应的图片数据,并根据图片数据所在的位置,确定图片数据对应的参数,并且当附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,生成邮件正文及附件名称分别对应的编码数据,然后根据图片数据对应的参数、邮件正文及附件名称分别对应的编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,不仅保证了后续接收方能够正常显示邮件内容,避免出现乱码情况,而且还能实现在邮件服务中可以嵌入图片,以满足用户发送图片的需求,从而丰富邮件服务的功能,并且还能满足用户需求,提升了用户体验。The mail processing method provided by the embodiment of the present application obtains the communication data, mail text and attachment information contained in the mail sending request by parsing the mail sending request, and judges whether the mail text or the attachment information contains a picture logo. , the image data corresponding to the image ID is obtained, and the parameters corresponding to the image data are determined according to the location of the image data, and when the attachment information includes the name of the attachment, the email body and the attachment name are encoded to generate the email body and The encoded data corresponding to the attachment names, and then according to the parameters corresponding to the picture data, the encoded data and the communication data corresponding to the email text and attachment names, generate an email service request to be sent to the email service system. As a result, it not only ensures that the subsequent recipients can display the mail content normally and avoid garbled characters, but also realizes that pictures can be embedded in the mail service to meet the needs of users to send pictures, thereby enriching the functions of the mail service, and can also Meet user needs and improve user experience.
通过上述分析可知,本申请实施例通过确定邮件正文或附件信息包含图片标识,并获取与图片标识对应的图片数据,然后根据图片数据所在位置,确定图片数据对应参数,以根据图片数据对应的参数、第一编码数据、通讯数据及第二编码数据,生成待向邮件服务系统发送的邮件服务请求。Through the above analysis, it can be seen that the embodiment of the present application determines that the email body or attachment information contains the image identifier, and obtains the image data corresponding to the image identifier, and then determines the corresponding parameters of the image data according to the location of the image data, so that the parameters corresponding to the image data , the first coded data, the communication data and the second coded data to generate a mail service request to be sent to the mail service system.
在实际使用过程中,邮件发送请求中包含的附件信息中,还可能包含字符数据,此时为了提高邮件服务的处理速度,本实施例还可以对包含字符数据的附件信息进行转换处理。下面结合图4,对本申请实施例的邮件处理方法进行具体说明。In actual use, the attachment information contained in the mail sending request may also contain character data. In this case, in order to improve the processing speed of the mail service, this embodiment can also convert the attachment information containing character data. The mail processing method of the embodiment of the present application will be specifically described below with reference to FIG. 4 .
图4是根据本申请又一实施例示出的邮件处理方法的流程示意图。Fig. 4 is a schematic flowchart of a mail processing method according to another embodiment of the present application.
如图4所示,本申请实施例的邮件处理方法可以包括以下步骤:As shown in Figure 4, the mail processing method of the embodiment of the present application may include the following steps:
步骤401,对邮件的发送请求进行解析,获取发送请求中包含的通讯数据、邮件正文及附件信息。Step 401, analyzing the sending request of the mail, and obtaining the communication data, the text of the mail and the attachment information included in the sending request.
步骤402,判断附件信息中是否包含字符数据。Step 402, judging whether the attachment information contains character data.
可选的,可以通过对附加信息进行遍历操作,以判断附件信息中是否包含字符数据;或者,还可以通过其它方式,判断附件信息中是否包含字符数据等等,此处对其不作具体限定。Optionally, it is possible to determine whether the attachment information contains character data by traversing the additional information; or, it is also possible to determine whether the attachment information contains character data or the like through other methods, which are not specifically limited here.
步骤403,若包含,则将字符数据转化为文本文档,其中文本文档对应的参数用于指示该文本文档为附件。Step 403, if it is included, convert the character data into a text document, wherein the parameter corresponding to the text document is used to indicate that the text document is an attachment.
可以理解的是,本实施例通过将附件信息中包含的字符数据,转化为文本文档,以实现动态传入文本并生成附件,以将该附件进行发送操作的目的。It can be understood that, in this embodiment, the character data contained in the attachment information is converted into a text document, so as to achieve the purpose of dynamically passing in text and generating an attachment, so as to send the attachment.
步骤404,若附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,以生成邮件正文对应的第一编码数据及附件名称对应的第二编码数据。Step 404: If the attachment information includes the name of the attachment, encode the email body and the attachment name to generate first encoded data corresponding to the email body and second encoded data corresponding to the attachment name.
需要说明的是,本实施例中步骤402和步骤404的执行顺序,可以是先执行步骤402,然后再执行步骤404;或者,还可以是先执行步骤404,然后再执行步骤402;或者,也可以是同时执行步骤402和步骤404,本实施例对此不作具体限定。It should be noted that, the execution order of step 402 and step 404 in this embodiment may be that step 402 is executed first, and then step 404 is executed; or, step 404 is executed first, and then step 402 is executed; or, Step 402 and step 404 may be executed simultaneously, which is not specifically limited in this embodiment.
步骤405,根据文本文档对应的参数、第一编码数据、第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。Step 405: Generate a mail service request to be sent to the mail service system according to the parameters corresponding to the text document, the first coded data, the second coded data and the communication data.
本申请实施例提供的邮件处理方法,对邮件发送请求进行解析处理,获取发送请求中包含的通讯数据、邮件正文及附件信息之后,判断附件信息中是否包含字符数据,若包含,则将字符数据转化为文本文档,并当确定附件信息中包含附件的名称时,则将邮件正文及附件名称进行编码处理,以生成邮件正文及附件名称分别对应的编码数据,然后根据文本文档对应的参数、第一编码数据、第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,保证了后续接收方能够正常显示邮件内容,避免出现乱码情况,还能实现动态传入文本,并将文本转化成文本文档,以将文本文档作为附件进行发送操作,从而实现了对附件信息包含的内容进行编辑操作,提高了用户对邮件服务的满意度。The mail processing method provided by the embodiment of the present application analyzes and processes the mail sending request, and after obtaining the communication data, mail text and attachment information contained in the sending request, it is judged whether the attachment information contains character data, and if so, the character data Convert it into a text document, and when it is determined that the attachment information contains the name of the attachment, encode the email body and the attachment name to generate the encoding data corresponding to the email body and the attachment name, and then according to the corresponding parameters of the text document, the first The first coded data, the second coded data and the communication data generate a mail service request to be sent to the mail service system. In this way, it is ensured that the subsequent receiver can display the mail content normally, avoid garbled characters, and realize the dynamic input of text, and convert the text into a text document, so as to send the text document as an attachment, thereby realizing the attachment The content contained in the message can be edited, which improves the user's satisfaction with the mail service.
通过上述分析可知,本申请实施例通过将附件信息中包含的字符数据,转换为文本文档,并根据文本文档对应的参数、第一编码数据、第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。From the above analysis, it can be seen that the embodiment of the present application converts the character data contained in the attachment information into a text document, and generates an incoming mail service according to the parameters corresponding to the text document, the first encoded data, the second encoded data, and the communication data. Mail service request sent by the system.
在本申请的另一种可选的实现形式中,在生成待向邮件服务系统发送的邮件服务请求之后,本实施例还可将生成的邮件服务请求发送给邮件服务系统,以使邮件服务系统将邮件服务请求执行对应的发送操作。下面结合图5,对本申请实施例的邮件处理方法进行具体说明。In another optional implementation form of the present application, after generating the mail service request to be sent to the mail service system, this embodiment can also send the generated mail service request to the mail service system, so that the mail service system Perform the corresponding sending operation on the mail service request. The mail processing method of the embodiment of the present application will be specifically described below with reference to FIG. 5 .
图5是根据本申请再一实施例示出的邮件处理方法的流程示意图。Fig. 5 is a schematic flowchart of a mail processing method according to yet another embodiment of the present application.
如图5所示,本申请实施例的邮件处理方法可以包括以下步骤:As shown in Figure 5, the mail processing method of the embodiment of the present application may include the following steps:
步骤501,对邮件的发送请求进行解析,获取发送请求中包含的通讯数据、邮件正文及附件信息。Step 501: Parse the sending request of the mail, and obtain the communication data, the text of the mail and the attachment information contained in the sending request.
步骤502,若附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,以生成邮件正文对应的第一编码数据、及附件名称对应的第二编码数据。Step 502: If the attachment information includes the name of the attachment, encode the email body and the attachment name to generate first encoded data corresponding to the email body and second encoded data corresponding to the attachment name.
步骤503,根据预设的邮件服务参数、第一编码数据、第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。Step 503: Generate a mail service request to be sent to the mail service system according to the preset mail service parameters, the first coded data, the second coded data and the communication data.
步骤504,向邮件服务系统发送邮件服务请求。Step 504, sending a mail service request to the mail service system.
可选的,本实施例可以将生成的待向邮件服务系统发送的邮件服务请求,发送给邮件服务系统,以使邮件服务系统根据邮件服务请求中包含的通讯数据进行发送操作。Optionally, in this embodiment, the generated mail service request to be sent to the mail service system may be sent to the mail service system, so that the mail service system performs a sending operation according to the communication data included in the mail service request.
例如,邮件服务请求中包含的通讯数据中收件人信息为张三,则邮件服务系统可根据张三对应的地址信息,将邮件服务请求发送给张三。For example, if the recipient information in the communication data included in the mail service request is Zhang San, the mail service system can send the mail service request to Zhang San according to the address information corresponding to Zhang San.
步骤505,获取邮件服务系统返回的响应消息。Step 505, obtain the response message returned by the mail service system.
步骤506,根据通讯数据中的发件人信息,将响应消息返回至所述发件人。Step 506: Return a response message to the sender according to the sender information in the communication data.
可选的,当邮件服务系统将邮件服务请求进行发送之后,电子设备还可以接收到邮件服务系统返回的响应信息,并通过对响应信息进行解析处理,以确定邮件服务请求是否发送成功。Optionally, after the mail service system sends the mail service request, the electronic device may also receive the response information returned by the mail service system, and analyze and process the response information to determine whether the mail service request is sent successfully.
其中,在本实施例中,响应信息可以是响应码。也就是说,当获取到邮件服务系统返回的返回码之后,电子设备可以将该返回码与预设的校验码进行匹配,若匹配成功,则说明邮件服务发送成功;若匹配失败,则说明邮件服务发送出现异常,不能正常发送。Wherein, in this embodiment, the response information may be a response code. That is to say, after obtaining the return code returned by the mail service system, the electronic device can match the return code with the preset check code. If the match is successful, it means that the mail service is sent successfully; There is an exception in the sending of the mail service, and it cannot be sent normally.
进一步的,当确定邮件服务发送出现异常时,电子设备可以根据通讯数据中的发件人信息,将邮件异常发送异常的响应消息返回给发件人,以使发件人能够对出现发送异常的邮件进行检查修改操作,以提高邮件服务发送成功的几率。Further, when it is determined that an abnormality occurs in the sending of the mail service, the electronic device can return a response message of abnormal sending of the mail to the sender according to the sender information in the communication data, so that the sender can respond to the sending abnormality Check and modify the mail to improve the probability of successful sending of the mail service.
需要说明的是,在实际使用时,为了方便用户能够及时了解当前发送的邮件服务请求是否成功,本实施例在获取到邮件服务系统返回的响应消息,并确定出邮件服务发送成功时,还可以向通讯数据中的发件人发送邮件服务发送成功的提醒消息,以使发件人能够清楚知道邮件的发送状态。It should be noted that, in actual use, in order to facilitate the user to know in time whether the currently sent mail service request is successful, this embodiment can also be used when the response message returned by the mail service system is obtained and the mail service is successfully sent. To the sender in the communication data, the email service sends a successful reminder message, so that the sender can clearly know the delivery status of the email.
本申请实施例提供的邮件处理方法,根据预设的邮件服务参数,及邮件正文及附件名称分别对应的编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求之后,还可向邮件服务系统发送邮件服务,并获取邮件服务系统返回的响应消息,然后根据通讯数据中的发件人信息,将响应消息返回至发件人。由此,实现了发件人能够及时有效的掌握邮件服务的发送情况,从而当邮件服务发送出现异常时,能够及时有效的对发送异常的邮件服务进行调整,以提高邮件服务的发送成功几率。In the mail processing method provided by the embodiment of the present application, according to the preset mail service parameters, and the coded data and communication data corresponding to the mail body and attachment names respectively, after generating the mail service request to be sent to the mail service system, the mail service request can also be sent to the mail The service system sends the mail service, obtains the response message returned by the mail service system, and then returns the response message to the sender according to the sender information in the communication data. Thus, the sender can timely and effectively grasp the delivery status of the mail service, so that when the mail service is abnormally sent, the abnormal mail service can be adjusted in a timely and effective manner, so as to improve the success rate of the mail service.
为了实现上述实施例,本申请还提出了一种邮件处理装置。In order to realize the above embodiments, the present application also proposes a mail processing device.
图6是根据本申请一个实施例示出的邮件处理装置的结构示意图。Fig. 6 is a schematic structural diagram of a mail processing device according to an embodiment of the present application.
如图6所示,本申请的邮件处理装置包括:获取模块11、第一生成模块12、第二生成模块13。As shown in FIG. 6 , the mail processing device of the present application includes: an acquisition module 11 , a first generation module 12 , and a second generation module 13 .
其中,获取模块11用于对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据及邮件正文;Wherein, the obtaining module 11 is used to analyze the sending request of the mail, and obtain the communication data and the text of the mail contained in the sending request;
第一生成模块12用于将所述邮件正文进行编码处理,以生成所述邮件正文对应的第一编码数据;The first generating module 12 is configured to encode the email text to generate first encoded data corresponding to the email text;
第二生成模块13用于根据预设的邮件服务参数、所述第一编码数据及所述通讯数据,生成待向邮件服务系统发送的邮件服务请求。The second generation module 13 is used for generating a mail service request to be sent to the mail service system according to preset mail service parameters, the first coded data and the communication data.
可选的,在本申请的一个可选的实现方式中,邮件处理装置还包括:第二获取模块。Optionally, in an optional implementation manner of the present application, the mail processing apparatus further includes: a second acquiring module.
其中,第二获取模块用于从预设的邮件发送请求队列中获取所述邮件发送请求。Wherein, the second acquiring module is configured to acquire the email sending request from a preset email sending request queue.
可选的,在本申请的一个可选的实现方式中,所述发送请求中还包含附件信息;Optionally, in an optional implementation manner of the present application, the sending request further includes attachment information;
所述第二生成模块12具体用于:The second generating module 12 is specifically used for:
若所述附件信息中包含附件的名称,则将所述附件名称进行编码处理,以生成所述附件名称对应的第二编码数据;If the attachment information includes the name of the attachment, encoding the attachment name to generate second encoded data corresponding to the attachment name;
所述第二生成模块13具体用于:The second generating module 13 is specifically used for:
根据预设的邮件服务参数、所述第一编码数据、所述通讯数据及所述第二编码数据,生成待向邮件服务系统发送的邮件服务请求。A mail service request to be sent to a mail service system is generated according to preset mail service parameters, the first coded data, the communication data and the second coded data.
需要说明的是,前述对邮件处理方法实施例的解释说明也适用于该实施例的邮件处理装置,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanations of the embodiment of the mail processing method are also applicable to the mail processing device of this embodiment, and its implementation principles are similar, so details will not be repeated here.
本申请实施例提供的邮件处理装置,通过对邮件的发送请求进行解析,获取邮件发送请求中包括的通讯数据及邮件正文,将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据,并根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。The mail processing device provided in the embodiment of the present application analyzes the sending request of the mail, obtains the communication data and the text of the mail included in the sending request of the mail, and encodes the text of the mail to generate the first coded data corresponding to the text of the mail, And generate an email service request to be sent to the email service system according to the preset email service parameters, first coded data and communication data. Thus, by re-encoding the mail text, the recipients with different encoding systems and display mechanisms can display the mail content normally when sending and receiving mail, so that users can obtain accurate mail content , thereby improving the performance of the mail service and improving the user experience.
图7是根据本申请另一个实施例示出的邮件处理装置的结构示意图。Fig. 7 is a schematic structural diagram of a mail processing device according to another embodiment of the present application.
参照图7,本申请的邮件处理装置还包括:获取模块11、第一生成模块12、第二生成模块13、第一判断模块14、第三获取模块15、第一确定模块16。Referring to FIG. 7 , the mail processing device of the present application further includes: an acquisition module 11 , a first generation module 12 , a second generation module 13 , a first judgment module 14 , a third acquisition module 15 , and a first determination module 16 .
其中,获取模块11用于对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据、邮件正文及附件信息;Wherein, the obtaining module 11 is used to analyze the sending request of the mail, and obtain the communication data, mail text and attachment information contained in the sending request;
作为本申请的一种可选的实现方式,第一判断模块14用于判断所述邮件正文或附件信息中是否包含图片标识;As an optional implementation of the present application, the first judging module 14 is used to judge whether the email text or attachment information contains a picture identifier;
第三获取模块15用于若包含,则获取与所述图片标识对应的图片数据。The third acquiring module 15 is configured to acquire the picture data corresponding to the picture identifier if included.
第一确定模块16用于根据所述图片数据所在的位置,确定所述图片数据对应的参数;The first determination module 16 is used to determine the parameters corresponding to the picture data according to the location of the picture data;
第一生成模块12用于若所述附件信息包含附件的名称,则将所述邮件正文及所述附件名称进行编码处理,以生成所述邮件正文对应的第一编码数据、及附件名称对应的第二编码数据;The first generating module 12 is used to encode the email text and the attachment name if the attachment information includes the attachment name, so as to generate the first encoded data corresponding to the email text and the attachment name corresponding second coded data;
第二生成模块13具体用于根据预设的邮件服务参数、所述第一编码数据、所述通讯数据及所述第二编码数据,生成待向邮件服务系统发送的邮件服务请求。The second generating module 13 is specifically configured to generate a mail service request to be sent to the mail service system according to preset mail service parameters, the first coded data, the communication data and the second coded data.
需要说明的是,本实施例的邮件处理装置的实施过程和技术原理参见前述对第一方面实施例的邮件处理方法的解释说明,此处不再赘述。It should be noted that, for the implementation process and technical principles of the mail processing device of this embodiment, refer to the foregoing explanation of the mail processing method of the embodiment of the first aspect, and will not be repeated here.
本申请实施例提供的邮件处理装置,通过将邮件发送请求进行解析,以获取邮件发送请求中包含的通讯数据、邮件正文及附件信息,并判断邮件正文或附件信息中是否包含图片标识,若包含,则获取与图片标识对应的图片数据,并根据图片数据所在的位置,确定图片数据对应的参数,并且当附件信息包含附件的名称,则将邮件正文及附件名称进行编码处理,生成邮件正文及附件名称分别对应的编码数据,然后根据图片数据对应的参数、邮件正文及附件名称分别对应的编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,不仅保证了后续接收方能够正常显示邮件内容,避免出现乱码情况,而且还能实现在邮件服务中可以嵌入图片,以满足用户发送图片的需求,从而丰富邮件服务的功能,并且还能满足用户需求,提升了用户体验。The mail processing device provided by the embodiment of the present application analyzes the mail sending request to obtain the communication data, mail text and attachment information contained in the mail sending request, and judges whether the mail text or attachment information contains a picture logo, if it contains , the image data corresponding to the image ID is obtained, and the parameters corresponding to the image data are determined according to the location of the image data, and when the attachment information includes the name of the attachment, the email body and the attachment name are encoded to generate the email body and The encoded data corresponding to the attachment names, and then according to the parameters corresponding to the picture data, the encoded data and the communication data corresponding to the email text and attachment names, generate an email service request to be sent to the email service system. As a result, it not only ensures that the subsequent recipients can display the mail content normally and avoid garbled characters, but also realizes that pictures can be embedded in the mail service to meet the needs of users to send pictures, thereby enriching the functions of the mail service, and can also Meet user needs and improve user experience.
图8是根据本申请又一个实施例示出的邮件处理装置的结构示意图。Fig. 8 is a schematic structural diagram of a mail processing device according to another embodiment of the present application.
参照图8,本申请的邮件处理装置还包括:获取模块11、第一生成模块12、第二生成模块13、第二判断模块17、转化模块18。Referring to FIG. 8 , the mail processing device of the present application further includes: an acquisition module 11 , a first generation module 12 , a second generation module 13 , a second judgment module 17 , and a conversion module 18 .
其中,获取模块11用于对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据、邮件正文及附件信息;Wherein, the obtaining module 11 is used to analyze the sending request of the mail, and obtain the communication data, mail text and attachment information contained in the sending request;
作为本申请的一种可选的实现方式,第二判断模块17用于判断所述附件信息中是否包含字符数据;As an optional implementation of the present application, the second judging module 17 is used to judge whether the attachment information contains character data;
转化模块18用于若包含,则将所述字符数据转化为文本文档,其中所述文本文档对应的参数用于指示该文本文档为附件。The conversion module 18 is configured to convert the character data into a text document if included, wherein the parameter corresponding to the text document is used to indicate that the text document is an attachment.
第一生成模块12用于若所述附件信息包含附件的名称,则将所述邮件正文及所述附件名称进行编码处理,以生成邮件正文对应的第一编码数据及附件名称对应的第二编码数据;The first generating module 12 is used to encode the email body and the attachment name if the attachment information includes the attachment name, so as to generate the first encoding data corresponding to the email text and the second encoding corresponding to the attachment name data;
第二生成模块13用于根据文本文档对应的参数、所述第一编码数据、所述通讯数据及所述第二编码数据,生成待向邮件服务系统发送的邮件服务请求。The second generation module 13 is used to generate a mail service request to be sent to the mail service system according to the parameters corresponding to the text document, the first coded data, the communication data and the second coded data.
需要说明的是,本实施例的邮件处理装置的实施过程和技术原理参见前述对第一方面实施例的邮件处理方法的解释说明,此处不再赘述。It should be noted that, for the implementation process and technical principles of the mail processing device of this embodiment, refer to the foregoing explanation of the mail processing method of the embodiment of the first aspect, and will not be repeated here.
本申请实施例提供的邮件处理装置,对邮件发送请求进行解析处理,获取发送请求中包含的通讯数据、邮件正文及附件信息之后,判断附件信息中是否包含字符数据,若包含,则将字符数据转化为文本文档,并当确定附件信息中包含附件的名称时,则将邮件正文及附件名称进行编码处理,以生成邮件正文及附件名称分别对应的编码数据,然后根据文本文档对应的参数、第一编码数据、第二编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,保证了后续接收方能够正常显示邮件内容,避免出现乱码情况,还能实现动态传入文本,并将文本转化成文本文档,以将文本文档作为附件进行发送操作,从而实现了对附件信息包含的内容进行编辑操作,提高了用户对邮件服务的满意度。The mail processing device provided by the embodiment of the present application analyzes and processes the mail sending request, and after obtaining the communication data, mail text and attachment information included in the sending request, judges whether the attachment information contains character data, and if so, converts the character data to Convert it into a text document, and when it is determined that the attachment information contains the name of the attachment, encode the email body and the attachment name to generate the encoding data corresponding to the email body and the attachment name, and then according to the corresponding parameters of the text document, the first The first coded data, the second coded data and the communication data generate a mail service request to be sent to the mail service system. In this way, it is ensured that the subsequent receiver can display the mail content normally, avoid garbled characters, and realize the dynamic input of text, and convert the text into a text document, so as to send the text document as an attachment, thereby realizing the attachment The content contained in the message can be edited, which improves the user's satisfaction with the mail service.
图9是根据本申请再一实施例示出的邮件处理装置的结构示意图。Fig. 9 is a schematic structural diagram of a mail processing device according to yet another embodiment of the present application.
如图9所示,本申请的邮件处理装置包括:获取模块11、第一生成模块12、第二生成模块13、发送模块19、第四获取模块20、返回模块21。As shown in FIG. 9 , the mail processing device of the present application includes: an acquisition module 11 , a first generation module 12 , a second generation module 13 , a sending module 19 , a fourth acquisition module 20 , and a return module 21 .
其中,获取模块11用于对邮件的发送请求进行解析,获取所述发送请求中包含的通讯数据、邮件正文及附件信息;Wherein, the obtaining module 11 is used to analyze the sending request of the mail, and obtain the communication data, mail text and attachment information contained in the sending request;
第一生成模块12用于若所述附件信息包含附件的名称,则将所述邮件正文及所述附件名称进行编码处理,以生成邮件正文对应的第一编码数据、及附件名称对应的第二编码数据;The first generating module 12 is used to encode the email text and the attachment name if the attachment information includes the attachment name, so as to generate the first encoded data corresponding to the email text and the second encoding data corresponding to the attachment name. encoded data;
第二生成模块13用于根据预设的邮件服务参数、所述第一编码数据、所述通讯数据及所述第二编码数据,生成待向邮件服务系统发送的邮件服务请求。The second generating module 13 is used for generating a mail service request to be sent to the mail service system according to preset mail service parameters, the first coded data, the communication data and the second coded data.
可选的,在本申请的一个可选的实现方式中,发送模块19用于向所述邮件服务系统发送所述邮件服务请求;Optionally, in an optional implementation of the present application, the sending module 19 is configured to send the mail service request to the mail service system;
第四获取模块20用于获取所述邮件服务系统返回的响应消息;The fourth obtaining module 20 is used to obtain the response message returned by the mail service system;
返回模块21用于根据所述通讯数据中的发件人信息,将所述响应消息返回至所述发件人。The returning module 21 is used for returning the response message to the sender according to the sender information in the communication data.
需要说明的是,前述对邮件处理方法实施例的解释说明也适用于该实施例的邮件处理装置,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanations of the embodiment of the mail processing method are also applicable to the mail processing device of this embodiment, and its implementation principles are similar, so details will not be repeated here.
本申请实施例提供的邮件处理装置,根据预设的邮件服务参数,及邮件正文及附件名称分别对应的编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求之后,还可向邮件服务系统发送邮件服务,并获取邮件服务系统返回的响应消息,然后根据通讯数据中的发件人信息,将响应消息返回至发件人。由此,实现了发件人能够及时有效的掌握邮件服务的发送情况,从而当邮件服务发送出现异常时,能够及时有效的对发送异常的邮件服务进行调整,以提高邮件服务的发送成功几率。The mail processing device provided by the embodiment of the present application generates the mail service request to be sent to the mail service system according to the preset mail service parameters, and the coded data and communication data respectively corresponding to the mail body and the attachment name, and can also send the mail service request to the mail service system. The service system sends the mail service, obtains the response message returned by the mail service system, and then returns the response message to the sender according to the sender information in the communication data. Thus, the sender can timely and effectively grasp the delivery status of the mail service, so that when the mail service is abnormally sent, the abnormal mail service can be adjusted in a timely and effective manner, so as to improve the success rate of the mail service.
为了实现上述实施例,本申请还提出一种电子设备。In order to implement the above embodiments, the present application also proposes an electronic device.
图10是根据本申请一实施例示出的电子设备的结构示意图。图10显示的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device shown in FIG. 10 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
下面参考图10,其示出了适于用来实现本公开实施例的电子设备800的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、PDA(个人数字助理)、PAD(平板电脑)等等的移动终端以及诸如台式计算机等等的固定终端。图10示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 10 , it shows a schematic structural diagram of an electronic device 800 suitable for implementing the embodiments of the present disclosure. Electronic devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, PDAs (Personal Digital Assistants), PADs (Tablet Computers) and the like, and stationary terminals such as desktop computers and the like. The electronic device shown in FIG. 10 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
如图10所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储装置808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 10, an electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) Various appropriate actions and processes are executed by programs in the memory (RAM) 803 . In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are also stored. The processing device 801 , ROM 802 , and RAM 803 are connected to each other through a bus 804 . An input/output (I/O) interface 805 is also connected to the bus 804 .
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图10示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 807 such as a computer; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 10 shows electronic device 800 having various means, it is to be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 809 , or from storage means 808 , or from ROM 802 . When the computer program is executed by the processing device 801, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
需要说明的是,本实施例的电子设备的实施过程和技术原理参见前述对第一方面实施例的邮件处理方法的解释说明,此处不再赘述。It should be noted that, for the implementation process and technical principle of the electronic device in this embodiment, refer to the foregoing explanation of the mail processing method in the embodiment of the first aspect, and details are not repeated here.
本申请实施例提供的电子设备,通过对邮件的发送请求进行解析,获取邮件发送请求中包括的通讯数据及邮件正文,将邮件正文进行编码处理,以生成邮件正文对应的第一编码数据,并根据预设的邮件服务参数、第一编码数据及通讯数据,生成待向邮件服务系统发送的邮件服务请求。由此,实现了通过对邮件正文进行重新编码,以使具有不同编码系统和显示机制的接收方,对邮件进行收发操作时,均能正常的显示邮件内容,使得用户能够获取到准确的邮件内容,从而提高了邮件服务的性能,改善了用户使用体验。The electronic device provided in the embodiment of the present application obtains the communication data and the text of the mail included in the mail sending request by analyzing the sending request of the mail, and encodes the text of the mail to generate the first encoded data corresponding to the text of the mail, and Generate a mail service request to be sent to the mail service system according to the preset mail service parameters, first coded data and communication data. Thus, by re-encoding the mail text, the recipients with different encoding systems and display mechanisms can display the mail content normally when sending and receiving mail, so that users can obtain accurate mail content , thereby improving the performance of the mail service and improving the user experience.
为实现上述目的,本申请还提出一种计算机可读存储介质。To achieve the above purpose, the present application also proposes a computer-readable storage medium.
其中该计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时,以实现第一方面实施例所述的邮件处理方法。Wherein the computer-readable storage medium has a computer program stored thereon, and when the program is executed by the processor, the mail processing method described in the embodiment of the first aspect can be realized.
一种可选实现形式中,本实施例可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。In an optional implementation form, this embodiment may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF(射频)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural programming language—such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
为实现上述目的,本申请还提出一种计算机程序。其中当计算机程序被处理器执行时,以实现第一方面实施例所述的邮件处理方法。To achieve the above purpose, the present application also proposes a computer program. Wherein, when the computer program is executed by the processor, the mail processing method described in the embodiment of the first aspect is realized.
在本申请中,除非另有明确的规定和限定,术语“设置”、“连接”等术语应做广义理解,例如,可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In this application, unless otherwise clearly specified and limited, the terms "arrangement", "connection" and other terms should be understood in a broad sense, for example, it can be mechanical connection or electrical connection; it can be direct connection or through An indirect connection through an intermediary may be an internal communication between two elements or an interaction relationship between two elements, unless otherwise clearly defined. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application according to specific situations.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present application.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present application may be realized by hardware, software, firmware or a combination thereof. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limitations on the present application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811093609.2A CN109039876B (en) | 2018-09-19 | 2018-09-19 | Mail processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811093609.2A CN109039876B (en) | 2018-09-19 | 2018-09-19 | Mail processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109039876A true CN109039876A (en) | 2018-12-18 |
| CN109039876B CN109039876B (en) | 2021-01-08 |
Family
ID=64617204
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811093609.2A Active CN109039876B (en) | 2018-09-19 | 2018-09-19 | Mail processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109039876B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855555A (en) * | 2019-11-12 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Mail sending method, apparatus, device, and computer-readable storage medium |
| CN112104544A (en) * | 2020-09-08 | 2020-12-18 | 紫光云(南京)数字技术有限公司 | Method and device for sending dynamic mail based on Freemarker |
| CN112217710A (en) * | 2020-09-02 | 2021-01-12 | 陕西贝思诺信息科技有限公司 | E-mail receiving and sending method based on POP3 protocol |
| CN115038054A (en) * | 2022-01-27 | 2022-09-09 | 同方有云(北京)科技有限公司 | Automatic sending method and device for short messages and mails |
| CN116522893A (en) * | 2023-07-04 | 2023-08-01 | 宁德时代新能源科技股份有限公司 | Document generation method, device, equipment and storage medium |
| CN116743694A (en) * | 2022-03-02 | 2023-09-12 | 北京沃东天骏信息技术有限公司 | A method and device for email tracking |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060036691A1 (en) * | 2004-08-11 | 2006-02-16 | International Business Machines Corporation | Method, system, and computer program product for displaying message genealogy |
| CN201286115Y (en) * | 2008-10-20 | 2009-08-05 | 青岛海信移动通信技术股份有限公司 | E-mail customer terminal and mobile communication terminal |
| CN101937530A (en) * | 2010-08-26 | 2011-01-05 | 惠州Tcl移动通信有限公司 | Method and device for displaying information of email |
| CN102158819A (en) * | 2011-01-25 | 2011-08-17 | 华为终端有限公司 | Process method for mobile device to display E-mail, server and mobile device |
| CN102238095A (en) * | 2010-05-06 | 2011-11-09 | 阿里巴巴集团控股有限公司 | Transcoding method, device and system |
| CN103595615A (en) * | 2012-08-15 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Methods and terminals for sending and receiving E-mail |
| CN104361097A (en) * | 2014-11-21 | 2015-02-18 | 国家电网公司 | Real-time detection method for electric power sensitive mail based on multimode matching |
| US20170094073A1 (en) * | 2015-09-28 | 2017-03-30 | Oki Data Corporation | File transmission apparatus and image reading apparatus |
-
2018
- 2018-09-19 CN CN201811093609.2A patent/CN109039876B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060036691A1 (en) * | 2004-08-11 | 2006-02-16 | International Business Machines Corporation | Method, system, and computer program product for displaying message genealogy |
| CN201286115Y (en) * | 2008-10-20 | 2009-08-05 | 青岛海信移动通信技术股份有限公司 | E-mail customer terminal and mobile communication terminal |
| CN102238095A (en) * | 2010-05-06 | 2011-11-09 | 阿里巴巴集团控股有限公司 | Transcoding method, device and system |
| CN101937530A (en) * | 2010-08-26 | 2011-01-05 | 惠州Tcl移动通信有限公司 | Method and device for displaying information of email |
| CN102158819A (en) * | 2011-01-25 | 2011-08-17 | 华为终端有限公司 | Process method for mobile device to display E-mail, server and mobile device |
| CN103595615A (en) * | 2012-08-15 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Methods and terminals for sending and receiving E-mail |
| CN104361097A (en) * | 2014-11-21 | 2015-02-18 | 国家电网公司 | Real-time detection method for electric power sensitive mail based on multimode matching |
| US20170094073A1 (en) * | 2015-09-28 | 2017-03-30 | Oki Data Corporation | File transmission apparatus and image reading apparatus |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110855555A (en) * | 2019-11-12 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Mail sending method, apparatus, device, and computer-readable storage medium |
| CN110855555B (en) * | 2019-11-12 | 2023-04-07 | 深圳前海微众银行股份有限公司 | Email sending method, device, equipment and computer-readable storage medium |
| CN112217710A (en) * | 2020-09-02 | 2021-01-12 | 陕西贝思诺信息科技有限公司 | E-mail receiving and sending method based on POP3 protocol |
| CN112104544A (en) * | 2020-09-08 | 2020-12-18 | 紫光云(南京)数字技术有限公司 | Method and device for sending dynamic mail based on Freemarker |
| CN115038054A (en) * | 2022-01-27 | 2022-09-09 | 同方有云(北京)科技有限公司 | Automatic sending method and device for short messages and mails |
| CN115038054B (en) * | 2022-01-27 | 2023-05-26 | 同方有云(北京)科技有限公司 | Automatic sending method and device for short messages and mails |
| CN116743694A (en) * | 2022-03-02 | 2023-09-12 | 北京沃东天骏信息技术有限公司 | A method and device for email tracking |
| CN116522893A (en) * | 2023-07-04 | 2023-08-01 | 宁德时代新能源科技股份有限公司 | Document generation method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109039876B (en) | 2021-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109039876A (en) | Email processing method and device | |
| US9749462B2 (en) | Messaging interface based on caller of an incoming call | |
| CN104915835B (en) | Credit accounts creating device, system and method | |
| US10613717B2 (en) | Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image | |
| CN111434128A (en) | Chat-enabled messaging | |
| US10560405B2 (en) | Ensuring that all users of a group message receive a response to the group message | |
| US10447620B2 (en) | Structured communication framework | |
| US20230396707A1 (en) | Method and system for group communication across electronic mail users and feature phone users | |
| US9363217B2 (en) | Indicating in an electronic message whether a user has previously accessed content provided by a resource | |
| CN116244022A (en) | Comment processing method and device, electronic equipment and storage medium | |
| CN111240948A (en) | Experience data processing method and device, computer equipment and storage medium | |
| CN113595854B (en) | An information display method, device, electronic device and storage medium | |
| CN106027303B (en) | A method and device for obtaining credit information features | |
| EP3713183B1 (en) | Network interaction method, electronic device, client, and server | |
| CN116886659A (en) | Mail display method, mail display device, electronic equipment and computer readable medium | |
| CN114297373A (en) | Method, apparatus, medium, and program product for presenting mail | |
| CN110971633B (en) | Method for establishing communication, corresponding device and storage medium | |
| CN115314456A (en) | Interaction method and device and electronic equipment | |
| US20190068533A1 (en) | Acquiring attachments from data storage providers for use in electronic communications | |
| CN114979055B (en) | A method of message transmission | |
| CN114049208B (en) | Permission reminder method, device, equipment and storage medium | |
| US20140181224A1 (en) | Capability-based communications | |
| TW201511593A (en) | Method for providing message to mobile communication device | |
| CN117544662A (en) | An information notification method, device, equipment and storage medium | |
| US20190370154A1 (en) | Messaging systems with improved reliability |
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 | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20241015 Address after: 100190, 10th Floor, Building 4, Zijin Digital Park, Haidian District, Beijing, 1004 Patentee after: Beijing Feishu Technology Co.,Ltd. Country or region after: China Address before: 300000 Tianjin Binhai High-tech Zone Binhai Science Park, No. 39, No. 6 High-tech Road, 9-3-401 Patentee before: TIANJIN BYTEDANCE TECHNOLOGY Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right |