WO2010015172A1 - 一种邮件转换、获取方法、邮件服务器、客户端及系统 - Google Patents

一种邮件转换、获取方法、邮件服务器、客户端及系统 Download PDF

Info

Publication number
WO2010015172A1
WO2010015172A1 PCT/CN2009/072852 CN2009072852W WO2010015172A1 WO 2010015172 A1 WO2010015172 A1 WO 2010015172A1 CN 2009072852 W CN2009072852 W CN 2009072852W WO 2010015172 A1 WO2010015172 A1 WO 2010015172A1
Authority
WO
WIPO (PCT)
Prior art keywords
mail
conversion
target
module
server
Prior art date
Application number
PCT/CN2009/072852
Other languages
English (en)
French (fr)
Inventor
鲍洪庆
孙谦
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP09804472A priority Critical patent/EP2299634A4/en
Publication of WO2010015172A1 publication Critical patent/WO2010015172A1/zh
Priority to US13/017,528 priority patent/US20110125860A1/en

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/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Definitions

  • the present invention relates to the field of communications, and in particular, to a mail conversion and acquisition method, a mail server, a client, and a system.
  • the Internet Mail Access Protocol is a protocol for mailbox access.
  • the IMAP protocol can be used to manage the mail folders on the IMAP server on the client side, and the mail folder on the IMAP server on the client side. The management is the same as managing the local mail folder on the client.
  • the Internet Engineering Task Force IETF
  • extended the IMAP protocol so that users can use the CONVERT command of the IMAP protocol to convert the mail.
  • the CONVERT command can specify the conversion parameters and specify the multi-purpose Internet in the mail.
  • a conversion target format that is divided by Multipurpose Internet Mail Extensions (MIME).
  • MIME Multipurpose Internet Mail Extensions
  • the mail client connects to the IMAP server.
  • the mail client then gets a mailing list for a mail folder.
  • the mail client After obtaining the mailing list of a mail folder, the mail client performs the following steps:
  • the IMAP client sends a CONVERT command to request the conversion of a message
  • the IMAP server receives the CONVERT command and performs the requested conversion operation
  • the IMAP server sends the conversion result to the IMAP client.
  • the IMAP server returns the final response message.
  • the inventor of the present invention finds in the process of implementing the present invention:
  • the IMAP client converts the mail, it must first send a CONVERT conversion command to the server, and then wait for the conversion result returned by the server to obtain the converted mail content.
  • this method only converts the mail in real time, increasing user waiting time. For example, for messages containing more content to be converted, the IMAP client needs to wait a long time to get the converted message content.
  • the technical problem to be solved by the embodiments of the present invention is to provide a mail conversion and acquisition method, a mail server, a client, and a system. It can perform non-real-time conversion of emails, saving the time for client users to obtain converted emails.
  • an embodiment of the present invention provides a mail conversion method, including: receiving a mail;
  • the received mail is converted according to the instructions of the conversion operation (CONVERT) in the set mail filtering language (SIEVE).
  • an embodiment of the present invention provides a method for obtaining an email, including:
  • an embodiment of the present invention provides a mail server, including:
  • a receiving module configured to receive mail
  • a conversion module configured to convert the mail received by the receiving module according to an indication of a conversion operation in the set mail filtering language.
  • an embodiment of the present invention provides a mail client, including:
  • a login module configured to send a login request of the user to the mail server to log in to the server
  • a searching module configured to: after the user logs in to the mail server by using the login module, find the original mail
  • an obtaining module configured to determine whether there is a target mail associated with the original mail found by the searching module, and if the determination is yes, obtain the target mail according to the related information.
  • an embodiment of the present invention provides a mail system, including:
  • a mail server that can communicate with a mail client, where:
  • a mail server configured to receive the mail, and convert the received mail according to an indication of a conversion operation in the set mail filtering language, and associate the original mail before the conversion and the target mail formed after the conversion;
  • a mail client configured to send a user's login request to the mail server to log in to the server, and After the user logs in to the mail server, the original mail is found, and it is determined whether there is a target mail associated with the found original mail. If the determination is yes, the target mail is obtained according to the related information.
  • the embodiment of the present invention when the mail server receives the mail, the received mail is converted according to the indication of the conversion operation in the set SIEVE language, so that when the user obtains the converted mail through the client, the mail is not required to be requested in real time. Conversion. Therefore, the embodiment of the present invention can perform non-real-time conversion on the mail, and can save the time for the client user to obtain the converted mail.
  • FIG. 1 is a schematic structural diagram of a mail system according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural diagram of a mail server according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a mail client according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic flowchart of a mail conversion method according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic flowchart of a mail conversion method according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic flowchart of a method for acquiring a mail according to Embodiment 6 of the present invention.
  • a mail system according to an embodiment of the present invention may include a plurality of mail servers that can communicate with a mail client, wherein each mail server can be associated with multiple mail clients.
  • this embodiment illustrates an example in which the mail system includes a mail server and communicates with a mail client. As shown in Figure 1,
  • Mail server 1 for receiving mail, and converting the received mail according to the instruction of the conversion operation (CONVERT) in the set mail filtering language (SIEVE), and converting the original mail before the conversion
  • CONVERT the instruction of the conversion operation
  • SIEVE set mail filtering language
  • P0P3 Post Office Protocol 3
  • the user can log in to the mail server 1 through the client, and set the SIEVE script language for the mail conversion indication in the mail server 1.
  • the SIEVE script language includes mail conversion indication information, and the mail conversion indication information may include A message including a Graphics Interchange Format (GIF) is converted into an indication of a plurality of target format images, for example, setting an image in which the original image is a GIF into an image in a plurality of other formats, and multiple targets are The image is contained in a Multipurpose Internet Mail Extensions (MIME) called "multipart/related".
  • GIF Graphics Interchange Format
  • MIME Multipurpose Internet Mail Extensions
  • the mail client 2 is configured to send a login request of the user to the mail server to log in to the server 1. After the user logs in to the mail server 1, the mail client 2 finds the original mail and determines whether there is any association with the found original mail. The target mail, if judged as yes, obtain the target mail based on the associated information.
  • the mail client 2 may be a mail client that supports the IMAP protocol, or a client that supports P0P3.
  • the mail server when the mail server receives the mail sent by the external device, the mail server converts the received mail according to the instruction of the conversion operation in the preset SIEVE language, and converts the original mail before conversion and after the conversion.
  • the resulting target mail association enables the user to obtain the converted mail from the mail server through the client. In this way, non-real-time conversion of the mail can be performed on the one hand, and the time for the client user to obtain the converted mail can be saved on the other hand.
  • Another embodiment of the mail system of the present invention may include a mail server, a mail client, and an associated device.
  • the mail client has the same function as the client of the embodiment, and the mail server includes the mail receiving and converting function of the mail server of the embodiment.
  • the associated device is used to associate the original mail before the mail server conversion with the target mail formed after the conversion.
  • FIG. 2 is a schematic structural diagram of a mail server according to Embodiment 2 of the present invention.
  • the mail server of this embodiment includes at least a receiving module 30, a converting module 10, an associating module 20, and a storage module 31, wherein the receiving module 30 is configured to receive mail; and the converting module 10 is configured to The instruction of the SIEVE language CONVERT operation is performed to convert the received mail; the association module 20 is configured to associate the original mail before the conversion with the target mail formed after the conversion, and the storage module 31 is used to protect Save the set SIEVE language, the original mail before conversion, and the target mail formed after conversion.
  • the conversion module 10 can include a first conversion sub-module 11 for traversing operations in a loop (LOOP) extension of a set SIEVE language stored according to the storage module 31 (for— The indication of the CONVERT operation carried in every_part) converts the MIME in the received message.
  • SIEVE's LOOP extension can traverse each MIME part of the message, so that the CONVERT operation indication contained in the LOOP can modify each MIME part of the traversal to convert a type of MIME to the specified MIME type.
  • the CONVERT operation can include conversion parameters. For example, for image conversion, you can specify the original image format before conversion, the converted target image format, and specify the image size or display area size of the target image. The following is an example of a CONVERT operation in the LOOP extension of a SIEVE script:
  • Example 1 shows that the image data of the format "image/png" in the mail before conversion is converted into the target image of the format "image/ JPEG", and the size of the target image is specified as: the pixel width is 128, and the pixel length is 96, and specify that the converted target mail is stored in the storage module 31 with the mail folder name "INBOX" mail folder.
  • the original mail before the conversion still exists. Therefore, if you need to save the original mail in the specific implementation, you only need to keep the original mail before the conversion.
  • the storage module 31 may include a first storage sub-module (not shown), a second sub-memory module (not shown), and a third sub-memory module (not shown), wherein a storage submodule a block for storing the set SIEVE language; a second storage module for retaining the original mail before the conversion; and a third storage module for indicating according to the first storage operation in the set SIEVE language (for example, Copyinto "INBOX" in 1 saves the target message formed after conversion.
  • the conversion module 10 may include a second conversion submodule 12 for operating the CONVERT operation carried in the file storage operation (fi leinto) of the SIEVE language stored in the storage module 31. Instructs to convert the MIME in the received message.
  • the CONVERT operation added by the fi leinto of the SIEVE language can contain the following parameters:
  • Such a fileinto operation means that all of the original MIME data in the message that satisfies the CONVERT operation is converted to the specified target MIME type, and the converted generated message is saved to the specified mail folder.
  • Fi leinto convert " image/bmp” " image/jpg” "PIX- X,, “240 “ “PIX- Y” "320 “ "CONVERSION"
  • Example 2 shows that the image data of the format "image/bmp" in the message before conversion is converted to the format
  • the image in the "image/jpg” format is used as the target image of the target mail, and the target image is specified to have a pixel width of 240 and a pixel length of 320, and the converted target image is stored in the "CONVERSION" folder.
  • the user may also need to save the original message being converted.
  • another fi leinto operation can be used to achieve this.
  • the original fileinto operation is used in the SIEVE script to save the original message.
  • the Fi leinto operation is an example of how to save the original message using the Fi leinto operation:
  • an original mail can be converted into a plurality of different format target mails and stored in different mail folders. Assuming that the mail folders "mobileLarge” and “mobileSmall” are in the IMAP mail server, the following conversion operations can be performed. Indicates how to convert a message to two messages and save the original message.
  • the storage module 31 may include a fourth storage sub-module (not shown), a fifth storage sub-module (not shown), and a sixth storage sub-module (not shown).
  • the fourth storage submodule is configured to store the set SIEVE language
  • the fifth storage submodule is configured to save the target mail formed after the conversion according to the instruction of the CONVERT operation
  • the sixth storage submodule is configured to: The original mail before conversion is saved according to the instruction of the second storage operation in the set SIEVE language (such as Fileinto "INBOX" in Example 3).
  • the width and height of the target display area can also be used as conversion parameters to ensure that the converted image can be maintained.
  • the original aspect ratio in addition to the pixel width and pixel height of the target image as conversion parameters in the CONVERT operation, the width and height of the target display area can also be used as conversion parameters to ensure that the converted image can be maintained.
  • the advantage of converting the size of the target display area as a parameter is that the image can be made without distortion by changing the aspect ratio of the image.
  • the conversion parameters can be set as follows:
  • the parameter VIEW-X indicates the width of the target display area
  • the parameter VIEW-Y indicates the height of the target display area.
  • CONVERT operations that include VIEW-X, and VIEW-Y are as follows:
  • the specific conversion will determine the width and height of the target display area based on the above parameters, maintain the original aspect ratio of the image, and make the width or height of the image consistent with the target display area.
  • the above extension is made to CONVERT in the SIEVE script so that when converting an image, the size of the display area can be used as a conversion parameter.
  • the server can process according to the size of the original image during the specific conversion:
  • the image size is not changed during the conversion; if the aspect ratio of the original image is larger than the aspect ratio of the target display area, the aspect ratio of the original image is not changed during the conversion. And the converted width is equal to the width of the target display area;
  • the aspect ratio of the original image is smaller than the aspect ratio of the target display area, the aspect ratio of the original image is not changed during conversion, and the converted height is equal to the height of the target display area.
  • the association module 20 may further include a setting module 21 and an adding module 22, wherein: the setting module 21 is configured to set a first label for the original mail before the conversion, where the first label is used to indicate that the original mail has a corresponding target mail.
  • the first label may be a converted label.
  • the adding module 22 is configured to add a first data item to the original mail before the conversion, and associate the original mail with the target mail by using the first data item.
  • the first data item may be CONVERTED
  • the original mail and the target mail may be associated by carrying the ID information or the address information of the target mail in the CONVERTED data item.
  • the mail server may include, in addition to the conversion module 10 and the association module 20 and its submodules shown in FIG.
  • An extraction module (not shown) for extracting an exchangeable image file in the received mail
  • a generation module (not shown) for generating an Extensible Markup Language (XML) document in the target mail formed after the conversion module is converted to save the exchangeable image file extracted by the extraction module (Exchangeable Image Fi le Format , EXIF).
  • XML Extensible Markup Language
  • the target image when the target image does not support the EXIF information, the EXIF information contained in the original image is extracted, and an XML document is generated in the target image to save the EXIF information.
  • the MIME portion of the target image corresponding to the original image is replaced with a new multipart/related composite MIME format.
  • the composite MIME part contains a target image MIME part and a MIME part containing the above XML document data.
  • the mail server may include, in addition to the functional modules of the mail server shown in FIG.
  • the decompression module is configured to decompress the received mail according to the instruction of the set SIEVE language.
  • the unzip operation in the set SIEVE language indicates that the MIME type is "appl ication/x-zip-compressed", “appl ication/x-gzip", “appl ication/x-tar”. "The compressed data is decompressed, and the decompressed data is included in the converted MIME part of the mail. The type information of the MIME is filled in according to the decompressed file format.
  • SIEVE language with unzip operations is an example of a SIEVE language with unzip operations:
  • Example 4 shows that the original mail is decompressed.
  • FIG. 3 is a schematic structural diagram of a mail client according to Embodiment 3 of the present invention.
  • the mail client of the embodiment includes at least a login module 40, a search module 50, and an acquisition module 60, wherein the login module 40 is configured to log in to the mail server, and the search module 50 is configured to pass the user.
  • the login module 40 finds the mail.
  • the mail list can be viewed.
  • the mail identifier, subject, receiving time and label (including the present invention) can be checked.
  • the obtaining module 60 is configured to determine whether there is a target mail associated with the mail found by the searching module 50, and if the determination is yes, according to the related information Get the target message.
  • the further acquisition module 60 can include:
  • the first obtaining module 61 is configured to determine whether the original mail includes the first label, and if the determination is yes, obtain the first data item information of the original mail.
  • the first label may be a converted label, the first data.
  • the item may be a conversion data item (CONVERTED).
  • the CONVERTED data item may carry the ID information or the address information of the target mail, and associate the original mail with the target mail according to the ID information or the address information of the target mail.
  • the first obtaining module 61 can obtain the first data item information through the SIEVE language, and the SIEVE language is as follows:
  • the mail server responds to the request of the mail client to obtain the value of CONVERTED and provides the value of CONVERTED to the client */
  • the second obtaining module 62 is configured to obtain the target mail according to the first data item information acquired by the first obtaining module 61. For example, after the first obtaining module 61 in the example 5 obtains the ID information of the target mail, the second obtaining module 62 searches for the target mail by using the ID information of the target mail, and then obtains the target mail.
  • the received mail is converted according to the preset instruction of the CONVERT operation in the SIEVE language, and the original mail before the conversion is associated with the target mail formed after the conversion. So, when the user obtains the converted mail through the client in Figure 3, the converted mail can be obtained directly from the mail server. In this way, the mail can be converted in a non-real time, and on the other hand, the time for the client user to obtain the converted mail can be saved.
  • the embodiment of the present invention further provides a mail conversion method, which can be implemented on the mail server side of the embodiment of the present invention.
  • the mail conversion method includes:
  • the received mail is converted according to the instructions of the conversion operation (CONVERT) in the set mail filtering language (SIEVE).
  • CONVERT the instructions of the conversion operation
  • SIEVE set mail filtering language
  • the method of the embodiment of the present invention converts the received mail according to the instruction of the conversion operation in the set SIEVE language when the mail server receives the mail, so that when the user obtains the converted mail through the client, real time is not needed. Request mail conversion. Therefore, the embodiment of the present invention can perform non-real-time conversion on the mail, and can save the time for the client user to obtain the converted mail.
  • FIG. 4 is a schematic flowchart of a mail conversion method according to Embodiment 4 of the present invention. As shown in FIG. 4, the mail conversion method of this embodiment includes:
  • Step S100 receiving an email
  • Step S101 Convert the MIME in the received mail according to the instruction of the CONVERT operation carried in the for-ever-part operation in the LOOP extension of the set SIEVE language.
  • the SIEVE language may include the included image.
  • GIF Graphics Interchange Format
  • Step S102 retaining the original mail before the conversion
  • Step S103 saving the converted target mail according to the instruction of the first storage operation in the SIEVE language
  • the first storage operation may be Copyinto ⁇ INBOX" in Example 1 in the embodiment of the present invention.
  • the method of the embodiment of the present invention converts the received mail according to the instruction of the conversion operation in the set SIEVE language when the mail server receives the mail, so that when the user obtains the converted mail through the client, real time is not needed. Request mail conversion. Therefore, the embodiment of the present invention can perform non-real-time conversion on the mail, and can save the time for the client user to obtain the converted mail.
  • the method in this embodiment may further include:
  • the first label is used to indicate the target mail corresponding to the original mail;
  • the first label may be a converted label. Add the first data item to the original mail before the conversion, and associate the original mail with the target mail through the first data item.
  • the first data item may be CONVERTED
  • the original mail and the target mail may be associated by carrying the ID information or the address information of the target mail in the CONVERTED data item.
  • the converted mail can be directly obtained from the mail server according to the associated information, and the time for the user to obtain the mail is saved.
  • the method is similar and will not be described here. This does not require modifications to the original message.
  • FIG. 5 is a schematic flowchart of a mail conversion method according to Embodiment 5 of the present invention.
  • the method in this embodiment includes:
  • Step S200 receiving an email
  • Step S201 Convert the MIME in the received mail according to the indication of the CONVERT operation carried in the fi leinto operation of the set SIEVE language;
  • Step S202 according to the instruction of the CONVERT operation, save the target mail formed after the conversion; for example, according to Fileinto: convert “image/bmp” "image/jpg” “ ⁇ - ⁇ ” "240” " ⁇ - ⁇ ” "320
  • the last item in the "mobi leLarge” operation stores the destination message in the destination folder named "mobi leLarge”.
  • Step S203 Save the original mail before the conversion according to the indication of the second storage operation in the SIEVE language; for example, the second storage operation may be Fileinto "INBOX" in Example 3 in the embodiment of the present invention.
  • a first label is set for the original mail before the conversion, and the first label is used to indicate that the original mail has a corresponding target mail.
  • the first label may be a converted label.
  • Step S205 Add a first data item for the original mail before the conversion, and associate the original mail with the target mail by using the first data item.
  • the first data item may be CONVERTED
  • the original mail and the target mail may be associated by carrying the ID information or the address information of the target mail in the CONVERTED data item.
  • the method of the embodiment of the present invention converts the received mail according to the indication of the conversion operation in the set SIEVE language when the mail server receives the mail, so that when the user obtains the transfer through the client When changing mails, there is no need to request mail conversion in real time. Therefore, the embodiment of the present invention can perform non-real-time conversion on the mail, and can save the time for the client user to obtain the converted mail.
  • the mail server associates the original mail with the target mail when the mail is converted. When the user obtains the converted mail through the client, the mail server can directly obtain the converted mail from the mail server, thereby further saving the time for the user to obtain the mail.
  • the original mail that needs to be converted may include EXIF information.
  • EXIF information is processed in a specific manner. Specifically, the EXIF information in the original mail is extracted before the original mail is converted according to the instruction of the CONVERT operation, and an XML document is generated in the target mail formed after the conversion to save the extracted module.
  • EXIF information specifically, a new mult ipart/related composite MIME format can be set in the target email to save the converted MIME and XML documents.
  • the received mail may be a compressed file, and the mail may be decompressed before being converted.
  • the received mail may be decompressed according to the set SIEVE language indication. Processing, for example, by setting the unzip operation in the SIEVE language to indicate that the MIME type included in the beta 4 cow is "appl ication/xz ip-compressed,, "appl icat ion/x-gzip” , "appl icat ion The compressed data of /x-tar, etc. is decompressed.
  • the embodiment of the present invention further provides a method for obtaining a mail, and the method for obtaining the mail content may include:
  • the user logs in to the mail server through the client;
  • FIG. 6 is a schematic flowchart of a method for acquiring a mail according to Embodiment 6 of the present invention. As shown in FIG. 6, the mail obtaining method of this embodiment includes:
  • Step S300 the user logs in to the mail server through the client
  • Step S301 the mail is found.
  • the mail list can be viewed.
  • the mail identifier, subject, receiving time and label (including the mail) can be checked.
  • step S302 it is determined whether the found mail includes the first label. If the determination is yes, step S303 is performed. If the determination is no, step S301 is performed.
  • the first label may be a converted label.
  • Step S303 Acquire first data item information of the found mail.
  • the first data item may be CONVERTED.
  • Step S304 Acquire a target mail according to the first data item information.
  • the mail server can convert the received mail according to the preset SIEVE language indication when receiving the mail, and associate the original mail before the conversion and the target mail formed after the conversion.
  • the mail obtaining method according to the embodiment of the present invention logs in to the mail server and directly obtains the converted mail from the mail server, so that the mail can be non-real-time converted. On the other hand, it saves time for client users to get converted mail.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Description

一种邮件转换、 获取方法、 邮件服务器、 客户端及系统 技术领域
本发明涉及通信领域, 尤其涉及一种邮件转换、 获取方法、 邮件服务器、 客户端及系统。
背景技术
因特网邮件访问协议 (Internet Message Access Protocol , IMAP) 是一 种用于邮箱访问的协议, 使用 IMAP协议可以在客户端对 IMAP服务器上的邮件 夹进行管理, 且在客户端对 IMAP服务器上的邮件夹的管理跟管理客户端本地的 邮件夹相同。 随之, 互联网工程任务组 (Internet Engineering Task Force, IETF)对 IMAP协议进行扩展, 使用户可以使用一个 IMAP协议的 CONVERT命令 对邮件进行转换, CONVERT命令可以指定转换参数, 规定邮件中的多用途互联网 由 P件扩展 (Multipurpose Internet Mail Extensions , MIME ) 咅分的转换目标 格式。
现有技术中, 利用 IMAP协议的 CONVERT命令对邮件进行转换的方法具体如 下:
首先, 邮件客户端连接 IMAP服务器。
然后, 邮件客户端获取某个邮件夹的邮件列表。
在获取某个邮件夹的邮件列表后, 邮件客户端执行如下操作步骤:
1. IMAP客户端发送 CONVERT命令请求转换某个邮件;
2. IMAP服务器接收 CONVERT命令, 执行所请求的转换操作;
3. IMAP服务器将转换结果发送给 IMAP客户端;
4. IMAP服务器返回最终响应消息。
本发明的发明人在实现本发明的过程中发现: 现有技术中 IMAP客户端转换邮 件时, 必须先发送一个 CONVERT转换命令至服务器, 然后等待服务器返回的转 换结果后才能获得转换后的邮件内容。 但是, 这种方法只能对邮件进行实时转 换, 增加了用户等待时间。 比如, 对于包含待转换内容较多的邮件, IMAP客户 端需要等待较长的时间才能获得转换后的邮件内容。
发明内容 本发明实施例所要解决的技术问题在于, 提供一种邮件转换、 获取方法、 邮件服务器、 客户端及系统。 可对邮件进行非实时转换, 节省客户端用户获取 转换后邮件的时间。
为了解决上述技术问题, 本发明实施例提供了一种邮件转换方法, 包括: 接收邮件;
根据设定的邮件过滤语言 (SIEVE) 中的转换操作 (CONVERT) 的指示, 对 所述接收的邮件进行转换。
相应的, 本发明实施例提供了一种获取邮件的方法, 包括:
将用户的登录请求发送给邮件服务器以登录服务器;
找到原邮件;
判断是否存在与所述找到的原邮件相关联的目标邮件, 如果判断为是, 根 据所述关联信息获取所述目标邮件。
相应的, 本发明实施例提供了一种邮件服务器, 包括:
接收模块, 用于接收邮件;
转换模块, 用于根据设定的邮件过滤语言中的转换操作的指示, 对所述接 收模块接收的邮件进行转换。
相应的, 本发明实施例提供了一种邮件客户端, 包括:
登录模块, 用于将用户的登录请求发送给邮件服务器以登录服务器; 查找模块, 用于在所述用户通过所述登录模块登录所述邮件服务器后, 找 到原邮件;
获取模块, 用于判断是否存在与所述査找模块找到的原邮件相关联的目标 邮件, 如果判断为是, 根据所述关联信息获取所述目标邮件。
相应的, 本发明实施例提供了一种邮件系统, 包括:
可与邮件客户端通信的邮件服务器, 其中:
邮件服务器, 用于接收邮件, 并根据设定的邮件过滤语言中的转换操作的 指示, 对所述接收的邮件进行转换, 并关联转换前的原邮件和转换后形成的目 标邮件;
邮件客户端, 用于将用户的登录请求发送给邮件服务器以登录服务器, 并 在所述用户登录邮件服务器后, 找到原邮件, 判断是否存在与所述找到的原邮 件相关联的目标邮件, 如果判断为是, 根据所述关联信息获取所述目标邮件。
本发明实施例在邮件服务器接收到邮件时, 根据设定的 SIEVE 语言中的转 换操作的指示, 对接收的邮件进行转换, 这样当用户通过客户端获取转换后的 邮件时, 不需实时请求邮件转换。 因此, 本发明实施例可对邮件进行非实时转 换, 并可节省客户端用户获取转换后邮件的时间。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其它的附图。
图 1是根据本发明实施例一提供的邮件系统结构组成示意图;
图 2是根据本发明实施例二提供的邮件服务器结构组成示意图;
图 3是根据本发明实施例三提供的邮件客户端结构组成示意图;
图 4是根据本发明实施例四提供的邮件转换方法流程示意图;
图 5是根据本发明实施例五提供的邮件转换方法流程示意图;
图 6是根据本发明实施例六提供的邮件获取方法流程示意图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅是本发明一部分实施例, 而不是全 部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性 劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
图 1 是根据本发明实施例一提供的邮件系统结构组成示意图; 本发明实施 例的邮件系统可包括多个可与邮件客户端通信的邮件服务器, 其中每个邮件服 务器可与多个邮件客户端进行通信, 为方便叙述, 本实施例以邮件系统包括一 个邮件服务器且与一个邮件客户端进行通信举例说明。 如图 1所示,
邮件服务器 1, 用于接收邮件, 并根据设定的邮件过滤语言 (SIEVE) 中的 转换操作 (CONVERT) 的指示, 对接收的邮件进行转换, 并将转换前的原邮件和 转换后形成的目标邮件关联;具体实现中, 邮件服务器 1可为 IMAP邮件服务器、 还可以为邮局协议 3 ( Post Office Protocol 3, P0P3)邮件服务器。 用户可以 通过客户端登录所述邮件服务器 1,在所述邮件服务器 1中设定用于进行邮件转 换指示的 SIEVE脚本语言, SIEVE脚本语言中包含邮件转换指示信息, 邮件转换 指示信息中可包括对包含图像互换格式 (Graphics Interchange Format , GIF) 的邮件转换为多个目标格式图像的指示信息, 比如, 设定将原图像为 GIF 的图 像转换为多个其它格式的图像, 并且将多个目标图像包含在一个名称为 "multipart/related"的复合多用途互联网邮件扩展(Multipurpose Internet Mail Extensions, MIME) 中。
邮件客户端 2, 用于将用户的登录请求发送给邮件服务器以登录服务器 1, 当用户登录邮件服务器 1后, 邮件客户端 2找到原邮件, 并判断是否存在与所 述找到的原邮件相关联的目标邮件, 如果判断为是, 根据关联信息获取目标邮 件。 具体实现中, 邮件客户端 2可以是支持 IMAP协议的邮件客户端, 也可以是 支持 P0P3的客户端。
本实施例中, 当邮件服务器接收到外部设备发送的邮件时, 邮件服务器根 据预先设定的 SIEVE语言中的转换操作的指示, 对接收的邮件进行转换, 并将 转换前的原邮件和转换后形成的目标邮件关联, 使用户可以通过客户端, 从邮 件服务器获取转换后的邮件。 这样一方面可对邮件进行非实时转换, 另一方面 可节省客户端用户获取转换后邮件的时间。
本发明的邮件系统的另一个实施例可包括邮件服务器、 邮件客户端以及关 联装置, 邮件客户端与本实施例的客户端功能相同、 邮件服务器包括本实施例 邮件服务器的邮件接收及转换功能, 关联设备用于将邮件服务器转换前的原邮 件和转换后形成的目标邮件进行关联。
图 2是根据本发明实施例二提供的邮件服务器结构组成示意图。 如图 2所 示, 本实施例的邮件服务器至少包括接收模块 30、 转换模块 10、 关联模块 20, 以及存储模块 31, 其中, 接收模块 30, 用于接收邮件; 转换模块 10, 用于根据 设定的 SIEVE语言 CONVERT操作的指示, 对接收的邮件进行转换; 关联模块 20, 用于转换前的原邮件与转换后形成的目标邮件进行关联, 存储模块 31, 用于保 存设定的 SIEVE语言、 转换前的原邮件和转换后形成的目标邮件。
具体实现中, 转换模块 10可包括第一转换子模块 11, 该第一转换子模块 11用于根据述存储模块 31存储的设定的 SIEVE语言的循环(LOOP )扩展中的遍 历操作 (for— every— part ) 中携带的 CONVERT操作的指示, 对接收的邮件中的 MIME进行转换。 SIEVE的 LOOP扩展可以遍历邮件的每个 MIME部分, 这样包含 在 LOOP中的 CONVERT操作指示可对遍历的每个 MIME部分进行修改, 将一种类 型的 MIME转换为指定的 MIME类型。 CONVERT操作中可包含转换参数, 例如, 对 于图像转换可以指定转换前的原图像格式, 转换后的目标图像格式, 并可指定 目标图像的图像大小或者显示区域大小等。 下面是一个 SIEVE脚本的 LOOP扩展 中的 CONVERT操作的例子:
例 1 :
for— every— part if header: mime: contenttype: comparator "Content-Type"
"image/png" convert " image/png" "IMAGE/ JPEG" "PIX-X" 〃128"
〃PIX- Y" "96〃
}
Copyinto "INBOX"
例 1表示将转换前的邮件中格式为 " image/png"的图像数据转换为格式为 " image/ JPEG"格式的目标图像, 并且指定了目标图像的大小为: 像素宽度为 128, 像素长度为 96, 并指定将转换后的目标邮件存储到存储模块 31中邮件夹 名称为 "INBOX"邮件夹。 在采用 LOOP扩展时, 转换前的原邮件仍然存在, 因此, 具体实现中如果需要保存原邮件, 只需保留转换前的原邮件即可。
相应于第一转换子模块 11,存储模块 31可包括第一存储子模块(未图示)、 第二子存储模块 (未图示)、 第三子存储模块 (未图示), 其中, 第一存储子模 块, 用于存储设定的 SIEVE语言; 第二存储模块, 用于保留转换前的原邮件; 第三存储模块, 用于根据设定的 SIEVE语言中的第一存储操作的指示 (比如, 例 1中的 Copyinto "INBOX" ), 保存转换后形成的目标邮件。
具体实现中, 转换模块 10可包括第二转换子模块 12, 该第二转换子模块 12用于根据存储模块 31存储的设定的 SIEVE语言的文件存储操作 (fi leinto) 中携带的 CONVERT操作的指示,对接收的邮件中的 MIME进行转换。 SIEVE语言 的 fi leinto增加的 CONVERT操作可包含如下参数:
"原 MIME类型", 表示对原邮件中满足指定 MIME类型的 MIME数据进行转 换;
"目标 MIME类型", 表示将上述 MIME数据转换成此参数所表示的 MIME类型 格式;
"目标格式列表", 表示转换后的目标邮件的存储邮件夹。
这样的 fileinto操作表示将邮件中所有满足 CONVERT操作指定的原 MIME 数据都转换为指定的目标 MIME类型, 并将转换生成的邮件保存到指定的邮件夹 中。
下面是一个 SIEVE脚本的 fi leinto中的 CONVERT操作的例子:
例 2:
Fi leinto : convert " image/bmp" " image/jpg" "PIX- X,, "240 " "PIX- Y" "320 " "CONVERSION"
例 2表示将转换前的邮件中格式为 " image/bmp"的图像数据转换为格式为
" image/jpg"格式的图像作为目标邮件的目标图像, 并且指定目标图像的像素 宽度为 240, 像素长度为 320, 将转换后的目标图像存储在 "CONVERSION"邮 件夹中。
除采用 fileinto中的 CONVERT操作指示转换邮件以外, 用户还可能需要保 存被转换原邮件。 这时, 可使用另外一个 fi leinto操作来实现这一需求。 艮卩, 在 SIEVE 脚本中使用原的 fileinto 操作来保存原邮件, 下面是一个采用 Fi leinto操作指示如何保存原邮件的例子:
例 3: Fileinto : convert "image/bmp" "image/jpg" "PIX- X,, "240" "PIX- Y" "320" "CONVERSION"
Fileinto "INBOX"
具体实现中, 还可以将一个原邮件转换为多个不同的格式的目标邮件并存 放在不同的邮件夹中, 假定 IMAP 邮件服务器中有邮件夹 "mobileLarge" 和 "mobileSmall", 下面的转换操作可以指示如何将一个邮件转换为两个邮件并 保存原邮件。
Fileinto : convert "image/bmp" "image/jpg" "PIX- X" "240" "PIX- Y" "320" "mobileLarge"
Fileinto : convert "image/bmp" "image/jpg" "PIX- X" "128"
"PIX-Y" "128" "mobileSmall"
Fileinto "INBOX"
相应于所述第二转换子模块 12,所述存储模块 31可包括第四存储子模块 (未 图示)、 第五存储子模块(未图示)、 第六存储子模块 (未图示), 其中, 第四存 储子模块,用于存储设定的 SIEVE语言;第五存储子模块,用于根据所述 CONVERT 操作的指示, 保存转换后形成的目标邮件; 第六存储子模块, 用于根据设定的 SIEVE语言中的第二存储操作的指示 (比如例 3中的 Fileinto "INBOX" ), 保 存转换前的原邮件。
具体实现中, 对于图像转换过程, 除了按照 CONVERT操作中以目标图像的 像素宽度和像素高度作为转换参数外, 还可以以目标显示区域的宽度和高度作 为转换参数, 以保证转换后的图像能够保持原有的宽高比例。
以目标显示区域的大小作为参数进行转换的好处是可以不改变图像的长宽 比例, 图像不会失真。
转换参数可设定如下:
参数 VIEW-X, 表示目标显示区域宽度;
参数 VIEW-Y, 表示目标显示区域高度。
包含 VIEW-X, 和 VIEW-Y的 CONVERT操作举例如下:
CONVERT "image/bmp" "image/jpg" "VIEW-X" "320" "VIEW- Y,, " 240"
当 CONVERT操作规定了上述参数时, 具体转换将根据上述参数确定目标显 示区域的宽度和高度, 保持图像原有的宽高比例, 并使图像的宽度或高度与目 标显示区域一致。
对 SIEVE脚本中的 CONVERT进行上述扩展, 使得在转换图像时, 可以以显 示区域的大小为转换参数。 服务器在具体转换时可以根据原图像的大小进行处 理:
如果原图像的宽高均不超过目标显示区域的宽高, 转换时不改变图像大小; 如果原图像的宽高比例大于目标显示区域的宽高比例, 转换时不改变原图 像的宽高比例, 而使转换后的宽度等于目标显示区域的宽度;
如果原图像的宽高比例小于目标显示区域的宽高比例, 转换时不改变原图 像的宽高比例, 而使转换后的高度等于目标显示区域的高度。
相应的, 关联模块 20可进一歩包括设置模块 21和添加模块 22, 其中: 设置模块 21, 用于为转换前的原邮件设置第一标签, 第一标签用于指示原 邮件有对应的目标邮件; 具体实现中, 第一标签可为 converted标签。
添加模块 22, 用于为转换前的原邮件添加第一数据项, 通过第一数据项将 原邮件和目标邮件进行关联。具体实现中, 第一数据项可为 CONVERTED, 可通过 在 CONVERTED数据项中携带目标邮件的 ID信息或地址信息将原邮件和目标邮件 进行关联。
在本发明邮件服务器的其它实施例中, 邮件服务器除可包括图 2所示转换 模块 10和关联模块 20及其子模块以外, 还可以包括:
提取模块 (未图示), 用于提取接收的邮件中的可交换图像文件;
生成模块(未图示), 用于在转换模块转换后形成的目标邮件中生成一个可 扩展标记语言 (Extensible Markup Language, XML) 文档来保存提取模块提取 的可交换图像文件 (Exchangeable Image Fi le Format, EXIF)。
具体实现中, 当目标图像不支持 EXIF信息时, 将原图像中包含的 EXIF信 息抽取出来, 在目标图像中生成一个 XML文档来保存 EXIF信息。 目标图像中与 原始图像对应的 MIME部分用一个新的 multipart/related复合 MIME格式替代。 复合 MIME部分包含一个目标图像 MIME部分和一个包含上述 XML文档数据的 MIME 部分。
在本发明邮件服务器的其它实施例中, 邮件服务器除可包括图 2所示邮件 服务器的功能模块外, 还可以包括:
解压缩模块, 用于根据设定的 SIEVE语言的指示, 对接收的邮件进行解压 缩处理。
具体实现中, 可通过设定的 SIEVE语言中的 unzip操作指示对邮件中包含 MIME类型为 "appl ication/x- zip- compressed " , " appl ication/x-gzip", " appl ication/x-tar "等压缩数据进行解压縮处理, 将解压缩后的数据包含 在转换后的邮件 MIME部分中, MIME的类型信息根据解压缩后的文件格式填写。 下面是一个包含 unzip操作的 SIEVE语言的例子:
例 4:
f or— every— part if header : mime : contenttype: comparator "Content-Type"
" image/png" unzi }
例 4表示对原邮件进行解压缩处理。
图 3是根据本发明实施例三提供的邮件客户端结构组成示意图。 如图 3所 示, 本实施例的邮件客户端至少包括登录模块 40、 查找模块 50 以及获取模块 60, 其中, 登录模块 40, 用于供用户登录邮件服务器; 查找模块 50, 用于在用 户通过登录模块 40登录邮件服务器后, 找到邮件; 具体实现中, 当登录邮件服 务器后, 可查看邮件列表, 当查看某一邮件时, 可査看邮件的标识、 主题, 接 收时间及标签(包括本发明实施例的第一标签)。获取模块 60, 用于判断是否存 在与查找模块 50找到的邮件相关联的目标邮件, 如果判断为是, 根据关联信息 获取目标邮件。
进一步获取模块 60可包括:
第一获取模块 61, 用于判断原邮件是否包括第一标签, 如果判断为是, 获 取原邮件的第一数据项信息;具体实现中,第一标签可为转换标签(converted ) , 第一数据项可为转换数据项(CONVERTED ) , 具体实现中, CONVERTED数据项中可 携带目标邮件的 ID信息或地址信息, 根据该目标邮件的 ID信息或地址信息将 原邮件和目标邮件进行关联。 第一获取模块 61可通过 SIEVE语言获取第一数据 项信息, SIEVE语言举例如下:
例 5:
C : A654 FETCH 2 : 4 (CONVERTED) /*邮件客户端向邮件服务器发送获取
CONVERTED的值的请求 */
S : * 2 FETCH Λ邮件服务器响应邮件客户端获取 CONVERTED的值 的请求, 提供 CONVERTED的值给客户端 */
S : A654 OK FETCH completed (邮件服务器向邮件客户端发送响应成功 的信息)
第二获取模块 62,用于根据第一获取模块 61获取的第一数据项信息获取目 标邮件。 比如, 例 5中的第一获取模块 61获取目标邮件的 ID信息后, 第二获 取模块 62通过目标邮件的 ID信息查找目标邮件, 进而获取目标邮件。
具体实现中, 图 2 中邮件服务器接收到邮件时, 根据预先设定的 SIEVE语 言中 CONVERT操作的指示, 对接收的邮件进行转换, 并将转换前的原邮件与转 换后形成的目标邮件进行关联, 这样当用户通过图 3 中客户端获取转换后的邮 件时, 可直接从邮件服务器获取转换后的邮件。 这样一方面可对邮件进行非实 时转换, 另一方面可节省客户端用户获取转换后邮件的时间。
相应的, 本发明实施例还提供了邮件转换方法, 该邮件转换方法可以在本 发明实施例的邮件服务器侧实现, 具体的, 邮件转换方法包括:
接收邮件;
根据设定的邮件过滤语言 (SIEVE ) 中的转换操作 (CONVERT ) 的指示, 对 接收的邮件进行转换。 本发明实施例的方法当邮件服务器接收到邮件时, 根据设定的 SIEVE语言 中的转换操作的指示, 对接收的邮件进行转换, 这样当用户通过客户端获取转 换后的邮件时, 不需实时请求邮件转换。 因此, 本发明实施例可对邮件进行非 实时转换, 并可节省客户端用户获取转换后邮件的时间。
图 4是根据本发明实施例四提供的邮件转换方法流程示意图; 如图 4所示, 本实施例的邮件转换方法包括:
歩骤 S100, 接收邮件;
步骤 S101 , 根据设定的 SIEVE语言的 LOOP扩展中的 for— every— part操作 中携带的 CONVERT操作的指示,对接收的邮件中的 MIME进行转换;具体实现中, SIEVE语言中可包括对包含图像互换格式 (Graphics Interchange Format , GIF) 的邮件进行特定转换的指示信息, 比如, 设定将原图像为 GIF的图像转换为多 个其它格式的图像, 并且将多个目标图像包含在一个名称为 "multipart/related"的复合多用途互联网邮件扩展(Multipurpose Internet Mail Extensions, MIME) 中。
歩骤 S102, 保留转换前的原邮件;
歩骤 S103 , 根据 SIEVE语言中的第一存储操作的指示, 保存转换后的目标 邮件;
具体实现中, 第一存储操作可为本发明实施例中例 1 中的 Copyinto 〃 INBOX"。
本发明实施例的方法当邮件服务器接收到邮件时, 根据设定的 SIEVE语言 中的转换操作的指示, 对接收的邮件进行转换, 这样当用户通过客户端获取转 换后的邮件时, 不需实时请求邮件转换。 因此, 本发明实施例可对邮件进行非 实时转换, 并可节省客户端用户获取转换后邮件的时间。
较佳的, 本实施例的方法还可包括:
关联步骤 (未图示):
为转换前的原邮件设置第一标签; 第一标签用于指示原邮件对应的目标邮 件;
具体实现中, 第一标签可为 converted标签。 为转换前的原邮件添加第一数据项, 通过第一数据项将原邮件和目标邮件 进行关联。
具体实现中,第一数据项可为 CONVERTED,可通过在 CONVERTED数据项中携 带目标邮件的 ID信息或地址信息, 将原邮件和目标邮件进行关联。
将原邮件和目标邮件关联后, 当用户通过客户端获取转换后的邮件时, 可 直接根据关联信息从邮件服务器获取转换后的邮件, 进一歩节约用户获取邮件 的时间。
具体实现中, 也可以为目标邮件设置标签和数据项, 用来与原邮件进行关 联, 方法类似, 此处不再赘述。 这样不必对原邮件进行修改。
图 5是根据本发明实施例五提供的邮件转换方法流程示意图;
如图 5所示, 本实施例的方法包括:
歩骤 S200, 接收邮件;
歩骤 S201,根据设定的 SIEVE语言的 fi leinto操作中携带的 CONVERT操作 的指示, 对接收的邮件中的 MIME进行转换;
歩骤 S202, 根据 CONVERT操作的指示, 保存转换后形成的目标邮件; 比如, 可根据 Fileinto : convert " image/bmp" " image/jpg " "ΡΙΧ-Χ" "240 " "ΡΙΧ- Υ" "320" "mobi leLarge"操作中的最后一项, 将目标邮件存储在名 称为 "mobi leLarge" 的目标邮件夹中。
歩骤 S203 , 根据 SIEVE语言中的第二存储操作的指示, 保存转换前的原邮 件; 比如, 第二存储操作可为本发明实施例中的例 3中的 Fileinto " INBOX" 。
步骤 S204, 为转换前的原邮件设置第一标签, 第一标签用于指示原邮件有 对应的目标邮件; 具体实现中, 第一标签可为 converted标签。
步骤 S205, 为转换前的原邮件添加第一数据项, 通过第一数据项将原邮件 和目标邮件进行关联。
具体实现中,第一数据项可为 CONVERTED,可通过在 CONVERTED数据项中携 带目标邮件的 ID信息或地址信息, 将原邮件和目标邮件进行关联。
本发明实施例的方法当邮件服务器接收到邮件时, 根据设定的 SIEVE语言 中的转换操作的指示, 对接收的邮件进行转换, 这样当用户通过客户端获取转 换后的邮件时, 不需实时请求邮件转换。 因此, 本发明实施例可对邮件进行非 实时转换, 并可节省客户端用户获取转换后邮件的时间。 且本实施例邮件服务 器在转换邮件时将原邮件和目标邮件进行关联, 当用户通过客户端获取转换后 的邮件时, 可直接根据关联信息从邮件服务器获取, 进一步节约用户获取邮件 的时间。
具体实现中, 需要转换的原邮件中可能包括 EXIF信息, 则对包括 EXIF信 息的原邮件进行转换时,除需要通过 LOOP扩展或者 f i l einto中包含的 CONVERT 操作的指示进行邮件转换外, 还需要对 EXIF信息进行特定处理, 具体的, 可在 根据 CONVERT操作的指示对原邮件进行转换之前, 提取原邮件中的 EXIF信息, 并在转换后形成的目标邮件中生成一个 XML文档来保存提取模块提取的 EXIF信 息, 具体的可在目标邮件中设定一个新的 mult ipart/related复合 MIME格式保 存转换后形成的 MIME和 XML文档。
具体实现中, 接收到的邮件可能是压缩的文件, 则在对邮件进行转换之前 可先对其进行解压縮处理, 具体的, 可根据设定的 SIEVE语言的指示, 对接收 的邮件进行解压缩处理, 比如可通过设定的 SIEVE语言中的 unzip操作指示对 由 β 4牛 中 包含 MIME 类型为 " appl ication/x-z ip-compressed,, , " appl icat ion/x-gzip" , "appl icat ion/x-tar 〃等的压缩数据进行解压縮处理。
相应于本发明实施例的邮件转换方法, 本发明实施例还提供了获取邮件的 方法, 获取邮件内容的方法可包括:
用户通过客户端登录邮件服务器;
找到邮件;
判断是否存在与邮件相关联的目标邮件, 如果判断为是, 根据关联信息获 取目标邮件。
图 6是根据本发明实施例六提供的邮件获取方法流程示意图。 如图 6所示, 本实施例的邮件获取方法包括:
步骤 S300 , 用户通过客户端登录邮件服务器;
步骤 S301 , 找到邮件; 具体实现中, 当登录邮件服务器后, 可査看邮件列 表, 当查看某一邮件时, 可査看邮件的标识、 主题, 接收时间及标签 (包括本 发明实施例的第一标签)。
歩骤 S302 , 判断找到的邮件是否包括第一标签, 如果判断为是, 执行步骤 S303; 如果判断为否, 执行步骤 S301 ; 具体实现中, 第一标签可为 converted 标签。
步骤 S303 , 获取找到的邮件的第一数据项信息; 具体实现中, 第一数据项 可为 CONVERTED。
歩骤 S304, 根据第一数据项信息获取目标邮件。
根据本发明实施例的邮件转换方法, 邮件服务器可在接收到邮件时, 根据 预先设定的 SIEVE语言的指示, 对接收的邮件进行转换, 并关联转换前的原邮 件和转换后形成的目标邮件, 这样当客户端用户需要获取转换后的邮件时, 根 据本发明实施例的邮件获取方法登录邮件服务器, 直接从邮件服务器中转换好 的邮件中获取, 这样一方面可对邮件进行非实时转换, 另一方面可节省客户端 用户获取转换后邮件的时间。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 该程序可存储于一计算机可 读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其 中, 该存储介质可为磁盘、 光盘、 只读存储记忆体 (Read-Only Memory, ROM) 或随机存储记忆体 (Random Access Memory, RAM) 等。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技 术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这 些改进和润饰也视为本发明的保护范围。

Claims

权 利 要 求 书
1、 一种邮件转换方法, 其特征在于, 包括:
接收邮件;
根据设定的邮件过滤语言中的转换操作的指示, 对所述接收的邮件进行转 换, 以获得目标邮件。
2、 如权利要求 1所述的邮件转换方法, 其特征在于, 所述根据设定的邮件 过滤语言中的转换操作的指示, 对所述接收的邮件进行转换之后包括:
保存所述邮件和所述目标邮件。
3、 如权利要求 2所述的邮件转换方法, 其特征在于, 所述根据设定的邮件 过滤语言中的转换操作的指示, 对接收的邮件进行转换包括:
根据所述设定的邮件过滤语言的循环扩展中的遍历操作中携带的转换操作 的指示, 对接收的所述邮件中的多用途互联网邮件扩展进行转换。
4、 如权利要求 3所述的邮件转换方法, 其特征在于, 所述根据设定的邮件 过滤语言中的转换操作的指示, 对接收的邮件进行转换包括:
根据所述设定的邮件过滤语言的文件存储操作中携带的转换操作的指示, 对所述接收的邮件中的多用途互联网邮件扩展进行转换。
5、 如权利要求 3所述的邮件转换方法, 其特征在于, 所述保存所述邮件和 所述目标邮件包括:
在根据所述遍历操作中携带的转换操作的指示, 对所述接收的邮件中的多 用途互联网邮件扩展进行转换后, 保存所述邮件;
根据邮件过滤语言中的第一存储操作的指示, 保存所述目标邮件。
6、 如权利要求 5所述的邮件转换方法, 其特征在于, 所述第一存储操作为 复制操作, 所述复制操作用于指示所述目标邮件的存储路径。
7、 如权利要求 4所述的邮件转换方法, 其特征在于, 所述保存所述邮件和 所述目标邮件包括:
在根据所述存储操作中携带的转换操作的指示, 对接收的邮件中的多用途 互联网邮件扩展进行转换后, 保存所述目标邮件;
根据所述邮件过滤语言中的第二存储操作的指示, 保存所述邮件。
8、 如权利要求 7所述的邮件转换方法, 其特征在于, 所述第二存储操作为 原始存储操作, 所述原始存储操作用于指示所述原邮件的存储路径。
9、 如权利要求 1所述的邮件转换方法, 其特征在于, 还包括:
在对接收的邮件进行转换前, 提取所述邮件中的可交换图像文件; 在对所述邮件进行转换后, 在所述目标邮件中生成一个可扩展置标语言文 档来保存提取的可交换图像文件。
10、 如权利要求 1所述的邮件转换方法, 其特征在于, 还包括:
根据设定的邮件过滤语言的指示, 对所述邮件进行解压縮处理。
11、 如权利要求 10所述的邮件转换方法, 其特征在于, 所述根据设定的邮 件过滤语言的指示, 对所述邮件进行解压缩处理包括:
根据所述设定的邮件过滤语言的循环扩展中的遍历操作中携带的解压操作 的指示, 对所述邮件进行解压縮处理。
12、 如权利要求 1所述的邮件转换方法, 其特征在于, 还包括:
关联所述邮件与所述目标邮件。
13、 如权利要求 12所述的邮件转换方法, 其特征在于, 所述关联所述邮件 和所述目标邮件包括:
为转换前的所述邮件设置第一标签, 所述第一标签用于指示所述邮件有对 应的所述目标邮件;
为转换前的所述邮件添加第一数据项, 通过所述第一数据项将所述原邮件 和所述目标邮件进行关联。
14、 如权利要求 13所述的邮件转换方法, 其特征在于, 所述第一标签为转 换标签。
15、 如权利要求 13所述的邮件转换方法, 其特征在于, 所述第一数据项为 转换数据项。
16、 如权利要求 1-15中任一项所述的邮件转换方法, 所述邮件过滤语言包 括对包含图像互换格式的邮件转换为多个目标图像格式的指示信息。
17、 一种获取邮件的方法, 其特征在于, 包括:
将用户的登录请求发送给邮件服务器以登录服务器; 找到邮件;
根据判断是否存在与所述邮件相关联的目标邮件, 如果判断为是, 根据所 述邮件的关联信息获取所述目标邮件。
18、 如权利要求 17所述的获取邮件的方法, 其特征在于, 所述判断是否存 在与找到的所述邮件相关联的目标邮件, 如果判断为是, 根据所述邮件的关联 信息获取所述目标邮件包括:
判断所述原邮件是否包括第一标签, 如果判断为是, 获取所述邮件的第一 数据项信息;
根据所述第一数据项信息获取所述目标邮件。
19、 一种邮件服务器, 其特征在于, 所述邮件服务器包括:
接收模块, 用于接收邮件;
转换模块, 用于根据设定的邮件过滤语言中的转换操作的指示, 对所述接 收模块接收的所述邮件进行转换。
20、 如权利要求 19所述的邮件服务器, 其特征在于, 所述邮件服务器还包 括:
存储模块, 用于保存所述设定的邮件过滤语言、 所述邮件和所述目标邮件。
21、 如权利要求 20所述的邮件服务器, 其特征在于, 所述转换模块包括: 第一转换子模块, 用于根据所述存储模块存储的所述设定的邮件过滤语言 的循环扩展中的遍历操作中携带的转换操作的指示, 对接收的邮件中的多用途 互联网邮件扩展进行转换。
22、 如权利要求 20所述的邮件服务器, 其特征在于, 所述转换模块包括: 第二转换子模块, 用于根据所述存储模块存储的所述设定的邮件过滤语言 的存储操作中携带的转换操作的指示, 对所述邮件中的多用途互联网邮件扩展 进行转换。
23、 如权利要求 21所述的邮件服务器, 其特征在于, 所述存储模块包括: 第一存储子模块, 用于存储所述设定的邮件过滤语言;
第二存储子模块, 用于存储所述邮件;
第三存储子模块, 用于根据所述设定的邮件过滤语言中的第一存储操作的 指示, 存储所述目标邮件。
24、 如权利要求 22所述的邮件服务器, 其特征在于, 所述存储模块包括: 第四存储子模块, 用于存储所述设定的邮件过滤语言;
第五存储子模块, 用于根据所述转换操作的指示, 存储所述目标邮件; 第六存储子模块, 用于根据所述设定的邮件过滤语言中的第二存储操作的 指示, 存储所述邮件。
25、 如权利要求 19所述的邮件服务器, 其特征在于, 还包括:
提取模块, 用于提取所述邮件中的可交换图像文件;
生成模块, 用于在所述目标邮件中生成一个可扩展置标语言文档来保存所 述可交换图像文件。
26、 如权利要求 19所述的邮件服务器, 其特征在于, 所述的邮件服务器还 包括:
解压缩模块, 用于根据所述设定的邮件过滤语言的指示, 对接收的邮件进 行解压缩处理。
27、 如权利要求 19所述的邮件服务器, 其特征在于, 所述的邮件服务器还 包括:
关联模块, 用于关联所述邮件和所述目标邮件。
28、 如权利要求 27所述的邮件服务器, 其特征在于, 所述关联模块包括: 设置模块, 用于为所述邮件设置第一标签, 所述第一标签用于指示所述邮 件对应的目标邮件;
添加模块, 用于为所述邮件添加第一数据项, 通过所述第一数据项将所述 邮件和所述目标邮件进行关联。
29、 一种邮件客户端, 其特征在于, 所述邮件客户端包括:
登录模块, 用于将用户的登录请求发送给邮件服务器以登录服务器; 查找模块, 用于在所述用户通过所述登录模块登录所述邮件服务器后, 找 到邮件;
获取模块, 用于判断是否存在与所述査找模块找到的所述邮件相关联的目 标邮件, 如果判断为是, 根据所述邮件的关联信息获取所述目标邮件。
30、 如权利要求 29所述的邮件客户端, 其特征在于, 所述获取模块包括: 第一获取模块, 用于判断所述邮件是否包括第一标签, 如果包括, 获取所 述邮件的第一数据项信息;
第二获取模块, 用于根据所述第一数据项信息获取所述目标邮件。
31、 一种邮件系统, 其特征在于, 包括:
可与邮件客户端通信的邮件服务器, 其中:
邮件服务器, 用于接收邮件, 并根据设定的邮件过滤语言中的转换操作的 指示, 对所述接收的邮件进行转换, 将所述邮件和所述目标邮件关联;
邮件客户端, 用于将用户的登录请求发送给邮件服务器以登录服务器, 并 在所述用户登录邮件服务器后, 找到所述邮件, 判断是否存在与所述找到的所 述邮件相关联的所述目标邮件, 如果判断为是, 根据所述邮件的关联信息获取 所述目标邮件。
PCT/CN2009/072852 2008-08-07 2009-07-21 一种邮件转换、获取方法、邮件服务器、客户端及系统 WO2010015172A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP09804472A EP2299634A4 (en) 2008-08-07 2009-07-21 METHOD FOR CONVERTING AND OBTAINING POST, POSTSERVER, CLIENT WITH CORRESPONDING SYSTEM
US13/017,528 US20110125860A1 (en) 2008-08-07 2011-01-31 Mail conversion method, mail retrieval method, mail server, mail client and mail system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810030053A CN101645853A (zh) 2008-08-07 2008-08-07 一种邮件转换、获取方法、邮件服务器、客户端及系统
CN200810030053.2 2008-08-07

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/017,528 Continuation US20110125860A1 (en) 2008-08-07 2011-01-31 Mail conversion method, mail retrieval method, mail server, mail client and mail system

Publications (1)

Publication Number Publication Date
WO2010015172A1 true WO2010015172A1 (zh) 2010-02-11

Family

ID=41657575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072852 WO2010015172A1 (zh) 2008-08-07 2009-07-21 一种邮件转换、获取方法、邮件服务器、客户端及系统

Country Status (4)

Country Link
US (1) US20110125860A1 (zh)
EP (1) EP2299634A4 (zh)
CN (1) CN101645853A (zh)
WO (1) WO2010015172A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101844021B1 (ko) * 2011-04-06 2018-03-30 삼성전자주식회사 메시지 전송 방법 및 장치와 컴퓨터로 읽을 수 있는 저장 매체
FR2991538B1 (fr) * 2012-05-31 2015-04-24 Streamwide Procede de traitement de flux de donnees imap, serveurs de courriels et programmes d'ordinateur mettant en oeuvre de tels procedes
CN104144117B (zh) * 2014-07-29 2018-03-27 网来云商环球信息技术(武汉)有限公司 一种邮件的获取方法
US9531785B1 (en) * 2016-06-16 2016-12-27 Ox Software Gmbh Ad hoc injection of IMAP objects

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198948A1 (en) * 2001-06-26 2002-12-26 Acer Inc. Virtual email server system
CN1392315A (zh) * 2001-06-15 2003-01-22 杜安·威廉·贝克尔 用于支撑墙壁支柱的轨道装置及方法和墙壁框架组件
CN1396531A (zh) * 2001-07-16 2003-02-12 宏碁股份有限公司 电子邮件服务器系统
CN101179523A (zh) * 2007-12-04 2008-05-14 中兴通讯股份有限公司 一种统一存储媒体消息的系统和方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990514B1 (en) * 1999-09-03 2006-01-24 Cisco Technology, Inc. Unified messaging system using web based application server for management of messages using standardized servers
US7409425B2 (en) * 2003-11-13 2008-08-05 International Business Machines Corporation Selective transmission of an email attachment
US20070255792A1 (en) * 2006-04-26 2007-11-01 Momail, Ab Method and apparatus for an email gateway

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1392315A (zh) * 2001-06-15 2003-01-22 杜安·威廉·贝克尔 用于支撑墙壁支柱的轨道装置及方法和墙壁框架组件
US20020198948A1 (en) * 2001-06-26 2002-12-26 Acer Inc. Virtual email server system
CN1396531A (zh) * 2001-07-16 2003-02-12 宏碁股份有限公司 电子邮件服务器系统
CN101179523A (zh) * 2007-12-04 2008-05-14 中兴通讯股份有限公司 一种统一存储媒体消息的系统和方法

Also Published As

Publication number Publication date
US20110125860A1 (en) 2011-05-26
CN101645853A (zh) 2010-02-10
EP2299634A4 (en) 2011-06-22
EP2299634A1 (en) 2011-03-23

Similar Documents

Publication Publication Date Title
US9191347B2 (en) Methods of routing messages using a listener registry
EP1657869B1 (en) Server, server system, and e-mail delivery method
US20070180035A1 (en) E-mail attachment selectable download
US8799368B2 (en) Email server for processing a threshold number of email jobs for a given user and related methods
US20080294729A1 (en) Email object for open mobile alliance data synchronization usage
US20070072588A1 (en) System and method for reconciling email messages between a mobile wireless communications device and electronic mailbox
WO2010015172A1 (zh) 一种邮件转换、获取方法、邮件服务器、客户端及系统
WO2009097710A1 (zh) 文件的组织、检索方法、文件组织模块、系统及存储媒介
WO2012022083A1 (zh) 一种表情文件的传输方法及终端设备
US7792520B2 (en) Method of transmitting multimedia message in various service environments
JP2007213338A (ja) メールサーバおよび電子メール通信システム
CN101087268A (zh) 实现电子邮件通知的系统、方法和装置
WO2010105521A1 (zh) 邮件处理方法及设备
JP4704440B2 (ja) メール送受信プログラム、メール送受信方法およびメール送受信装置
JP5225366B2 (ja) 電子メール中継装置及び電子メール中継方法
JP2009188805A (ja) 電子メールシステム
JP2003030117A (ja) 電子メールサーバ、電子メール保存転送方法、プログラム、及び記憶媒体
JP4692558B2 (ja) メールシステム、サーバ装置、メール管理方法、プログラム、及び記録媒体
JP2000347968A (ja) メッセージ配信方法
JP4766025B2 (ja) 電子メール送受信システム
Liu Design and Implementation of e-mail Client Application
JP4261441B2 (ja) 電子メールの格納方法,格納システムおよび電子メールサーバ
JP2010193216A (ja) ネットワークシステム、該システムに用いられるデータ送受信方法及びデータ送受信制御プログラム
CN116911255A (zh) 一种将办公文档转换成pdf文档的方法
CN115580594A (zh) 一种电子邮件处理传输方法、系统和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09804472

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2009804472

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE