WO2012094864A1 - Method and device for managing mobile terminal mails - Google Patents

Method and device for managing mobile terminal mails Download PDF

Info

Publication number
WO2012094864A1
WO2012094864A1 PCT/CN2011/074571 CN2011074571W WO2012094864A1 WO 2012094864 A1 WO2012094864 A1 WO 2012094864A1 CN 2011074571 W CN2011074571 W CN 2011074571W WO 2012094864 A1 WO2012094864 A1 WO 2012094864A1
Authority
WO
WIPO (PCT)
Prior art keywords
attachment
file
mail
directory
uid
Prior art date
Application number
PCT/CN2011/074571
Other languages
French (fr)
Chinese (zh)
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 青岛海信移动通信技术股份有限公司
Publication of WO2012094864A1 publication Critical patent/WO2012094864A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Abstract

A method and device for managing mobile terminal mails is disclosed, and the method comprises: when a mail with attachments is received, creating a Unique Identifier (UID) directory named with the UID of the mail; downloading the first attachment of the mail from a mail server, creating a file for storing the attachments of the mail with the Identifier (ID) number of the first attachment, and storing the file under the UID directory. The method resolves the problem existing in the prior art of renaming attachments.

Description

一种管理移动终端邮件的方法和装置 本申请要求在 2011 年 01 月 11 日提交中国专利局、 申请号为 201110004534.8、 发明名称为"一种管理移动终端邮件的方法和装置"的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present invention claims to be a Chinese patent application filed on January 11, 2011 by the Chinese Patent Office, the application number is 201110004534.8, and the invention is entitled "A Method and Apparatus for Managing Mail of Mobile Terminals". Priority is hereby incorporated by reference in its entirety. Technical field
本发明涉及通信领域, 尤其涉及一种管理移动终端邮件的方法和装置。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for managing mail of a mobile terminal. Background technique
目前, 在 PC ( Personal Computer, 个人计算机)机上、 移动终端 (如手 机) 上以及其他设备上邮箱的使用越来越广泛, 针对移动终端用户, 只需要 用户开通移动终端邮箱业务即可实现邮件的收发功能, 移动终端邮箱业务是 指网络端服务器将发送到邮件服务器的邮件准实时的推送到用户的移动终 端, 用户可以阅读、 回复、 转发或撰写电子邮件; 目前邮件服务器主要包括 企业邮箱服务器和 139邮箱服务器。  At present, the use of mailboxes on PCs (Personal Computers), mobile terminals (such as mobile phones), and other devices is becoming more and more widespread. For mobile terminal users, only users need to open mobile terminal mailbox services to implement mail. Transceiver function, mobile terminal mailbox service means that the network server sends the mail sent to the mail server to the user's mobile terminal in real time, and the user can read, reply, forward or compose the email; the current mail server mainly includes the enterprise email server and 139 mailbox server.
目前, 移动终端邮箱业务的网络系统结构如图 1 所示, 邮件代理网关和 移动终端之间通过 CMPOP ( China Mobile Post Office Protocol, 中国移动邮局 协议)接口或 CMSMTP ( China Mobile Simple Mail Transfer Protocol , 中国移 动简单邮件传输协议)接口完成邮件的收发操作; 邮件代理网关和邮箱服务 器之间通过 POP3 ( Post Office Protocol 3, 邮局协议第三版本)接口、 IMAP4 ( Internet Message Access Protocol 4, 交互式数据消息访问协议第四个版本 ) 接口或 SMTP ( Simple Mail Transfer Protocol, 简单邮件传输协议)接口等完 成邮件的收发; 邮件推送网关和 CBOSS系统(即客户运营实体系统)的接口 用于开通移动终端邮箱业务; 企业邮箱服务器通过企业邮件代理网关与邮件 推送网关连接, 139邮箱服务器通过大众邮件代理网关与邮件推送网关连接; 移动终端通过其所归属的省际网关与邮件推送网关连接, 移动终端用户可以 是 GSM ( Global System for Mobile Communications, 全球移动通讯系统 ) 网 络、 GPRS ( General Packet Radio Service, 通用分组无线服务技术)网络或 3G 网络 ( 口 TD-SCDMA ( Time Division- Synchronous Code Division Multiple Access, 时分同步码分多址)) 中的用户。 At present, the network system structure of the mobile terminal mailbox service is shown in Figure 1. The mail proxy gateway and the mobile terminal pass the CMPOP (China Mobile Post Office Protocol) interface or CMSMTP (China Mobile Simple Mail Transfer Protocol, China). Mobile Simple Mail Transfer Protocol) interface to complete mail sending and receiving operations; POP3 (Post Office Protocol 3, Post Office Protocol 3) interface, IMAP4 (Internet Message Access Protocol 4, interactive data message access) between mail proxy gateway and mailbox server The fourth version of the protocol) interface or SMTP (Simple Mail Transfer Protocol) interface to complete the sending and receiving of mail; the interface of the mail push gateway and the CBOSS system (ie, the customer operating entity system) is used to open the mailbox service of the mobile terminal; The enterprise mailbox server is connected to the mail push gateway through the enterprise mail proxy gateway, and the 139 mailbox server is connected to the mail push gateway through the public mail proxy gateway; the mobile terminal connects with the mail push gateway through the inter-provincial gateway to which the mobile terminal belongs, Mobile terminal users can It is a GSM (Global System for Mobile Communications) network, a GPRS (General Packet Radio Service) network, or a 3G network (Time Division-Synchronous Code Division Multiple Access). User in code division multiple access)).
移动终端通过其邮件客户端接收邮件或发送邮件, 当移动终端的邮件客 户端接收到新邮件时, 可根据用户设置提醒用户有新邮件到达。 与 PC上的邮 件客户端相比, 移动终端的邮件客户端适合于移动终端操作系统的邮件客户 端版本, 移动终端邮件客户端和网络侧的服务器之间的协议是基于无线网络 优化设置的, 如釆用 POP3协议接收邮件, 釆用 SMTP协议发送邮件。  The mobile terminal receives the mail or sends the mail through its mail client. When the mail client of the mobile terminal receives the new mail, the user can be reminded to arrive at the new mail according to the user setting. Compared with the mail client on the PC, the mail client of the mobile terminal is suitable for the mail client version of the mobile terminal operating system, and the protocol between the mobile terminal mail client and the server on the network side is based on the wireless network optimization setting. If you use the POP3 protocol to receive mail, you can use the SMTP protocol to send mail.
目前, 为减少数据流量, 针对带有附件的邮件, 移动终端邮件客户端在 接收邮件时只接收邮件的正文, 邮件的附件需要用户根据需求单独进行下载; 当移动终端邮件客户端接收到附件时, 直接将附件存储至用户指定的位置; 若邮件中携带的附件在下载时需要转换成不同格式的附件时, 针对每种格式, 将该附件转换成该格式的附件, 并将格式转换后的附件存储至用户指定的位 置。 釆用目前的邮件管理方式, 存在以下技术问题: 一方面, 移动终端邮件 客户端在接收到附件时, 直接存储附件, 由于邮件中的附件的名称为发送端 用户命名, 可能会与移动终端本地存储的某一附件的名称相同, 因此, 可能 存在至少两个附件的命名重复的问题; 另一方面, 在对一个附件进行多种格 式的转换时, 对多种格式转换后得到的多个附件, 需要对每个附件进行单独 的存储操作可能已经存在相同命名的附件了, 此时在接收到该附件时, 会存 在命名重复的问题, 存储流程较为复杂、 存储效率较低; 并且, 附件进行格 式换后还是以该附件的名称存储, 因此, 仍然会存在与移动终端存储的其他 附件存在重复命名的问题。 发明内容  Currently, in order to reduce data traffic, for mail with attachments, the mobile terminal mail client only receives the body of the mail when receiving the mail, and the attachment of the mail needs to be downloaded separately by the user according to the demand; when the mail client of the mobile terminal receives the attachment , directly store the attachment to the location specified by the user; if the attachment carried in the email needs to be converted into an attachment of a different format when downloading, for each format, the attachment is converted into an attachment of the format, and the format is converted The attachment is stored to a location specified by the user. With the current mail management method, the following technical problems exist: On the one hand, the mobile terminal mail client directly stores the attachment when receiving the attachment, and the name of the attachment in the email is named by the sender user, and may be local to the mobile terminal. The name of an attached attachment is the same, so there may be a problem of naming duplicates of at least two attachments; on the other hand, when converting multiple formats of one attachment, multiple attachments obtained after conversion of multiple formats A separate storage operation is required for each attachment. The same named attachment may already exist. At this time, when the attachment is received, there may be a problem of duplicated names, the storage process is complicated, and the storage efficiency is low; and, the attachment is performed. The format is still stored under the name of the attachment, so there is still a problem of duplicate naming with other attachments stored by the mobile terminal. Summary of the invention
本发明提供一种管理移动终端邮件的方法和装置, 以提高接收附件的效 率和避免附件重命名的问题。 一种管理移动终端邮件的方法, 包括: The present invention provides a method and apparatus for managing mail of a mobile terminal to improve the efficiency of receiving attachments and avoiding the problem of attachment renaming. A method for managing mail of a mobile terminal, comprising:
接收带有附件的邮件, 并以所述邮件的 UID命名创建 UID目录; 从邮件服务器中下载所述邮件中的第一附件, 并根据所述第一附件的 ID 号建立用于存储所述邮件中的附件的文件, 并将所述文件存储在所述 UID 目 录中。  Receiving an email with an attachment, and creating a UID directory by using the UID of the email; downloading the first attachment in the email from the mail server, and establishing the email for storing the email according to the ID number of the first attachment The attached file in the file, and store the file in the UID directory.
一种管理移动终端邮件的装置, 包括:  A device for managing mail of a mobile terminal, comprising:
目录创建单元, 用于在接收带有附件的邮件时, 以所述邮件的 UID命名 创建 UID目录;  a directory creation unit, configured to: when receiving an email with an attachment, create a UID directory by using a UID of the email;
下载单元, 用于从邮件服务器中下载所述目录创建单元接收到的邮件中 的第一附件;  a downloading unit, configured to download, from the mail server, the first attachment in the mail received by the directory creating unit;
文件生成单元, 用于根据所述下载单元下载得到的第一附件的 ID号建立 用于存储所述邮件中的附件的文件, 并将所述文件存储在所述 UID目录中。  And a file generating unit, configured to establish, according to the ID number of the first attachment downloaded by the downloading unit, a file for storing an attachment in the mail, and store the file in the UID directory.
本发明实施例中, 接收带有附件的邮件, 并以所述邮件的 UID命名创建 UID目录; 从邮件服务器中下载所述邮件中的第一附件, 并根据所述第一附件 的 ID号建立用于存储所述邮件中的附件的文件,并将所述文件存储在所述 UID 目录中。 釆用本发明技术方案, 在接收到邮件时, 根据邮件的 UID创建 UID目 录, 且在接收到该邮件的附件时, 以该附件的 ID号建立用于存储附件的文件, 由于邮件的 UID用于唯一标识该邮件, 因此采用该邮件的 UID创建的 UID目录 为唯一的, 且附件的 ID号用于唯一标识该附件, 因此, 根据附件的 ID号建立 的文件为唯一的, 解决了现有技术中存在的附件的重命名问题, 节省了附件 重命名的处理流程, 从而提高了接收附件的效率。 附图说明  In the embodiment of the present invention, the mail with the attachment is received, and the UID directory is created by using the UID of the mail; the first attachment in the mail is downloaded from the mail server, and is established according to the ID number of the first attachment. A file for storing attachments in the mail and storing the files in the UID directory. According to the technical solution of the present invention, when receiving the mail, the UID directory is created according to the UID of the mail, and when the attachment of the mail is received, the file for storing the attachment is created with the ID number of the attachment, because the UID of the mail is used. The UID directory created by the UID of the e-mail is unique, and the ID number of the attachment is used to uniquely identify the attachment. Therefore, the file created according to the ID number of the attachment is unique, and the existing solution is solved. The problem of renaming attachments in the technology saves the processing flow of attachment renaming, thereby improving the efficiency of receiving attachments. DRAWINGS
图 1为现有技术中移动终端邮箱系统的架构图;  1 is a structural diagram of a mobile terminal mailbox system in the prior art;
图 2为本发明实施例中管理移动终端邮件的方法流程图;  2 is a flowchart of a method for managing a mail of a mobile terminal according to an embodiment of the present invention;
图 3为本发明实施例中判断附件是否存在的方法流程图;  3 is a flowchart of a method for determining whether an attachment exists in an embodiment of the present invention;
图 4为本发明实施例中下载附件的方法流程图; 图 5 为本发明实施例中管理移动终端邮件的装置的结构示意图。 具体实施方式 4 is a flowchart of a method for downloading an attachment according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of an apparatus for managing a mail of a mobile terminal according to an embodiment of the present invention. detailed description
针对现有技术存在的上述技术问题, 本发明实施例提供一种管理移动终 端邮件的方法和装置, 以提高接收附件的效率和避免附件重命名的问题, 该 方法包括: 接收带有附件的邮件, 并以所述邮件的 UID ( Unique Identifier, 惟一标识符)命名创建 UID 目录; 从邮件服务器中下载所述邮件中的第一附 件, 并根据所述第一附件的 ID号 (附件的 ID号用于唯一标识该附件 )建立 用于存储所述邮件中的附件的文件, 并将所述文件存储在所述 UID 目录中。 采用本发明技术方案, 在接收到邮件时, 根据邮件的 UID创建 UID目录, 且 在接收到该邮件的附件时, 以该附件的 ID号建立用于存储附件的文件, 由于 邮件的 UID用于唯一标识该邮件,因此采用该邮件的 UID创建的 UID目录为 唯一的, 且附件的 ID号用于唯一标识该附件, 因此, 才艮据附件的 ID号建立 的文件为唯一的, 解决了现有技术中存在的附件的重命名问题, 节省了附件 重命名的处理流程, 从而提高了接收附件的效率。  For the above technical problem existing in the prior art, an embodiment of the present invention provides a method and apparatus for managing a mail of a mobile terminal, so as to improve the efficiency of receiving an attachment and avoiding the problem of attachment renaming, the method includes: receiving an email with an attachment And creating a UID directory by using a UID (Unique Identifier) of the mail; downloading the first attachment in the mail from the mail server, and according to the ID number of the first attachment (the ID number of the attachment) A file for uniquely identifying the attachment) for storing an attachment in the mail, and storing the file in the UID directory. According to the technical solution of the present invention, when receiving the mail, the UID directory is created according to the UID of the mail, and when the attachment of the mail is received, the file for storing the attachment is created with the ID number of the attachment, because the UID of the mail is used for Uniquely identifies the email, so the UID directory created by the UID of the email is unique, and the ID number of the attachment is used to uniquely identify the attachment. Therefore, the file created according to the ID number of the attachment is unique, and the current solution is solved. The problem of renaming attachments that exist in the technology saves the processing flow of attachment renaming, thereby improving the efficiency of receiving attachments.
下面结合说明书附图对本发明技术方案进行详细的描述。  The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 2, 为本发明实施例中管理移动终端邮件的方法流程图, 该方法包 括:  Referring to FIG. 2, it is a flowchart of a method for managing a mail of a mobile terminal according to an embodiment of the present invention, where the method includes:
步骤 201、 接收带有附件的邮件, 并以所述邮件的 UID命名创建 UID 目 录。  Step 201: Receive an email with an attachment, and create a UID directory by using the UID of the email.
步骤 202、 从邮件服务器中下载所述邮件中的第一附件。  Step 202: Download the first attachment in the mail from the mail server.
步骤 203、 根据所述第一附件的 ID号建立用于存储所述邮件中的附件的 文件, 并将所述文件存储在所述 UID目录中。  Step 203: Establish a file for storing an attachment in the mail according to the ID number of the first attachment, and store the file in the UID directory.
较佳地, 上述步骤 202还可以包括步骤: 从邮件服务器中下载所述第一 附件之前, 判断是否需要对所述第一附件进行格式转换, 并在确定需要对所 述第一附件进行格式转换时, 从所述邮件服务器中获取与所述第一附件对应 的至少一个附件描述文件, 并将获取的所述至少一个附件描述文件存储在临 时文件中, 一个附件描述文件对应一种文件转换格式。 Preferably, the foregoing step 202 may further include the following steps: before downloading the first accessory from the mail server, determining whether format conversion is needed for the first accessory, and determining that the first accessory needs to be format converted Obtaining at least one attachment description file corresponding to the first attachment from the mail server, and storing the acquired at least one attachment description file in the temporary In the time file, an attachment description file corresponds to a file conversion format.
较佳地, 上述临时文件可以是 tmp文件。  Preferably, the temporary file may be a tmp file.
较佳地, 上述流程步骤 202 中, 从邮件服务器中下载所述邮件带有的第 一附件, 包括: 针对所述至少一个附件描述文件中的每个待解析附件描述文 件, 对该待解析附件描述文件进行解析, 并根据解析结果将所述第一附件转 换成相应文件转换格式的第二附件, 该第二附件与所述待解析附件描述文件 对应; 以及, 下载与所述至少一个附件描述文件对应的各第二附件。  Preferably, in the process step 202, the first attachment that is included in the mail is downloaded from the mail server, and the method includes: for each at least one attachment description file, the attachment description file to be parsed, the attachment to be parsed Descriptive file is parsed, and the first attachment is converted into a second attachment of a corresponding file conversion format according to the parsing result, the second attachment is corresponding to the to-be-parsed attachment description file; and, the download and the at least one attachment description are Each second attachment corresponding to the file.
较佳地, 上述流程步骤 203中, 根据所述第一附件的 ID号建立用于存储 所述邮件中的附件的文件, 包括:  Preferably, in the foregoing process step 203, the file for storing the attachment in the mail is established according to the ID number of the first attachment, and includes:
当所述第一附件对应的附件描述文件为一个时 , 以所述第一附件的 ID号 命名, 建立用于存储与该附件描述文件对应的第二附件的文件; 和 /或,  When the attachment description file corresponding to the first attachment is one, named by the ID number of the first attachment, a file for storing a second attachment corresponding to the attachment description file is established; and/or,
当所述第一附件对应的附件描述文件为多个时, 以所述第一附件的 ID号 命名, 建立 ID目录, 所述 ID目录为所述 UID目录的子目录; 针对每个附件 描述文件对应的第二附件, 以该第二附件的 ID号命名建立用于存储该第二附 件的文件, 并将该文件存储在所述 ID目录中。  When the attachment description file corresponding to the first attachment is multiple, the ID directory is named by the ID number of the first attachment, and the ID directory is a subdirectory of the UID directory; Corresponding second attachment, the file for storing the second attachment is created by the ID number of the second attachment, and the file is stored in the ID directory.
较佳地, 上述流程步骤 202中, 还可以包括步骤: 在对所述至少一个附 件描述文件对应的第二附件均下载完毕时, 删除所述临时文件。  Preferably, in the foregoing process step 202, the method may further include the step of: deleting the temporary file when the second attachment corresponding to the at least one attachment description file is downloaded.
较佳地, 上述流程步骤 202中, 当确定不需要对所述第一附件进行格式 转换时, 从邮件服务器中下载所述第一附件;  Preferably, in the foregoing process step 202, when it is determined that the first accessory is not required to be format converted, the first accessory is downloaded from the mail server;
上述流程步骤 203 中, 根据所述第一附件的 ID号建立用于存储所述邮 件中的附件的文件, 包括: 对所述第一附件进行解码, 并以所述第一附件的 ID号命名建立用于存储所述第一附件的文件。  In the foregoing process step 203, the file for storing the attachment in the mail is established according to the ID number of the first attachment, including: decoding the first attachment, and naming the ID number of the first attachment A file is created for storing the first attachment.
较佳地, 上述流程还可以包括:  Preferably, the foregoing process may further include:
步骤 204、在确定需要删除所述邮件时,删除所述邮件对应的 UID目录。 本发明实施例中,还可以针对邮件的 UID目录中是否存在邮件中带有的 附件进行详细的描述, 可如图 3 所示的流程图; 以及, 还可以对下载邮件中 的附件进行详细的描述, 可如图 4所示的流程图。 参见图 3 , 为本发明实施例中判断附件是否存在的方法流程图, 该方法 包括: Step 204: When it is determined that the mail needs to be deleted, delete the UID directory corresponding to the mail. In the embodiment of the present invention, the attachment in the mail in the UID directory may be described in detail, which may be as shown in the flowchart of FIG. 3; and the attachment in the download email may also be detailed. Description, the flow chart shown in Figure 4. 3 is a flowchart of a method for determining whether an accessory exists in an embodiment of the present invention, where the method includes:
步骤 301、 获取邮件的 UID号和该邮件中带有的附件的 ID号。  Step 301: Obtain the UID number of the mail and the ID number of the attachment in the mail.
步骤 302、判断是否需要对所述附件进行格式转换,需要时执行步骤 303 , 否则执行步骤 308。  Step 302: Determine whether the accessory needs to be format converted, and if necessary, perform step 303; otherwise, perform step 308.
步骤 303、 判断该附件的 tmp文件是否存在, 若存在执行步骤 307 , 若 不存在执行步骤 304。  Step 303: Determine whether the tmp file of the accessory exists. If there is an execution step 307, if there is no execution step 304.
步骤 304、 判断所述邮件对应的 UID 目录中是否存在以所述附件的 ID 号命名的目录, 若有则执行步骤 305, 否则执行步骤 307。  Step 304: Determine whether there is a directory named by the ID number of the attachment in the UID directory corresponding to the mail, if yes, go to step 305, otherwise go to step 307.
步骤 305、判断以所述附件的 ID号命名的目录是否为空, 若为空则执行 步骤 307 , 若不为空则执行步骤 306。  Step 305: Determine whether the directory named by the ID number of the attachment is empty. If yes, perform step 307. If not, perform step 306.
步骤 306、 确定附件存在。  Step 306: Determine that an attachment exists.
步骤 307、 确定附件下载未完成, 不存在该附件。  Step 307: Determine that the attachment download is not completed, and the attachment does not exist.
步骤 308、 判断所述邮件对应的 UID 目录中是否存在以附件的 ID号命 名的文件, 若存在则执行步骤 309, 若不存在则执行步骤 310。  Step 308: Determine whether there is a file named with the ID number of the attachment in the UID directory corresponding to the mail, if yes, execute step 309, if not, execute step 310.
步骤 309、 确定附件存在。  Step 309: Determine that an attachment exists.
步骤 310、 确定附件不存在。  Step 310: Determine that the attachment does not exist.
参见图 4, 为本发明实施例中下载附件的方法流程图, 该方法包括: 步骤 401、 获取邮件的 UID号和该邮件中带有的附件的 ID号, 并以所 述邮件的 UID号命名建立 UID目录。  Referring to FIG. 4, which is a flowchart of a method for downloading an attachment according to an embodiment of the present invention, the method includes: Step 401: Obtain a UID number of an email and an ID number of an attachment included in the email, and name the UID of the email. Create a UID directory.
步骤 402、 判断是否已经下载所述附件, 若是则执行步骤 403 , 若否则 执行步骤 404。  Step 402: Determine whether the accessory has been downloaded, if yes, execute step 403, if otherwise, perform step 404.
步骤 403、 显示附件列表。  Step 403: Display an attachment list.
步骤 404、 判断是否需要对所述附件进行格式转换, 若需要则执行步骤 409〜步骤 413 , 若不需要则执行步骤 405~408。  Step 404: Determine whether the accessory needs to be formatted, if necessary, perform steps 409 to 413, and if not, perform steps 405-408.
步骤 405、 从邮件服务器中系在所述附件, 并存入到 tmp文件中。  Step 405: Attach the attachment from the mail server and store it in the tmp file.
步骤 406、 在附件下载完毕时, 对该附件进行解码, 并以该附件的 ID号 命名生成用于存储该附件的文件。 Step 406: When the attachment is downloaded, the accessory is decoded, and the ID number of the attachment is used. Name the file that is used to store the attachment.
步骤 407、 删除 tmp文件。  Step 407: Delete the tmp file.
步骤 408、 确定附件下载完毕。  Step 408: Determine that the attachment is downloaded.
步骤 409、以所述附件的 ID号命名建立 ID目录,该 ID目录为所述 UID 目录的子目录, 并从邮件服务器中下载与所述附件对应的附件描述文件, 并 将该附件描述文件存储到 tmp文件中。  Step 409: Create an ID directory named by the ID number of the attachment, where the ID directory is a subdirectory of the UID directory, and download an attachment description file corresponding to the attachment from the mail server, and store the attachment description file. Go to the tmp file.
步骤 410、 对下载的附件描述文件进行解析, 并才艮据解析结果对所述附 件进行格式转换, 得到格式转换后的附件。  Step 410: Parse the downloaded attachment description file, and perform format conversion on the attachment according to the parsing result to obtain the format-converted attachment.
步骤 411、 以格式转换后的附件的 ID号命名, 生成用于存储该格式转换 后的附件的文件, 并将该文件存储到所述 ID目录中。  Step 411: Name the ID of the formatted attachment, generate a file for storing the formatted attachment, and store the file in the ID directory.
步骤 412、 删除所述 tmp文件。  Step 412: Delete the tmp file.
步骤 413、 确定附件下载完毕。  Step 413: Confirm that the attachment is downloaded.
较佳地, 若需要将所述附件转换成多种格式的附件, 上述流程中的步骤 409中, 获取的与所述附件对应的附件描述文件为多个, 每个附件描述文件对 应一种文件转换格式; 针对每种文件格式转换, 重复执行步骤 410 411 ; 上述 步骤 412中, 在针对每种文件格式转换后得到的附件下载完毕时, 将所述 tmp 文件删除。  Preferably, if the accessory needs to be converted into an accessory in multiple formats, in step 409 in the above process, the accessory description file corresponding to the accessory is obtained, and each accessory description file corresponds to one file. Converting the format; for each file format conversion, repeating step 410 411; in the above step 412, the tmp file is deleted when the attachment obtained after the conversion for each file format is completed.
基于上述方法流程相同的构思, 本发明实施例还提供一种管理移动终端 邮件的装置, 该装置的结构如图 5所示。  Based on the same concept of the foregoing method, the embodiment of the present invention further provides an apparatus for managing mail of a mobile terminal, and the structure of the apparatus is as shown in FIG. 5.
参见图 5 , 为本发明实施例中管理移动终端邮件的装置的结构示意图, 该装置包括:  FIG. 5 is a schematic structural diagram of an apparatus for managing a mail of a mobile terminal according to an embodiment of the present invention, where the apparatus includes:
目录创建单元 51, 用于在接收带有附件的邮件时, 以所述邮件的 UID 命名创建 UID目录;  a directory creating unit 51, configured to: when receiving an email with an attachment, create a UID directory by using a UID of the email;
下载单元 52 ,用于从邮件服务器中下载所述目录创建单元接收到的邮件 中的第一附件;  The downloading unit 52 is configured to download, from the mail server, the first attachment in the mail received by the directory creating unit;
文件生成单元 53,用于根据下载单元 52下载得到的第一附件的 ID号建 立用于存储所述邮件中的附件的文件,并将所述文件存储在所述 UID目录中。 较佳地, 上述装置还可以包括: The file generating unit 53 is configured to establish a file for storing an attachment in the mail according to the ID number of the first attachment downloaded by the download unit 52, and store the file in the UID directory. Preferably, the above apparatus may further include:
判断单元 54, 用于在下载单元 52下载所述第一附件之前, 判断是否需 要对所述第一附件进行格式转换;  The determining unit 54 is configured to determine, before the downloading unit 52 downloads the first accessory, whether to perform format conversion on the first accessory;
获取单元 55 , 用于在判断单元 54确定需要对所述第一附件进行格式转 换时, 从所述邮件服务器中获取与所述第一附件对应的至少一个附件描述文 件, 并将获取的所述至少一个附件描述文件存储在临时文件中, 一个附件描 述文件对应一种文件转换格式。  The obtaining unit 55 is configured to: when the determining unit 54 determines that the first accessory needs to be format converted, acquire at least one accessory description file corresponding to the first accessory from the mail server, and obtain the obtained At least one attachment description file is stored in the temporary file, and an attachment description file corresponds to a file conversion format.
较佳地, 上述装置还可以包括:  Preferably, the above apparatus may further include:
格式转换单元 56, 用于针对所述至少一个附件描述文件中的每个待解析 附件描述文件, 对该待解析附件描述文件进行解析, 并根据解析结果将所述 第一附件转换成相应文件转换格式的第二附件, 该第二附件与所述待解析附 件描述文件对应;  The format conversion unit 56 is configured to parse the to-be-parsed attachment description file for each of the at least one attachment description file, and convert the first attachment into a corresponding file conversion according to the parsing result. a second attachment of the format, the second attachment corresponding to the attachment description file to be parsed;
所述下载单元 52, 具体用于: 下载所述格式转换单元得到的与所述至少 一个附件描述文件对应的各第二附件。  The downloading unit 52 is specifically configured to: download each second accessory corresponding to the at least one accessory description file obtained by the format conversion unit.
较佳地, 文件生成单元 53 , 具体用于: 当所述第一附件对应的附件描述 文件为一个时, 以所述第一附件的 ID号命名, 建立用于存储与该附件描述文 件对应的第二附件的文件; 和 /或,  Preferably, the file generating unit 53 is specifically configured to: when the attachment description file corresponding to the first attachment is one, name the ID of the first attachment, and establish a storage corresponding to the attachment description file. Documents of the second annex; and/or,
当所述第一附件对应的附件描述文件为多个时, 以所述第一附件的 ID 号命名, 建立 ID目录, 所述 ID目录为所述 UID目录的子目录; 针对每个附 件描述文件对应的第二附件, 以该第二附件的 ID号命名建立用于存储该第二 附件的文件, 并将该文件存储在所述 ID目录中。  When the attachment description file corresponding to the first attachment is multiple, the ID directory is named by the ID number of the first attachment, and the ID directory is a subdirectory of the UID directory; Corresponding second attachment, the file for storing the second attachment is created by the ID number of the second attachment, and the file is stored in the ID directory.
较佳地, 上述装置还可包括:  Preferably, the above apparatus may further include:
删除单元 57 ,用于在对所述至少一个附件描述文件对应的第二附件均下 载完毕时, 删除所述临时文件。  The deleting unit 57 is configured to delete the temporary file when the second attachment corresponding to the at least one accessory description file is downloaded.
较佳地, 删除单元 57 进一步用于, 在确定需要删除所述邮件时, 删除 所述邮件对应的 UID目录。  Preferably, the deleting unit 57 is further configured to delete the UID directory corresponding to the mail when it is determined that the mail needs to be deleted.
本发明实施例中, 一方面, 接收带有附件的邮件, 并以所述邮件的 UID 命名创建 UID 目录; 从邮件服务器中下载所述邮件中的第一附件, 并根据所 述第一附件的 ID号建立用于存储附件的文件, 并将所述文件存储在所述 UID 目录中。 采用本发明技术方案, 在接收到邮件时, 根据邮件的 UID创建 UID 目录, 且在接收到该邮件的附件时, 以该附件的 ID号建立用于存储所述邮件 中的附件的文件, 由于邮件的 UID用于唯一标识该邮件, 因此釆用该邮件的 UID创建的 UID目录为唯一的, 且附件的 ID号用于唯一标识该附件, 因此, 根据附件的 ID号建立的文件为唯一的, 解决了现有技术中存在的附件的重命 名问题, 节省了附件重命名的处理流程, 从而提高了接收附件的效率; 另一 方面, 当附件需要转换成多种文件格式的附件时, 以该附件的 ID号命名建立 ID 目录, 并针对该附件进行多种文件格式转换后得到的多个格式转换后的附 件, 以格式转换后的附件的 ID号命名生成用于存储该文件格式转换后的附件 的文件, 并将该文件存储在 ID目录中, 因此, 针对一个附件, 将该附件进行 多种文件格式转换后得到的多个附件存储在该附件的 ID目录中即可, 不需要 针对每个文件格式转换后的附件单独存储到用户指定的位置, 从而提高了附 件存储效率, 并提高了附件管理的效率。 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。 In an embodiment of the present invention, on the one hand, receiving an email with an attachment, and using the UID of the email Name the UID directory; download the first attachment in the mail from the mail server, and create a file for storing the attachment according to the ID number of the first attachment, and store the file in the UID directory. According to the technical solution of the present invention, when receiving the mail, the UID directory is created according to the UID of the mail, and when the attachment of the mail is received, the file for storing the attachment in the mail is established with the ID number of the attachment, because The UID of the mail is used to uniquely identify the mail, so the UID directory created by the UID of the mail is unique, and the ID number of the attachment is used to uniquely identify the attachment. Therefore, the file created according to the ID number of the attachment is unique. The invention solves the problem of renaming the attachments existing in the prior art, saves the processing flow of attachment renaming, thereby improving the efficiency of receiving attachments; on the other hand, when the attachment needs to be converted into attachments of multiple file formats, The ID number of the attachment is named to create an ID directory, and multiple format converted attachments obtained by converting multiple file formats for the attachment are named after the ID number of the format converted attachment is used to store the file format after conversion. Attached file, and store the file in the ID directory, therefore, for an attachment, the attachment is converted to multiple file formats The multiple attachments obtained after the replacement are stored in the ID directory of the attachment, and the attachments converted for each file format are not separately stored in the user-specified location, thereby improving the storage efficiency of the attachment and improving the attachment management. effectiveness. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications of the invention

Claims

权 利 要 求 Rights request
1、 一种管理移动终端邮件的方法, 其特征在于, 包括: A method for managing mail of a mobile terminal, comprising:
接收带有附件的邮件, 并以所述邮件的唯一标识符 UID命名创建 UID目 录;  Receiving an email with an attachment, and creating a UID directory with the unique identifier UID of the email;
从邮件服务器中下载所述邮件中的第一附件;  Downloading the first attachment in the mail from the mail server;
根据所述第一附件的 ID号建立用于存储所述邮件中的附件的文件, 并将 所述文件存储在所述 UID目录中。  A file for storing an attachment in the mail is created based on the ID number of the first attachment, and the file is stored in the UID directory.
2、 如权利要求 1 所述的方法, 其特征在于, 从邮件服务器中下载所述 第一附件之前, 还包括: 在确定需要对所述第一附件进行格式转换时, 从所 述邮件服务器中获取与所述第一附件对应的至少一个附件描述文件, 并将获 取的所述至少一个附件描述文件存储在临时文件中, 一个附件描述文件对应 一种文件转换格式。  2. The method according to claim 1, wherein before downloading the first attachment from the mail server, the method further comprises: when determining that the first attachment needs to be format converted, from the mail server Obtaining at least one attachment description file corresponding to the first attachment, and storing the acquired at least one attachment description file in a temporary file, and an attachment description file corresponds to a file conversion format.
3、 如权利要求 2 所述的方法, 其特征在于, 从邮件服务器中下载所述 邮件中的第一附件, 包括:  3. The method of claim 2, wherein downloading the first attachment in the email from the mail server comprises:
针对所述至少一个附件描述文件中的每个待解析附件描述文件, 对该待 解析附件描述文件进行解析, 并根据解析结果将所述第一附件转换成相应文 件转换格式的第二附件, 该第二附件与所述待解析附件描述文件对应; 以及, 下载与所述至少一个附件描述文件对应的各第二附件。  Determining, to the at least one attachment description file, the attachment description file to be parsed, and parsing the first attachment into a second attachment corresponding to the file conversion format according to the parsing result, The second attachment corresponds to the to-be-analyzed attachment description file; and, the second attachment corresponding to the at least one attachment description file is downloaded.
4、 如权利要求 3所述的方法, 其特征在于, 根据所述第一附件的 ID号 建立用于存储所述邮件中的附件的文件, 包括:  The method according to claim 3, wherein the file for storing the attachment in the mail is established according to the ID number of the first attachment, including:
当所述第一附件对应的附件描述文件为一个时, 以所述第一附件的 ID 号命名, 建立用于存储与该附件描述文件对应的第二附件的文件; 和 /或, 当所述第一附件对应的附件描述文件为多个时, 以所述第一附件的 ID 号命名, 建立 ID目录, 所述 ID目录为所述 UID目录的子目录; 针对每个附 件描述文件对应的第二附件, 以该第二附件的 ID号命名建立用于存储该第二 附件的文件, 并将该文件存储在所述 ID目录中。 When the attachment description file corresponding to the first attachment is one, named after the ID number of the first attachment, a file for storing a second attachment corresponding to the attachment description file is established; and/or, when When there are multiple attachment description files corresponding to the first attachment, the ID directory is named by the ID number of the first attachment, and the ID directory is a subdirectory of the UID directory; Second attachment, the file for storing the second attachment is created by the ID number of the second attachment, and the file is stored in the ID directory.
5、 如权利要求 2〜4任一项所述的方法, 其特征在于, 还包括: 在对所述至少一个附件描述文件对应的第二附件均下载完毕时, 删除所 述临时文件。 The method according to any one of claims 2 to 4, further comprising: deleting the temporary file when the second attachment corresponding to the at least one accessory description file is downloaded.
6、 如权利要求 2 所述的方法, 其特征在于, 在确定不需要对所述第一 附件进行格式转换时, 从邮件服务器中下载所述第一附件;  6. The method according to claim 2, wherein the first attachment is downloaded from a mail server when it is determined that the first attachment is not required to be formatted;
根据所述第一附件的 ID号建立用于存储所述邮件中的附件的文件, 包 括:  Establishing a file for storing an attachment in the mail according to the ID number of the first attachment, including:
对所述第一附件进行解码, 并以所述第一附件的 ID号命名建立用于存 储所述第一附件的文件。  Decoding the first attachment and establishing a file for storing the first attachment with the ID number of the first attachment.
7、 如权利要求 1所述的方法, 其特征在于, 还包括:  7. The method of claim 1, further comprising:
当确定需要删除所述邮件时, 删除所述邮件对应的 UID目录。  When it is determined that the mail needs to be deleted, the UID directory corresponding to the mail is deleted.
8、 一种管理移动终端邮件的装置, 包括:  8. A device for managing mail of a mobile terminal, comprising:
目录创建单元, 用于在接收带有附件的邮件时, 以所述邮件的唯一标识 符 UID命名创建 UID目录;  a directory creation unit, configured to create a UID directory by using a unique identifier UID of the mail when receiving the mail with the attachment;
下载单元, 用于从邮件服务器中下载所述目录创建单元接收到的邮件中 的第一附件;  a downloading unit, configured to download, from the mail server, the first attachment in the mail received by the directory creating unit;
文件生成单元, 用于根据所述下载单元下载得到的第一附件的 ID号建 立用于存储所述邮件中的附件的文件,并将所述文件存储在所述 UID目录中。  And a file generating unit, configured to establish, according to the ID number of the first attachment downloaded by the downloading unit, a file for storing an attachment in the mail, and store the file in the UID directory.
9、 如权利要求 8所述的装置, 其特征在于, 还包括:  9. The device of claim 8, further comprising:
判断单元, 用于在所述下载单元下载所述第一附件之前, 判断是否需要 对所述第一附件进行格式转换;  a determining unit, configured to determine, before the downloading unit downloads the first accessory, whether to perform format conversion on the first accessory;
获取单元, 用于在所述判断单元确定需要对所述第一附件进行格式转换 时, 从所述邮件服务器中获取与所述第一附件对应的至少一个附件描述文件, 并将获取的所述至少一个附件描述文件存储在临时文件中, 一个附件描述文 件对应一种文件转换格式。  And an acquiring unit, configured to: when the determining unit determines that the first accessory needs to be format converted, acquire at least one accessory description file corresponding to the first accessory from the mail server, and obtain the obtained At least one attachment description file is stored in the temporary file, and an attachment description file corresponds to a file conversion format.
10、 如权利要求 9所述的装置, 其特征在于, 还包括格式转换单元: 格式转换单元, 用于针对所述至少一个附件描述文件中的每个待解析附 件描述文件, 对该待解析附件描述文件进行解析, 并根据解析结果将所述第 一附件转换成相应文件转换格式的第二附件, 该第二附件与所述待解析附件 描述文件对应; 10. The apparatus according to claim 9, further comprising: a format conversion unit: a format conversion unit, configured to: for each of the at least one attachment description file to be resolved a description file, parsing the attachment description file to be parsed, and converting the first attachment to a second attachment of a corresponding file conversion format according to the parsing result, where the second attachment corresponds to the attachment description file to be parsed;
所述下载单元, 具体用于: 下载所述格式转换单元得到的与所述至少一 个附件描述文件对应的各第二附件;  The downloading unit is specifically configured to: download each second accessory that is obtained by the format conversion unit and that corresponds to the at least one accessory description file;
所述文件生成单元, 具体用于:  The file generating unit is specifically configured to:
当所述第一附件对应的附件描述文件为一个时, 以所述第一附件的 ID 号命名, 建立用于存储与该附件描述文件对应的第二附件的文件; 和 /或, 当所述第一附件对应的附件描述文件为多个时, 以所述第一附件的 ID 号命名, 建立 ID目录, 所述 ID目录为所述 UID目录的子目录; 针对每个附 件描述文件对应的第二附件, 以该第二附件的 ID号命名建立用于存储该第二 附件的文件, 并将该文件存储在所述 ID目录中。  When the attachment description file corresponding to the first attachment is one, named after the ID number of the first attachment, a file for storing a second attachment corresponding to the attachment description file is established; and/or, when When there are multiple attachment description files corresponding to the first attachment, the ID directory is named by the ID number of the first attachment, and the ID directory is a subdirectory of the UID directory; Second attachment, the file for storing the second attachment is created by the ID number of the second attachment, and the file is stored in the ID directory.
11、 如权利要求 8~10任一项所述的装置, 其特征在于, 还包括: 删除单元, 用于在对所述至少一个附件描述文件对应的第二附件均下载 完毕时, 删除所述临时文件。  The device according to any one of claims 8 to 10, further comprising: a deleting unit, configured to delete the second accessory corresponding to the at least one accessory description file after the downloading is completed Temporary Files.
PCT/CN2011/074571 2011-01-11 2011-05-24 Method and device for managing mobile terminal mails WO2012094864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201110004534 CN102073723B (en) 2011-01-11 2011-01-11 Method and device for managing mobile terminal mails
CN201110004534.8 2011-01-11

Publications (1)

Publication Number Publication Date
WO2012094864A1 true WO2012094864A1 (en) 2012-07-19

Family

ID=44032262

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074571 WO2012094864A1 (en) 2011-01-11 2011-05-24 Method and device for managing mobile terminal mails

Country Status (2)

Country Link
CN (1) CN102073723B (en)
WO (1) WO2012094864A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414689A (en) * 2013-07-12 2013-11-27 深圳Tcl新技术有限公司 Connection method and connection device of digital living network alliance (DLNA) equipment
CN105335186B (en) * 2014-08-11 2020-06-05 腾讯科技(深圳)有限公司 Data downloading management method and system
CN105183779A (en) * 2015-08-11 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for browsing attachment by using client
CN107104889B (en) * 2017-07-06 2020-12-04 青岛海信移动通信技术股份有限公司 Draft mail synchronization method, draft mail synchronization device and draft mail synchronization terminal based on IMAP protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068545A1 (en) * 2002-10-08 2004-04-08 Bellsouth Intellectual Property Corporation Displaying and working with email attachments
JP2004133503A (en) * 2002-10-08 2004-04-30 Matsushita Electric Ind Co Ltd Information processor and program therefor
US20060168012A1 (en) * 2004-11-24 2006-07-27 Anthony Rose Method and system for electronic messaging via distributed computing networks

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW504619B (en) * 1999-06-04 2002-10-01 Ibm Internet mail delivery agent with automatic caching of file attachments
CN1329315A (en) * 2000-06-20 2002-01-02 腾龙计算机软件(上海)有限公司 Electronic mail system
EP1305756A1 (en) * 2000-07-24 2003-05-02 Matsushita Electric Industrial Co., Ltd. A system for transmission/ reception of e-mail with attached files
KR100619879B1 (en) * 2004-07-01 2006-09-19 엘지전자 주식회사 Email attatched file reviewing method using mobile communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068545A1 (en) * 2002-10-08 2004-04-08 Bellsouth Intellectual Property Corporation Displaying and working with email attachments
JP2004133503A (en) * 2002-10-08 2004-04-30 Matsushita Electric Ind Co Ltd Information processor and program therefor
US20060168012A1 (en) * 2004-11-24 2006-07-27 Anthony Rose Method and system for electronic messaging via distributed computing networks

Also Published As

Publication number Publication date
CN102073723A (en) 2011-05-25
CN102073723B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
KR101440962B1 (en) Intelligent caching of media files
KR100612709B1 (en) Short message gateway, system and method of providing information service for mobile devices
US8065363B2 (en) Electronic mail communications system with client email internet service provider (ISP) polling application and related methods
CN100583841C (en) Push-mail system based on mobile network and receiving/sending method for mails
CA2671623A1 (en) Delivery of email messages with repetitive attachments
WO2008040224A1 (en) Data synchronous method, system and apparatus
WO2007107120A1 (en) System, apparatus and method for processing e-mail by means of data synchronization
WO2011066753A1 (en) Backup method and system of mobile terminal short message
WO2009092311A1 (en) Method, apparatus and system of data synchronization
WO2012100694A1 (en) Mobile device email display processing method, server and mobile device
JP2012511210A5 (en)
WO2007056928A1 (en) Adapting method and system for mobile mail terminal
WO2012094864A1 (en) Method and device for managing mobile terminal mails
AU2008200201A1 (en) Method and system for managing data, and a corresponding computer program and a corresponding computer-readable storage medium
WO2011103748A1 (en) Method and mobile communication terminal for managing email
EP2053808B1 (en) The system, method and device for realizing email notification
WO2011022901A1 (en) Method for implementing multimedia messaging service email and multimedia messaging service email service gateway
CN102904795A (en) Mail synchronous system and synchronous method thereof
CA2647019C (en) Electronic mail communications system with client email internet service provider (isp) polling application and related methods
WO2015196658A1 (en) Method and device for acquiring delivery state of e-mail, and computer storage medium
WO2011153772A1 (en) Method and system for obtaining multiple instant information
JP2009188805A (en) Electronic mail system
WO2013182078A1 (en) Method, client and related system for media message adaptation
KR20020077321A (en) How to ensure reliable delivery of large files attached to emails
JP5011208B2 (en) Mail processing system and communication terminal device

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: 11855666

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11855666

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 11855666

Country of ref document: EP

Kind code of ref document: A1