WO2011091628A1 - 获得终端电子邮件大小的方法和装置 - Google Patents

获得终端电子邮件大小的方法和装置 Download PDF

Info

Publication number
WO2011091628A1
WO2011091628A1 PCT/CN2010/072133 CN2010072133W WO2011091628A1 WO 2011091628 A1 WO2011091628 A1 WO 2011091628A1 CN 2010072133 W CN2010072133 W CN 2010072133W WO 2011091628 A1 WO2011091628 A1 WO 2011091628A1
Authority
WO
WIPO (PCT)
Prior art keywords
size
mail
standard
email
header
Prior art date
Application number
PCT/CN2010/072133
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 EP10844406.8A priority Critical patent/EP2530893B1/en
Priority to US13/257,668 priority patent/US8484304B2/en
Publication of WO2011091628A1 publication Critical patent/WO2011091628A1/zh

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/21Monitoring or handling of messages
    • H04L51/23Reliability checks, e.g. acknowledgments or fault reporting

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for obtaining a size of a terminal email.
  • E-mail also known as e-mail or e-mail
  • E-mail is a means of communication that provides information exchange by electronic means and has become the most commonly used service on multiple networks around the world.
  • E-mail is an easy and fast way to communicate.
  • By connecting to the Internet around the world various types of signals are transmitted, received, and saved, and the mail is sent to all corners of the world. This non-interactive communication accelerates information. Communication and data transfer.
  • e-mail is not limited to the delivery of text information, but can also be transmitted as an attachment to different types of information such as files, sounds, graphics or images. With the rapid development of information technology, most of the current high-end mobile phones integrate the client software of e-mail.
  • E-mail applications mainly include several core modules such as mail editing, mail sending and receiving, mail storage management, mail viewing, and account management.
  • the control of the current email size in the mail editing module is very important because of the size limitation of the mail transmission on the terminal such as the mobile terminal or the size limit of the remaining space of the mail storage.
  • the prior art cannot accurately acquire the editing size of the current e-mail, there is a technical defect that the e-mail cannot be sent or saved due to the error in the editing size and the encoding size of the e-mail.
  • the email size of the mobile terminal on the current network is limited to 512K, although the email size displayed by the user editing interface is 502K, when the user chooses to send, the transmission fails and is told that the transmission limit is exceeded.
  • the actual size of the email after encoding exceeds 512K, which obviously causes a bad user experience.
  • the technical problem to be solved by the present invention is to provide a method and apparatus for obtaining the size of a terminal email, which effectively avoids technical defects in which mail cannot be sent or saved due to errors in mail editing size and mail encoding size.
  • the present invention provides a method for obtaining a size of a terminal email, comprising: the terminal extracting a preset standard mail template from the terminal file system, and using the standard mail template as a standard size of the email;
  • Obtaining a size of the input content when the user edits the email obtaining a mail header size and a mail body size of the email according to the size of the input content and a standard mail template; and the header size and the mail body size Add, get and display the email size.
  • the steps of obtaining the header size of the email according to the size of the input content and the standard mail template include:
  • the field difference value of each field is added to the standard size of the message header in the standard mail template to obtain the message header size of the currently edited email.
  • the steps of obtaining the body size of the email according to the size of the input content and the standard mail template include:
  • the size of the attachment inserted by the user; extracting the standard size of the mail body in the standard mail template;
  • the message body standard size is added to the body content size and/or the attachment size to obtain the message body size of the user-edited email.
  • the standard mail template is an encoding parameter table of an empty mail, and the encoding parameter table includes an empty mail
  • the empty mail is an email with both the body and the attachment being empty.
  • the standard size of the mail body is a mail body size obtained by encoding an empty mail body;
  • the standard size of the mail header is a mail header size obtained by encoding an empty mail header; and the mail header
  • the standard size of each field is the size of the header obtained by encoding an empty field.
  • the present invention further provides an apparatus for obtaining a size of a terminal email, comprising: a parameter module, configured to: extract a preset standard mail template from a terminal file system, and use the standard mail template As a standard size of the email; a processing module, connected to the parameter module, the processing module is configured to: obtain a size of the input content when the user edits the email, and obtain according to the size of the input content and a standard mail template The mail header size and the mail body size of the email; and the mail module, connected to the processing module, the mail module is configured to: add the mail header size and the mail body size to obtain and display the email size.
  • a parameter module configured to: extract a preset standard mail template from a terminal file system, and use the standard mail template As a standard size of the email
  • a processing module connected to the parameter module, the processing module is configured to: obtain a size of the input content when the user edits the email, and obtain according to the size of the input content and a standard mail template The mail header size and the
  • the processing module includes: a first acquiring unit, connected to the parameter module, where the first acquiring unit is configured to: acquire a size of input content of each field of the mail header when the user edits the email header of the email; a unit, connected to the first obtaining unit, the processing unit is configured to: subtract a size of each field input content from a standard size of a corresponding field of the mail header in the standard mail template, to obtain a field difference of each field And a mail header unit, which is respectively connected to the processing unit and the mail module, and the mail head unit is configured to: add a field difference value of each field to a standard size of the mail header in the standard mail template to obtain a current Edit the email header size of the email and send it to the mail module.
  • the processing module includes: a second acquiring unit, connected to the parameter module, the second acquiring unit is configured to: obtain an attached size; an extracting unit is connected to the parameter module, and the extracting unit is configured to: extract The standard size of the mail body in the standard mail template;
  • a mail body unit which is respectively connected to the second obtaining unit, the extracting unit, and the mail module, and the mail body unit is configured to: add the mail body standard size to the text content size and/or the attachment size to obtain The body size of the current email is edited and sent to the mail module.
  • the standard mail template is an encoding parameter table of the empty mail, and the encoding parameter table includes a standard size of the mail body corresponding to the air mail encoding, a standard size of the mail header, and a standard size of each field in the mail header.
  • the empty mail is an email with both the body and the attachment being empty.
  • the standard size of the mail body is a mail body size obtained by encoding an empty mail body;
  • the standard size of the mail header is a mail header size obtained by encoding an empty mail header; and the mail header
  • the standard size of each field is the size of the header obtained by encoding an empty field.
  • the invention provides a method and a device for obtaining the size of a terminal email such as a mobile phone terminal, and can accurately obtain the terminal editing by introducing a standard mail template as the standard size of the email, and using the standard mail template as the size reference of the current edit email.
  • the size of the e-mail, the error of the edit size of the e-mail displayed on the mobile terminal and the size of the e-mail is controlled to a very small extent, effectively avoiding the situation that the e-mail cannot be sent or saved due to the error, and the mobile terminal is greatly improved.
  • the overall performance of the email application improves the user experience of the mobile terminal's email application.
  • BRIEF abstract 1 is a flowchart of a method for accurately obtaining a size of a terminal email according to an embodiment of the present invention
  • FIG. 2 is a flowchart of obtaining a current edit email header size according to an embodiment of the present invention
  • FIG. 3 is a current editing email according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for accurately obtaining the size of the email of the terminal according to an embodiment of the present invention.
  • Step 1 A terminal extracts a preset standard email template from a terminal file system, where the standard email template is used as a standard size of an email;
  • Step 2 Obtain a size of the input content of the email edited by the user, and obtain a mail header size and a mail body size of the email according to the size of the input content and the standard mail template;
  • Step 3 Add the size of the email to the email size and display it to get the terminal email size accurately.
  • the embodiment of the present invention proposes a method for obtaining the size of a terminal email, which can display the email displayed by the mobile terminal by introducing a standard email template as the standard size of the email, and using the standard email template as the size reference of the currently edited email.
  • the editing size and the error of the encoding size are controlled within a very small range, effectively avoiding the situation that the email cannot be sent or saved due to the error, or the need to re-edit and then send and save, greatly improving the mobile terminal electronic
  • the overall performance of the email application improves the user experience of terminal email applications such as mobile terminals.
  • This embodiment uses a mobile phone terminal as an example for description.
  • the reason why the prior art cannot accurately obtain the edit size of the current email is because the existing method only considers the content size of the email and the size of the inserted attachment in the editing process, without considering the header.
  • the size of the code, or even considering the size of the message header only reserves a fixed size value (such as 2K bytes) as the size of the message header.
  • the present invention introduces a standard mail template as a standard size of an email, and the standard mail template is an encoding parameter table of an empty mail, and the encoding parameter table reflects the size of an empty mail code, where An empty message is an email with both the body and the attachment empty.
  • the edit size of the email consists of the email header size and the body size of the email.
  • the standard mail template of the present invention is a standard size of the mail body corresponding to the encoding of the empty mail, the standard size of the mail header, and the standard size of each field in the mail header.
  • the standard size of the mail body is an empty mail body ( No text and attachment)
  • the standard size of the mail header is the size of the mail header obtained by encoding an empty mail header (no input content).
  • the standard size of each field in the mail header is one. Empty field (no input) The size of the header obtained after encoding.
  • the standard mail template is pre-set (saved) in the terminal file system of the mobile phone, and when receiving an instruction to create or edit an e-mail, the mobile terminal loads the standard mail template into the memory from the terminal file system.
  • Table 1 is a schematic structural table of a standard mail template according to an embodiment of the present invention, wherein the mail header field not only has some mail header fields that the email encoding must support, such as a recipient, a sending date, a mail ID, etc., and a user selection during editing. Related fields, such as subject (TITILE), CC (CC), BCC (BCC), time (DATE), etc.
  • the standard mail template is the standard size for storing these field values in bytes.
  • these encoding parameters can be obtained by encoding the actual empty mail into a data file on the mobile phone.
  • A can be a value of 20 ⁇ 100 bytes
  • B can be a value of 200 ⁇ 1048 bytes
  • B 1 can be a value of 20 ⁇ 80 bytes
  • B2 can be 50 ⁇ 150
  • B3 can be a value of 20 ⁇ 80 bytes
  • B4 can be a value of 20 ⁇ 80 bytes
  • B5 can be a value of 50 ⁇ 150 bytes, and so on.
  • Table 1 Schematic structure table of a standard mail template in the embodiment of the present invention
  • the standard mail template is preset in the terminal file system of the mobile phone in the embodiment of the present invention
  • the standard mail template is used as the size reference of the email, and the size of the input content of the email can be edited according to the user.
  • 2 is a flowchart of obtaining a size of a current edit email header according to an embodiment of the present invention, including: Step 211: Obtain a size of an input content of each field in a user edit header; Step 212: Enter a size and a content of each field.
  • the standard size of the corresponding field of the mail header is subtracted, and the field difference value of each field is obtained.
  • Step 213 Add the field difference value of each field to the standard size of the mail header in the standard mail template to obtain the current Edit the message header size of the email.
  • the standard size of the mail header in the standard mail template is used as the mail head size reference of the current edit email.
  • the mobile terminal compares the field size of the user input (edit) content with the standard size of the corresponding field of the message header in the standard mail template, and obtains the field difference of the field, and the field difference is obtained.
  • the value is added to the standard size of the header to get the header size of the currently edited email. For multiple fields (such as subject, CC, Bcc, etc.), multiple field differences are obtained.
  • the size of the mail header obtained by the technical solution of the present invention is the edit size of the email header
  • the standard size of the mail header and the standard size of each field in the mail header are the actual size after encoding, the edit size and encoding of the mail header are Size error can be controlled in a very small range Inside.
  • each field of the mail header is in the form of "identity + reserved space", so when the user edits a field in the message header, the input content size is relative to the standard size of the field.
  • each field in the header of an empty message can be in the form of "identity”, so when the user edits a field in the header, the size of the user input is added to the standard size of the field, and the corresponding value can be obtained.
  • the size of the field which in turn gets the size of the message header.
  • each field of the mail header in the empty mail can be in the form of "identity”, and only the standard size of the mail header is set in the standard mail template.
  • FIG. 3 is a flowchart of obtaining a current edit email body size according to an embodiment of the present invention, including: Step 221: Obtain a body content size input by a user when editing a mail body, and/or an attachment size inserted by a user; Step 222, Extracting a location The standard size of the mail body in the standard mail template; Step 223: Add the standard size of the mail body to the content size and/or the size of the attachment to obtain the mail body size of the currently edited email.
  • the standard size of the mail body in the standard mail template is used as the mail body size reference of the current edited email, and when the user inputs the text content and/or inserts the attachment, the text content is directly accumulated on the standard size of the mail body.
  • the size of the message and/or the size of the attachment will give you the size of the body of the currently edited email.
  • the size of the mail body obtained by the technical solution of the present invention is the editing size of the email body
  • the standard size of the mail body is the actual size after encoding, the error of the editing size and the encoding size of the mail body can be controlled. Very small range. In an actual application, step 222 may be performed before step 221, or both.
  • the device for accurately obtaining the size of the terminal email includes the parameter module, the processing module and the mail module, wherein the parameter module is configured to: extract a preset standard mail template from the terminal file system,
  • the standard mail template is used as the standard size of the email;
  • the processing module is connected to the parameter module, and the processing module is set to: obtain the size of the input content of the user to edit the email, according to the size of the input content and the standard size of the email
  • the standard mail template obtains the mail header size and the mail body size of the email; and the mail module is connected with the processing module, and the mail module is set to: add the mail header size and the mail body size to obtain the currently edited email size and Displayed to support accurate terminal email size.
  • the processing module of the present invention includes a first obtaining unit, a processing unit, and a mail head unit.
  • the first obtaining unit is connected to the parameter module, and the first obtaining unit is configured to: obtain a size of the input content of each field of the user editing mail header;
  • the processing unit is configured to: subtract the size of the input content of each field from the standard size of the corresponding field of the mail header in the standard mail template, and obtain a field difference value of each field;
  • the mail header unit is respectively connected to the processing unit and the mail module, and the mail header unit is set to: add the field difference value of each field to the standard size of the mail header in the standard mail template, and obtain the mail header size of the current edit email. And send to the mail module.
  • the processing module of the present invention further includes a second obtaining unit, an extracting unit, and a mail body unit, wherein the second obtaining unit is connected to the parameter module, and the second obtaining unit is configured to: obtain a content size of the text input by the user when the user edits the mail body and/or Or the size of the attachment inserted by the user; the extraction unit is connected with the parameter module, and the extraction unit is set to: extract the standard size of the mail body in the standard mail template; the mail body unit is respectively connected with the second obtaining unit, the extracting unit and the mail module, and the mail body
  • the unit is configured to: add the mail body standard size to the body content size and/or the attachment size, obtain the mail body size of the currently edited email, and send the message body size to the mail module.
  • the present invention proposes a method and apparatus for accurately obtaining the size of a terminal email, which can be accurately obtained by introducing a standard mail template as a standard size of an email, and using a standard mail template as a size reference for the current edited email.
  • the size of the edited e-mail, the error of the edit size of the e-mail displayed on the mobile terminal and the size of the encoded code is controlled within a very small range, effectively avoiding the situation that the e-mail cannot be sent or saved due to the error, and the mobile phone is greatly improved.
  • the overall performance of the terminal email application improves the user experience of the mobile terminal's email application.

Landscapes

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

Abstract

一种获得终端电子邮件大小的方法,其包括:终端从终端文件系统提取预先设置的标准邮件模板,并将所述标准邮件模板作为电子邮件的标准大小;获取用户编辑所述电子邮件时的输入内容的大小,根据所述输入内容的大小和标准邮件模板获得电子邮件的邮件头大小和邮件体大小;以及将所述邮件头大小和邮件体大小相加,获得并显示电子邮件大小,从而精确获得终端电子邮件大小。相应的,本发明还提供了一种获得终端电子邮件大小的装置。本发明大大提高了手机终端电子邮件应用的整体性能,提高了手机终端电子邮件应用的用户体验。

Description

获得终端电子邮件大小的方法和装置
技术领域 本发明涉及通信领域, 具体涉及一种获得终端电子邮件大小的方法和装 置。
背景技术 电子邮件 (E-mail)又称电子信箱或电子邮政, 是一种用电子手段提供信 息交换的通信方式, 已成为全球多种网络上使用最普遍的一项服务。 电子邮 件是一个简易、 快速的通信方法, 通过连接全世界的 Internet, 实现各类信号 的传送、 接收和保存等处理, 将邮件送到世界各个角落, 因此这种非交互式 的通信加速了信息的交流及数据传送。 而且电子邮件不只局限于文本信息的 传递, 还可将文件、 声音、 图形或图像等不同类型的信息以附件的形式进行 传递。 随着信息技术的高速发展, 在目前的中高端手机中大都集成了电子邮件 的客户端软件,用户在手机上进行一系列简单配置后就可以登录自己的邮箱, 随时查阅和发送电子邮件。 电子邮件应用主要包括邮件的编辑、邮件的收发、 邮件存储管理、 邮件查看、 账户管理等几个核心模块。 由于涉及手机终端等 终端上邮件发送大小限制或邮件存储剩余空间大小限制, 因此邮件编辑模块 中对当前电子邮件大小的控制是非常重要的。 但实际使用中发现, 由于现有技术不能精确地获取当前电子邮件的编辑 大小, 存在因为电子邮件的编辑大小和编码大小的误差造成电子邮件不能发 送或保存的技术缺陷。 例如, 如果在当前网络下手机终端上电子邮件大小的 发送限制是 512K, 虽然用户编辑界面显示的电子邮件大小是 502K, 但当用 户选择发送时却出现发送失败并被告知是超过发送限制, 这说明该电子邮件 编码后的实际大小超过了 512K, 显然这种情况会造成不良的用户体验。
发明内容 本发明要解决的技术问题是提供一种获得终端电子邮件大小的方法和装 置, 有效避免因邮件编辑大小和邮件编码大小的误差造成邮件不能发送或保 存的技术缺陷。 为解决上述技术问题,本发明提供了一种获得终端电子邮件大小的方法, 包括: 终端从终端文件系统提取预先设置的标准邮件模板, 并将所述标准邮件 模板作为电子邮件的标准大小;
获取用户编辑所述电子邮件时的输入内容的大小, 才艮据所述输入内容的 大小和标准邮件模板获得电子邮件的邮件头大小和邮件体大小; 以及 将所述邮件头大小和邮件体大小相加, 获得并显示电子邮件大小。 根据所述输入内容的大小和标准邮件模板获得电子邮件的邮件头大小的 步骤包括:
获取用户编辑所述电子邮件的邮件头时邮件头的每个字段输入内容的大 小;
将每个字段输入内容的大小与所述标准邮件模板中邮件头对应字段的标 准大小相减, 获得每个字段的字段差值; 以及
将每个字段的字段差值与所述标准邮件模板中邮件头标准大小相加, 获 得当前编辑电子邮件的邮件头大小。 根据所述输入内容的大小和标准邮件模板获得电子邮件的邮件体大小的 步骤包括:
用户插入的附件大小; 提取所述标准邮件模板中邮件体标准大小; 以及
将所述邮件体标准大小与所述正文内容大小和 /或附件大小相加,获得用 户编辑的电子邮件的邮件体大小。 所述标准邮件模板为空邮件的编码参数表, 所述编码参数表包括空邮件 编码后对应的邮件体标准大小、 邮件头标准大小和邮件头中每个字段的标准 大小。 所述空邮件为正文和附件都为空的电子邮件。 所述邮件体标准大小是对一个空的邮件体进行编码后得到的邮件体大 小;所述邮件头标准大小是对一个空的邮件头进行编码后得到的邮件头大小; 以及, 所述邮件头中每个字段标准大小是对一个空的字段进行编码后得到的 邮件头大小。
为解决上述技术问题, 本发明还提供了一种获得终端电子邮件大小的装 置, 其包括: 参数模块, 其设置为: 从终端文件系统提取预先设置的标准邮件模板, 并将所述标准邮件模板作为电子邮件的标准大小; 处理模块, 与所述参数模块连接, 所述处理模块设置为: 获取用户编辑 所述电子邮件时的输入内容的大小, 根据所述输入内容的大小和标准邮件模 板获得电子邮件的邮件头大小和邮件体大小; 以及 邮件模块, 与所述处理模块连接, 所述邮件模块设置为: 将所述邮件头 大小和邮件体大小相加, 获得并显示电子邮件大小。 所述处理模块包括: 第一获取单元, 与所述参数模块连接, 所述第一获取单元设置为: 获取 用户编辑所述电子邮件的邮件头时邮件头的每个字段输入内容的大小; 处理单元, 与所述第一获取单元连接, 所述处理单元设置为: 将每个字 段输入内容的大小与所述标准邮件模板中邮件头对应字段的标准大小相减, 获得每个字段的字段差值; 以及 邮件头单元, 分别与所述处理单元和邮件模块连接, 所述邮件头单元设 置为: 将每个字段的字段差值与所述标准邮件模板中邮件头标准大小相加, 获得当前编辑电子邮件的邮件头大小, 并向所述邮件模块发送。 所述处理模块包括: 第二获取单元, 与所述参数模块连接, 所述第二获取单元设置为: 获取 的附件大小; 提取单元, 与所述参数模块连接, 所述提取单元设置为: 提取所述标准 邮件模板中邮件体标准大小; 以及
邮件体单元, 分别与所述第二获取单元、 提取单元和邮件模块连接, 所 述邮件体单元设置为:将所述邮件体标准大小与所述正文内容大小和 /或附件 大小相加, 获得当前编辑电子邮件的邮件体大小, 并向所述邮件模块发送。 所述标准邮件模板为空邮件的编码参数表, 所述编码参数表包括了空邮 件编码后对应的邮件体标准大小、 邮件头标准大小和邮件头中每个字段的标 准大小。 所述空邮件为正文和附件都为空的电子邮件。 所述邮件体标准大小是对一个空的邮件体进行编码后得到的邮件体大 小;所述邮件头标准大小是对一个空的邮件头进行编码后得到的邮件头大小; 以及, 所述邮件头中每个字段标准大小是对一个空的字段进行编码后得到的 邮件头大小。
本发明提出了一种获得手机终端等终端电子邮件大小的方法和装置, 通 过引入作为电子邮件标准大小的标准邮件模板, 并将标准邮件模板作为当前 编辑电子邮件的大小基准, 可精确获得终端编辑的电子邮件的大小, 将手机 终端显示的电子邮件的编辑大小与其编码大小的误差控制在极微小的范围 内, 有效避免了因该误差造成电子邮件不能发送或保存的情况, 大大提高了 手机终端电子邮件应用的整体性能, 提高了手机终端电子邮件应用的用户体 验。
附图概述 图 1为本发明实施例精确获得终端电子邮件大小的方法的流程图; 图 2为本发明实施例获得当前编辑电子邮件邮件头大小的流程图; 图 3为本发明实施例获得当前编辑电子邮件邮件体大小的流程图; 图 4为本发明实施例精确获得终端电子邮件大小的装置的结构示意图。
本发明的较佳实施方式 下面结合附图, 对本发明技术方案做进一步详细说明。 图 1为本发明实施例精确获得终端电子邮件大小的方法的流程图,包括: 步骤 1、 终端从终端文件系统提取预先设置的标准邮件模板, 所述标准 邮件模板作为电子邮件的标准大小;
步骤 2、 获取用户编辑所述电子邮件的输入内容的大小, 才艮据所述输入 内容的大小和标准邮件模板获得电子邮件的邮件头大小和邮件体大小; 步骤 3、 将所述邮件头大小和邮件体大小相加获得电子邮件大小并显示, 从而精确获得终端电子邮件大小。 本发明实施例提出了一种获得终端电子邮件大小的方法, 通过引入作为 电子邮件标准大小的标准邮件模板, 并将标准邮件模板作为当前编辑电子邮 件的大小基准, 可将手机终端显示的电子邮件的编辑大小与其编码大小的误 差控制在极微小的范围内, 有效避免了因该误差造成电子邮件不能发送或保 存的情况, 或需重新编辑后再发送和保存的情况, 大大提高了手机终端电子 邮件应用的整体性能, 提高了手机终端等终端电子邮件应用的用户体验。 本 实施例以手机终端为例进行说明。 经发明人分析研究, 现有技术不能精确地获取当前电子邮件的编辑大小 的原因是因为现有方法在编辑过程中只考虑了电子邮件的正文内容大小和插 入的附件大小, 而没有考虑邮件头编码后的大小, 或即使考虑了邮件头的大 小, 也只是预留一个固定的大小值(如 2K 字节)作为邮件头的大小。 实际 应用中, 由于电子邮件的邮件头存在艮大的差异性, 再加上邮件体编码后的 变化, 因此实际整个电子邮件的编码大小与电子邮件显示的编辑大小存在较 大的差距, 在接近边界条件情况下, 这种差异往往影响邮件的发送和存储。 在本发明实施例技术方案中, 本发明引入了作为电子邮件标准大小的标 准邮件模板, 标准邮件模板为一个空邮件的编码参数表, 该编码参数表反映 一个空邮件编码后的大小,这里的空邮件是指正文和附件都为空的电子邮件。 在进行电子邮件编辑时, 电子邮件的编辑大小由电子邮件的邮件头大小和邮 件体大小组成。 本发明标准邮件模板为对空邮件进行编码后所对应的邮件体 标准大小、 邮件头标准大小、 邮件头中每个字段标准大小, 具体地说, 邮件 体标准大小是对一个空的邮件体(无文字和附件)进行编码后得到的邮件体 大小, 邮件头标准大小是对一个空的邮件头 (无输入内容)进行编码后得到 的邮件头大小,邮件头中每个字段标准大小是对一个空的字段(无输入内容) 进行编码后得到的邮件头大小。 标准邮件模板预先设置 (保存)在手机的终 端文件系统中, 在接收到新建或编辑电子邮件的指令时, 手机终端从终端文 件系统将标准邮件模板装载到内存中。 表 1为本发明实施例标准邮件模板的 示意结构表, 其中邮件头字段不仅有电子邮件编码必须支持的一些邮件头字 段, 如收件人、 发送日期、 邮件 ID等, 还有编辑时用户选择的相关字段, 如 主题(TITILE ) 、 抄送(CC ) 、 密送(BCC ) 、 时间 (DATE )等。 该标准邮 件模板就是保存这些字段域值的标准大小, 单位为字节。 实际应用中, 这些 编码参数可以通过在手机上对实际的空邮件进行编码成数据文件后取得。 例 如表 1 , A可以是 20 ~ 100字节的某个值, B可以是 200 ~ 1048字节的某个值, B 1 可以是 20 ~ 80字节的某个值,B2 可以是 50 ~ 150字节的某个值,B3 可以是 20 ~ 80字节的某个值, B4可以是 20 ~ 80字节的某个值, B5可以是 50 ~ 150字 节的某个值等等。 表 1 本发明实施例标准邮件模板的示意结构表
Figure imgf000007_0001
邮件头中 TO字段 B1 邮件头中 TITLE字段 B2 邮件头中 BCC字段 B3 邮件头中 CC字段 B4 邮件头中 DATE字段 B5
由于本发明实施例在手机的终端文件系统中预先设置有标准邮件模板, 因此在用户编辑电子邮件时, 将标准邮件模板作为电子邮件的大小基准, 根 据用户编辑电子邮件的输入内容的大小即可获取当前编辑的电子邮件的邮件 头大小和邮件体大小。 图 2为本发明实施例获得当前编辑电子邮件邮件头大小的流程图, 包括: 步骤 211、 获取用户编辑邮件头每个字段输入内容的大小; 步骤 212、 将每个字段输入内容的大小与所述标准邮件模板中邮件头对 应字段标准大小相减, 获得每个字段的字段差值; 步骤 213、 将每个字段的字段差值与所述标准邮件模板中邮件头标准大 小相加, 获得当前编辑电子邮件的邮件头大小。 在上述技术方案中, 本发明实施例将标准邮件模板中邮件头标准大小作 为当前编辑电子邮件的邮件头大小基准。 在用户编辑邮件头中某个字段时, 手机终端将用户输入(编辑) 内容的字段大小与标准邮件模板中邮件头对应 字段标准大小进行差额比较, 获得该字段的字段差值, 将该字段差值与邮件 头标准大小相加, 即可得到当前编辑电子邮件的邮件头大小。 对于多个字段 (如主题、 抄送、 密送等) , 就会获得多个字段差值。 将每个字段的字段差 值与邮件头标准大小进行累计的算术叠加, 最终得到当前编辑电子邮件的邮 件头大小。 虽然本发明技术方案所得到的邮件头大小是电子邮件头的编辑大 小, 但由于邮件头标准大小和邮件头中每个字段标准大小是经过编码后的实 际大小, 因此邮件头的编辑大小与编码大小的误差可以控制在极微小的范围 内。 需要说明的是, 本实施例空邮件中的邮件头每个字段釆用 "标识 +预留 空位"的形式, 因此在用户编辑邮件头中某个字段时, 将输入内容大小相对 于字段标准大小的变化累计到邮件头标准大小上即可得到邮件头大小, 并实 时显示出来。 实际应用中, 还可以釆用其它技术手段获得当前编辑电子邮件邮件头大 小。 例如, 可以将空邮件中的邮件头每个字段釆用 "标识" 的形式, 因此在 用户编辑邮件头中某个字段时, 将用户输入内容的大小累加到字段标准大小 上, 即可获得相应字段的大小, 进而得到邮件头大小。 又如, 可以将空邮件 中的邮件头每个字段釆用 "标识" 的形式, 且标准邮件模板中只设置邮件头 标准大小, 待用户编辑邮件头中所有字段后, 将用户所有输入内容的大小累 加到邮件头标准大小上, 也可获得当前编辑电子邮件的邮件头大小。 图 3为本发明实施例获得当前编辑电子邮件邮件体大小的流程图, 包括: 步骤 221、 获取用户编辑邮件体时用户输入的正文内容大小和 /或用户插 入的附件大小; 步骤 222、 提取所述标准邮件模板中邮件体标准大小; 步骤 223、 将所述邮件体标准大小与所述正文内容大小和 /或附件大小相 加, 获得当前编辑电子邮件的邮件体大小。 在上述技术方案中, 本发明将标准邮件模板中邮件体标准大小作为当前 编辑电子邮件的邮件体大小基准, 在用户输入正文内容和 /或插入附件时, 直 接在邮件体标准大小上累加正文内容大小和 /或附件大小就可获得当前编辑 电子邮件的邮件体大小。 同样地, 虽然本发明技术方案所得到的邮件体大小 是电子邮件体的编辑大小,但由于邮件体标准大小是经过编码后的实际大小, 因此邮件体的编辑大小与编码大小的误差可以控制在极微小的范围内。 实际 应用中, 步骤 222可以先于步骤 221执行, 或两者同步执行。 图 4为本发明实施例精确获得终端电子邮件大小的装置的结构示意图。 本发明精确获得终端电子邮件大小的装置包括参数模块、 处理模块和邮件模 块, 其中, 参数模块设置为: 从终端文件系统提取预先设置的标准邮件模板, 所述 标准邮件模板作为电子邮件的标准大小; 处理模块与参数模块连接, 处理模块设置为: 获取用户编辑所述电子邮 件的输入内容的大小, 才艮据所述输入内容的大小和作为电子邮件标准大小的 标准邮件模板获得电子邮件的邮件头大小和邮件体大小; 以及 邮件模块与处理模块连接, 邮件模块设置为: 将所述邮件头大小和邮件 体大小相加, 获得当前编辑的电子邮件大小并显示出来, 从而支持精确获得终端电子邮件大小。 本发明处理模块包括第一获取单元、 处理单元和邮件头单元; 其中, 第一获取单元与参数模块连接, 第一获取单元设置为: 获取用户编辑邮 件头每个字段输入内容的大小; 处理单元与第一获取单元连接, 处理单元设置为: 将每个字段输入内容 的大小与所述标准邮件模板中邮件头对应字段标准大小相减, 获得每个字段 的字段差值; 以及
邮件头单元分别与处理单元和邮件模块连接, 邮件头单元设置为: 将每 个字段的字段差值与所述标准邮件模板中邮件头标准大小相加, 获得当前编 辑电子邮件的邮件头大小, 并向所述邮件模块发送。 本发明处理模块还包括第二获取单元、 提取单元和邮件体单元, 其中, 第二获取单元与参数模块连接, 第二获取单元设置为: 获取用户编辑邮 件体时用户输入的正文内容大小和 /或用户插入的附件大小; 提取单元与参数模块连接, 提取单元设置为: 提取所述标准邮件模板中 邮件体标准大小; 邮件体单元分别与第二获取单元、 提取单元和邮件模块连接, 邮件体单 元设置为: 将所述邮件体标准大小与所述正文内容大小和 /或附件大小相加, 获得当前编辑电子邮件的邮件体大小, 并向所述邮件模块发送。 本发明精确获得手机终端电子邮件大小的装置中标准邮件模板已在前述 本发明精确获得手机终端电子邮件大小的方法技术方案中详细介绍, 这里不 再赘述。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。
工业实用性 本发明提出了一种精确获得终端电子邮件大小的方法和装置, 通过引入 作为电子邮件标准大小的标准邮件模板, 并将标准邮件模板作为当前编辑电 子邮件的大小基准, 可精确获得终端编辑的电子邮件的大小, 将手机终端显 示的电子邮件的编辑大小与其编码大小的误差控制在极微小的范围内, 有效 避免了因该误差造成电子邮件不能发送或保存的情况, 大大提高了手机终端 电子邮件应用的整体性能, 提高了手机终端电子邮件应用的用户体验。

Claims

权 利 要 求 书
1、 一种获得终端电子邮件大小的方法, 其包括:
从终端文件系统提取预先设置的标准邮件模板, 并将所述标准邮件模板 作为电子邮件的标准大小;
获取用户编辑所述电子邮件时的输入内容的大小, 才艮据所述输入内容的 大小和标准邮件模板获得电子邮件的邮件头大小和邮件体大小; 以及 将所述邮件头大小和邮件体大小相加, 获得并显示电子邮件大小。
2、如权利要求 1所述的方法, 其中,根据所述输入内容的大小和标准邮 件模板获得电子邮件的邮件头大小的步骤包括:
获取用户编辑所述电子邮件的邮件头时邮件头的每个字段输入内容的大 小;
将每个字段输入内容的大小与所述标准邮件模板中邮件头对应字段的标 准大小相减, 获得每个字段的字段差值; 以及
将每个字段的字段差值与所述标准邮件模板中邮件头标准大小相加, 获 得当前编辑电子邮件的邮件头大小。
3、如权利要求 1所述的方法, 其中,根据所述输入内容的大小和标准邮 件模板获得电子邮件的邮件体大小的步骤包括: 用户插入的附件大小; 提取所述标准邮件模板中邮件体标准大小; 以及
将所述邮件体标准大小与所述正文内容大小和 /或附件大小相加,获得用 户编辑的电子邮件的邮件体大小。
4、 如权利要求 1 ~ 3中任一项所述的方法, 其中, 所述标准邮件模板为空邮件的编码参数表, 所述编码参数表包括空邮件 编码后对应的邮件体标准大小、 邮件头标准大小和邮件头中每个字段的标准 大小。
5、如权利要求 4所述的方法, 其中, 所述空邮件为正文和附件都为空的 电子邮件。
6、 如权利要求 4所述的方法, 其中, 所述邮件体标准大小是对一个空的邮件体进行编码后得到的邮件体大 小;所述邮件头标准大小是对一个空的邮件头进行编码后得到的邮件头大小; 以及, 所述邮件头中每个字段的标准大小是对一个空的字段进行编码后得到 的邮件头大小。
7、 一种获得终端电子邮件大小的装置, 其包括: 参数模块, 其设置为: 从终端文件系统提取预先设置的标准邮件模板, 并将所述标准邮件模板作为电子邮件的标准大小; 处理模块, 与所述参数模块连接, 所述处理模块设置为: 获取用户编辑 所述电子邮件时的输入内容的大小, 根据所述输入内容的大小和标准邮件模 板获得电子邮件的邮件头大小和邮件体大小; 以及 邮件模块, 与所述处理模块连接, 所述邮件模块设置为: 将所述邮件头 大小和邮件体大小相加, 获得并显示电子邮件大小。
8、 如权利要求 7所述装置, 其中, 所述处理模块包括: 第一获取单元, 与所述参数模块连接, 所述第一获取单元设置为: 获取 用户编辑所述电子邮件的邮件头时邮件头的每个字段输入内容的大小; 处理单元, 与所述第一获取单元连接, 所述处理单元设置为: 将每个字 段输入内容的大小与所述标准邮件模板中邮件头对应字段的标准大小相减, 获得每个字段的字段差值; 以及 邮件头单元, 分别与所述处理单元和邮件模块连接, 所述邮件头单元设 置为: 将每个字段的字段差值与所述标准邮件模板中邮件头标准大小相加, 获得当前编辑电子邮件的邮件头大小, 并向所述邮件模块发送。
9、 如权利要求 7所述的装置, 其中, 所述处理模块包括: 第二获取单元, 与所述参数模块连接, 所述第二获取单元设置为: 获取 的附件大小; 提取单元, 与所述参数模块连接, 所述提取单元设置为: 提取所述标准 邮件模板中邮件体标准大小; 以及
邮件体单元, 分别与所述第二获取单元、 提取单元和邮件模块连接, 所 述邮件体单元设置为:将所述邮件体标准大小与所述正文内容大小和 /或附件 大小相加, 获得当前编辑电子邮件的邮件体大小, 并向所述邮件模块发送。
10、如权利要求 7 ~ 9中任一项所述的装置, 其中, 所述标准邮件模板为 空邮件的编码参数表, 所述编码参数表包括空邮件编码后对应的邮件体标准 大小、 邮件头标准大小和邮件头中每个字段的标准大小。
11、如权利要求 10所述的装置, 其中, 所述空邮件为正文和附件都为空 的电子邮件。
12、如权利要求 10所述的装置, 其中, 所述邮件体标准大小是对一个空 的邮件体进行编码后得到的邮件体大小; 所述邮件头标准大小是对一个空的 邮件头进行编码后得到的邮件头大小; 所述邮件头中每个字段标准大小是对 一个空的字段进行编码后得到的邮件头大小。
PCT/CN2010/072133 2010-01-29 2010-04-23 获得终端电子邮件大小的方法和装置 WO2011091628A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP10844406.8A EP2530893B1 (en) 2010-01-29 2010-04-23 Method and apparatus for obtaining size of emails of terminal
US13/257,668 US8484304B2 (en) 2010-01-29 2010-04-23 Method and apparatus for obtaining size of emails of terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010107575.5 2010-01-29
CN2010101075755A CN101778167B (zh) 2010-01-29 2010-01-29 精确获得手机终端电子邮件大小的方法和装置

Publications (1)

Publication Number Publication Date
WO2011091628A1 true WO2011091628A1 (zh) 2011-08-04

Family

ID=42514489

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072133 WO2011091628A1 (zh) 2010-01-29 2010-04-23 获得终端电子邮件大小的方法和装置

Country Status (4)

Country Link
US (1) US8484304B2 (zh)
EP (1) EP2530893B1 (zh)
CN (1) CN101778167B (zh)
WO (1) WO2011091628A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207892A (zh) * 2015-08-31 2015-12-30 深圳官邮信息软件平台有限公司 邮件发送方法及装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9621427B1 (en) * 2013-12-06 2017-04-11 Vmware, Inc. Automatic placement of clients in a distributed computer system satisfying constraints
US10423699B1 (en) * 2015-12-21 2019-09-24 Amazon Technologies, Inc. Displaying the position of a message within a conversation
US10325013B2 (en) * 2017-02-16 2019-06-18 Wipro Limited Method of optimizing space utilization in a document and a space optimization system thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980407A (zh) * 2005-11-29 2007-06-13 上海人讯信息科技有限公司 一种在手机上接受和发送电子邮件信息的方法
JP2009177432A (ja) * 2008-01-23 2009-08-06 Fujitsu Ltd 電子メール中継システム、電子メール中継方法、およびコンピュータプログラム
CN101515905A (zh) * 2009-04-02 2009-08-26 网易(杭州)网络有限公司 一种电子邮箱建立方法及系统
CN101527692A (zh) * 2009-03-30 2009-09-09 网易(杭州)网络有限公司 一种邮件暂存方法及系统
US20100011076A1 (en) * 2008-07-09 2010-01-14 Research In Motion Limited Optimizing the delivery of formatted email messages
CN101635898A (zh) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 实现彩信邮件的方法及彩信邮件业务网关

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US1980407A (en) * 1932-08-29 1934-11-13 Frank E Housh Safety razor blade honer
US7010478B2 (en) * 2001-02-12 2006-03-07 Microsoft Corporation Compressing messages on a per semantic component basis while maintaining a degree of human readability
US7050408B2 (en) * 2001-09-26 2006-05-23 Microsoft Corporation Communicating multi-part messages between cellular devices using a standardized interface
US8095766B2 (en) * 2008-04-07 2012-01-10 International Business Machines Corporation Method and system for approximating object sizes in an object-oriented system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980407A (zh) * 2005-11-29 2007-06-13 上海人讯信息科技有限公司 一种在手机上接受和发送电子邮件信息的方法
JP2009177432A (ja) * 2008-01-23 2009-08-06 Fujitsu Ltd 電子メール中継システム、電子メール中継方法、およびコンピュータプログラム
US20100011076A1 (en) * 2008-07-09 2010-01-14 Research In Motion Limited Optimizing the delivery of formatted email messages
CN101527692A (zh) * 2009-03-30 2009-09-09 网易(杭州)网络有限公司 一种邮件暂存方法及系统
CN101515905A (zh) * 2009-04-02 2009-08-26 网易(杭州)网络有限公司 一种电子邮箱建立方法及系统
CN101635898A (zh) * 2009-08-24 2010-01-27 中兴通讯股份有限公司 实现彩信邮件的方法及彩信邮件业务网关

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2530893A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207892A (zh) * 2015-08-31 2015-12-30 深圳官邮信息软件平台有限公司 邮件发送方法及装置

Also Published As

Publication number Publication date
EP2530893A4 (en) 2013-09-11
US20120324021A1 (en) 2012-12-20
CN101778167B (zh) 2013-08-07
CN101778167A (zh) 2010-07-14
EP2530893B1 (en) 2016-10-26
EP2530893A1 (en) 2012-12-05
US8484304B2 (en) 2013-07-09

Similar Documents

Publication Publication Date Title
US9832147B2 (en) Email sending and receiving method and terminal
US9240966B2 (en) System and method for transmitting and receiving media messages
EP3068070B1 (en) Method and device for initiating network conference
US8650257B2 (en) Method, system and mobile terminal for processing short message
CN103326923B (zh) 一种信息共享的方法及装置
CN112073307B (zh) 邮件处理方法、装置、电子设备及计算机可读介质
CN103167428B (zh) 图片适配方法、手机报推送装置与系统
US11126784B2 (en) Methods, systems, and apparatus for email to persistent messaging
CN107786415B (zh) 一种业务处理方法及相关设备与系统
WO2014183267A1 (zh) 消息发送方法、消息阅读通知方法、消息接收方法及装置
WO2011091628A1 (zh) 获得终端电子邮件大小的方法和装置
CN107580306A (zh) 一种转发多媒体消息的方法和系统
CN108769782A (zh) 一种多设备间屏幕内容同步批注的方法及系统
US20100017485A1 (en) Enforcing conformance in email content
WO2014187397A1 (zh) 多媒体消息的发布方法及装置
CN103442256B (zh) 一种基于html5实现电子节目菜单的方法及系统
WO2017167068A1 (zh) 电话号码的变更校验方法、装置和系统
EP2479945A1 (en) Multimedia ring tone display method and system for instant messaging
CN103036762A (zh) 即时通信中的信息处理方法和装置
CN107688978A (zh) 用于检测重复订单信息的方法及装置
KR100620331B1 (ko) 엠엠에스 전송처리 과정 추적 및 표시가 가능한 엠엠에스 모니터링부와 이를 구비하는 엠엠에스 전송처리 검증 시스템 및 이를 이용한 전송처리 검증 방법
TWI267273B (en) Method and mobile apparatus of receiving a multimedia message
CN102347945A (zh) 一种移动终端音乐播放器异常反馈的方法和系统
CN109194629A (zh) 一种移动终端及其回传数据的方法
US8738049B1 (en) Converged dialog in hybrid mobile applications

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13257668

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2010844406

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2010844406

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE