[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101527887B - Processing method in mail receiving process - Google Patents

Processing method in mail receiving process Download PDF

Info

Publication number
CN101527887B
CN101527887B CN200810082738.1A CN200810082738A CN101527887B CN 101527887 B CN101527887 B CN 101527887B CN 200810082738 A CN200810082738 A CN 200810082738A CN 101527887 B CN101527887 B CN 101527887B
Authority
CN
China
Prior art keywords
mail
memory buffer
data
size
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200810082738.1A
Other languages
Chinese (zh)
Other versions
CN101527887A (en
Inventor
黄可
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wang Huaqun
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200810082738.1A priority Critical patent/CN101527887B/en
Publication of CN101527887A publication Critical patent/CN101527887A/en
Application granted granted Critical
Publication of CN101527887B publication Critical patent/CN101527887B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a processing method in the mail receiving process. In the method, during receiving a mail, the size of the mail is acquired and is compared with the remaining mail memory space of a terminal; and if the size is larger than the remaining memory space, only the mail head of the mail is received; otherwise, the mail is determined to be saved directly or in batches according to the size of the mail. The processing method does not miss out mail information of a mail required to be received, and disperses the time for the terminal to save the mail so as to improve the usability of the terminal.

Description

Processing method in a kind of mail reception
Technical field
The present invention relates to mail reception technology, particularly relate to the processing method in a kind of mail reception.
Background technology
Along with the increase of the foundation of 3G network, information storage capacity, the high speed development of high integration technology and increasing substantially of network speed, the application of mobile phone terminal is not only confined to simple communication aspect, then to the development in diversification direction.At present, the a large amount of data service, JAVA program, video telephone etc. such as multimedia service, Email, MMS (Multimedia Message Service) (MMS), WAP (wireless application protocol) (WAP) is all applied on mobile phone terminal, present mobile phone terminal is made to integrate communication, amusement, commercial affairs, data service etc., the multitask PC small-sized just as one, brings more convenient and enjoyment to user.
The business supported due to present mobile phone terminal is numerous, to mobile phone terminal, user supports that the concurrent demand of multi-service also increases day by day, particularly multiple data service is concurrent, as: user is while the multimedia services such as operation MP3, MP4, also need the transmitting-receiving carrying out Email, or webpage is browsed.This each data service carrying out concurrent operations, all needs consumption of network resources and terminal hardware resource, therefore, has higher requirement to the performance etc. of network speed, terminal.Once described requirement can not be reached, just may bring the stagnation time delay in terminal operation, and for user, always wish in the operation carrying out data service, during transmitting-receiving etc. as Email, the carrying out that the broadcasting of multimedia video, audio frequency can be smooth.Therefore, when occurring to stagnate time delay, Consumer's Experience can be affected.
But in the prior art, the mail receiving method in mobile phone terminal as shown in Figure 1, comprising:
Step 101: judge whether email accounts is arranged, as arranged, then performs step 105; Otherwise, perform step 102.
Step 102: point out and wait for that user carries out the setting of account data, and after user is provided with, perform step 103.
Wherein, if when first time carries out the arranging of email accounts, also need to point out user to carry out the setting of whether automatic reception mail, that is: user can be set to manually receive mail, or automatic reception mail.When being set to automatic reception mail, user also needs the time interval arranging automatic reception.The length in the described time interval can be provided by terminal and arrange interface accordingly, is independently set, do not limit here by user according to actual conditions.
And, required content of being undertaken arranging by user above, terminal all can provide corresponding interface independently to be arranged at any time by user or changed and arrange, specifically how to realize described interface, how to carry out described setting and how to change setting very known in the prior art, repeat no more here.
Step 103: carry out Effective judgement to the email accounts data arranged, if account data is effective, then performs step 105, otherwise, perform step 104.
Wherein, in this step, the Effective judgement of account data mainly carries out the judgement of syntactical validity to account data.
Step 104: prompting user re-enters account data, and after waiting for that user inputs account data, returns step 103, carries out Effective judgement to new email accounts data.
Step 105: enter mailbox interface, starts to receive mail.
Due in a step 101, user has been provided with automatic or manual and has received mail, therefore, generally also needs the inquiry carrying out arranging for user in this step, if for manually to receive mail, then needs the instruction of the confirmation reception mail of user before receiving mail; If for automatic reception mail, then can time interval set by user, terminal automatically starts to carry out network connection after the corresponding time, and the reception of mail.
Step 106: judge that whether terminal state connected to the network is normal, if normally, then perform step 107; If network connection state is off or network configuration is incorrect, then stops the reception of mail, and point out user, current handling process terminates.
Wherein, can independently arrange the suggestion content of user, such as, to user's prompting " network connection failure " etc.Specifically how to realize described prompting very known in the prior art, repeat no more here.
Step 107: carry out address validity judgement to email accounts data, if the described account data of input is effective, then performs step 108; Otherwise stop the reception of mail, and point out accordingly to user, current handling process terminates.
Wherein, carry out network connection judgment in step 106, therefore, the judgement of email accounts data address validity has been carried out at corresponding mail server, after mail server judges that the email address indicated by email accounts data is effective, mail server and terminal are carried out alternately.
Wherein, can independently arrange the content of user's prompting, such as, to user's prompting " address is invalid " etc.
Step 108: obtain the required size receiving mail, and compare with the email storage space of terminal residual, if mail size is greater than email storage space, then stops the reception of mail, and point out accordingly user, current handling process terminates; Otherwise, carry out the reception of mail, and after finishing receiving, preserve described mail.
Wherein, in step 107, terminal can carry out information interaction with mail server, and now, before acquisition Mail Contents, first terminal obtains the size of the required mail received to mail server.
Wherein, can independently arrange the content of user's prompting, such as, to user's prompting " memory space inadequate " etc.
Known from the above description, this mail receiving method has following shortcoming:
First, terminal, when email storage insufficient space, directly rejects mail, and user cannot obtain any information about required reception mail;
Secondly, take when mail reception first to receive, finish receiving after the strategy that stores again, if when the mail capacity received is larger, will too much cpu resource be taken be used for the reception of this mail, thus have influence on other data services of executed in parallel, and then affect Consumer's Experience.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of mail receiving method, can not omit the required e-mail messages receiving mail, and taking cpu resource when reducing Large Copacity mail reception, strengthen Consumer's Experience.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides the processing method in a kind of mail reception, the method comprises:
During mail reception, first obtain the size of mail, and compare with the email storage space of terminal residual, if be greater than described memory space, receive only the mail head of this mail; Otherwise, determine that this mail is directly preserved or preserves in batches according to the size of mail.
Wherein, the described size according to mail is determined to be specially: arrange and directly preserve threshold value, when mail size is greater than described direct preservation threshold value, preserves this mail in batches; When mail size is not more than described direct preservation threshold value, directly preserve this mail.
Described method of in batches preserving is:
A, open up memory buffer;
B, the mail data received is stored in described memory buffer;
When determining described memory buffer without residual memory space while c, reception mail data, mail data in the described memory buffer of additional preservation is in temporary file, afterwards, empty memory buffer, continue the mail data receiving this mail, circulation like this, until mail data receives and preserves complete.
Step c comprises further: determine that described memory buffer exists residual memory space while receiving mail data, and when determining that mail data receives, preserves the mail data in memory buffer, and empty memory buffer.
Step c comprises further: determine that described memory buffer exists residual memory space while receiving mail data, and when determining that mail data does not receive, return step b.
Taking a step forward of this processing method comprises:
Terminal use arranges after correct account data enters mailbox, and whether terminal judges network connects normal, if normally, after determining that email address specified by account data effectively, starts mail reception; Otherwise current handling process terminates.
Steps A 0 comprises further: when determining that email address specified by account data is invalid, current handling process terminates.
Described direct storage threshold is 10KB.
The size of the described memory buffer of opening up is: 1MB.
Processing method in mail reception provided by the present invention, when the size of required reception mail is greater than the email storage space of terminal residual, receive and preserve the mail head of this mail, by this mail head, user can obtain the information such as the sender of this mail, thus can not omit the required e-mail messages receiving mail; When the size of required reception mail is not more than the email storage space of terminal residual, when the mail data amount of required reception is larger, open up memory buffer, carry out the buffer memory of received mail data, and in memory buffer without memory space time, mail data in additional preservation memory buffer is in temporary file, afterwards, continue again to receive mail data, thus achieve the reception in batches of mail data, store in batches, thus decrease taking for cpu resource, increase the applicability of terminal, and then enhance Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the mail receiving method schematic flow sheet of terminal in prior art;
Fig. 2 is mail receiving method schematic flow sheet of the present invention.
Embodiment
Basic thought of the present invention is: when the email storage insufficient space of terminal residual is to preserve the required mail received, receives only mail head and preserve; Otherwise, when determining to receive this mail according to the size of mail, whether open up memory buffer.Further, when the size of mail is greater than the memory space of memory buffer, mail is received in batches, preserves in batches, to reduce taking of cpu resource.
Below, the realization of processing method in mail reception of the present invention is described with reference to the accompanying drawings by specific embodiment.
Fig. 2 is mail receiving method schematic flow sheet of the present invention, and as shown in Figure 2, the method comprises:
Step 101 shown in step 201 ~ step 207 with Fig. 1 ~ step 107 is identical, repeats no more here.
Step 208: obtain the required size receiving mail, and compare with the email storage space of terminal residual, if mail size is greater than email storage space, then receives the mail head of this mail, and preserve, current handling process terminates; Otherwise, perform step 209.
Wherein, described mail head comprises: sender, addressee, outbox time, the information such as people, theme of making a copy for.Because mail head's size is less, so can directly receive, and preserve after receiving.
Wherein, obtain the required size receiving mail to obtain from corresponding mail server.
Step 209: compare the size of mail and direct storage threshold, if be greater than described direct storage threshold, performs step 210; Otherwise, directly receive mail, receive the described mail of rear storage.
Wherein, the size of described direct storage threshold can independently be arranged in actual applications, does not limit here.But this value needs to be set to reasonable value according to actual application environment, because if when this value arranges excessive, the advantage that the present invention stores for mail in batches possibly cannot be embodied; And arrange too small time, to need to preserve again by opening up buffering area in subsequent step because of having too much mail again, thus the complexity receiving step of mail.Described direct storage threshold can be added up by experiment and obtain, or, generally also this value can be set to 10KB.
Step 210: open up memory buffer.
Wherein, the size of memory buffer can independently be arranged in actual applications, does not limit here.But, this value need be set to reasonable value according to actual application environment, because if by the size of described memory buffer arrange excessive time, then need equally to take the reception that more cpu resource carries out mail data; And if arrange too small time, then can because of same mail, when preserving, required cycle-index of carrying out is too much in batches, and the mail reception speed that slows down.The size of memory buffer can be added up by experiment and be obtained, or, generally also the size of memory buffer can be set to 1MB.
Wherein, it is very known in the prior art how to open up memory buffer, repeats no more here.
Step 211: start the reception carrying out mail data, and the mail data received is kept in described memory buffer; Meanwhile, in the process receiving mail data, judge whether memory buffer still has memory space, if not, perform step 212; If so, step 213 is performed.
Step 212: the mail data in the described memory buffer of additional preservation, in temporary file, afterwards, empties described memory buffer, returns step 211, continues the mail data receiving this mail.
Wherein, specifically how to add the described data of preservation very known in the prior art to temporary file, repeat no more here.
Step 213: judge whether mail receives, if so, performs step 214; Otherwise, return step 211, while reception mail data, continue to judge whether memory buffer still has memory space.
Step 214: preserve the mail data in memory buffer, afterwards, empty described memory buffer.
Wherein, there are two kinds of situations in this step:
A kind of situation is: mail size is less than the size of memory buffer.Now, order performs step 211, step 213, step 214, can obtain the complete mail after preserving.
Another kind of situation is: mail size is greater than the size of memory buffer.Now, after step 211, must step 212 be performed, by the mail data in memory buffer is stored into temporary file, then return step 211 continuation reception mail data, circulation like this, when the mail data to the last once received is stored into memory buffer, mail data cannot take memory buffer, then after step 211, to step 213 and step 214 be performed, thus obtain the complete mail of preservation.Wherein, because this mail data stores temporary file in the step 212, then, when preserving the mail data in described memory buffer at every turn, all directly continue to be saved in this temporary file, thus finally obtain complete mail document.Wherein, there is mail size is just in time the situation of the integral multiple of memory buffer, but this situation still can realize reception and the preservation of mail by above-mentioned cyclic process, finally obtain complete mail document.
Be no matter any situation in above-mentioned two situations, when preserving mail data, concrete preservation position all can independently set in actual applications, does not limit here.
Wherein, specifically email storage independently can be set wherein in the practical application of the method for the invention.
Mail receiving method shown in Fig. 2 is from the operation of step 205 ~ step 214 for carrying out for an envelope mail, after this envelope mail reception, if there are other mails still to need to receive, then directly return step 205, order performs step 205 ~ step 214 again.Or, also only can carry out the judgement of network connection state when first time receives mail, when no longer often sealing mail reception afterwards, all check network connection state, now, directly return step 208, order performs step 208 ~ step 214, and the reception that can realize mail equally stores.
In the mail receiving method shown in Fig. 2, judge that whether buffering area is without the reason of memory space in step 211, the size of mail may be greater than the memory space of described memory buffer, when mail data takes memory buffer, mail does not still receive, now, perform step 212, the mail data being stored in memory buffer received is dumped in certain temporary file, then described memory buffer is emptied, continue the reception of this mail data, this mail is just preserved when no longer waiting until that all mail datas are all downloaded complete, thus disperseed the holding time of Large Copacity mail, and save shared cpu resource.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (6)

1. the processing method in mail reception, is characterized in that, the method comprises:
During mail reception, first obtain the size of mail, and compare with the email storage space of terminal residual, if be greater than described memory space, receive only the mail head of this mail; Otherwise determine that this mail is directly preserved or preserves according to the size of mail, described method of preserving is in batches in batches:
A, open up memory buffer;
B, the mail data received is stored in described memory buffer;
When determining described memory buffer without residual memory space while c, reception mail data, mail data in the described memory buffer of additional preservation is in temporary file, afterwards, empty memory buffer, continue the mail data receiving this mail, circulation like this, until mail data receives and preserves complete;
The described size according to mail determines that this mail is directly preserved or saves as in batches: arranging and directly preserving threshold value is 10KB, when mail size is greater than described direct preservation threshold value, preserves this mail in batches; When mail size is not more than described direct preservation threshold value, directly preserve this mail.
2. processing method according to claim 1, it is characterized in that, step c comprises further: determine that described memory buffer exists residual memory space while receiving mail data, and when determining that mail data receives, preserve the mail data in memory buffer, and empty memory buffer.
3. processing method according to claim 1, is characterized in that, step c comprises further: determine that described memory buffer exists residual memory space while receiving mail data, and when determining that mail data does not receive, return step b.
4. the processing method according to any one of claims 1 to 3, is characterized in that, taking a step forward of this processing method comprises:
Terminal use arranges after correct account data enters mailbox, and whether terminal judges network connects normal, if normally, after determining that email address specified by account data effectively, starts mail reception; Otherwise current handling process terminates.
5. processing method according to claim 4, is characterized in that, steps A 0 comprises further: when determining that email address specified by account data is invalid, current handling process terminates.
6. processing method according to claim 1, is characterized in that, the size of the described memory buffer of opening up is: 1MB.
CN200810082738.1A 2008-03-05 2008-03-05 Processing method in mail receiving process Expired - Fee Related CN101527887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810082738.1A CN101527887B (en) 2008-03-05 2008-03-05 Processing method in mail receiving process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810082738.1A CN101527887B (en) 2008-03-05 2008-03-05 Processing method in mail receiving process

Publications (2)

Publication Number Publication Date
CN101527887A CN101527887A (en) 2009-09-09
CN101527887B true CN101527887B (en) 2015-05-20

Family

ID=41095537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810082738.1A Expired - Fee Related CN101527887B (en) 2008-03-05 2008-03-05 Processing method in mail receiving process

Country Status (1)

Country Link
CN (1) CN101527887B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541878B (en) * 2010-12-17 2013-12-25 新奥特(北京)视频技术有限公司 Method and device for storing project file in non-linear editing
CN105916124A (en) * 2015-10-27 2016-08-31 乐视移动智能信息技术(北京)有限公司 Mobile terminal mail main body display method and device
CN105472207A (en) * 2015-11-19 2016-04-06 中央电视台 Video and audio file rendering method and device
CN109218163B (en) * 2017-07-05 2021-05-07 北京二六三企业通信有限公司 Mail delivery method and server
CN108063818B (en) * 2017-12-18 2021-05-14 深圳市中科明望通信软件有限公司 Data downloading method, device, terminal and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215275A (en) * 1997-09-24 1999-04-28 夏普公司 E-mail sending/receiving system and method and record medium recording said method
CN1447568A (en) * 2002-03-25 2003-10-08 佳能株式会社 Communication terminal device, electronic mail receiving method, program and storage medium
US7254410B2 (en) * 2001-06-13 2007-08-07 Lg Electronics Inc. Short message reception method for mobile communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1215275A (en) * 1997-09-24 1999-04-28 夏普公司 E-mail sending/receiving system and method and record medium recording said method
US7254410B2 (en) * 2001-06-13 2007-08-07 Lg Electronics Inc. Short message reception method for mobile communication terminal
CN1447568A (en) * 2002-03-25 2003-10-08 佳能株式会社 Communication terminal device, electronic mail receiving method, program and storage medium

Also Published As

Publication number Publication date
CN101527887A (en) 2009-09-09

Similar Documents

Publication Publication Date Title
CN101527887B (en) Processing method in mail receiving process
CN103595615B (en) The method of sending and receiving of Email, terminal
EP2366255B1 (en) Apparatus and methods for providing enhanced mobile messaging services
CN102006563A (en) Information file processing method and device
CN103037338B (en) A kind of signature insertion method of contact details and communicating terminal
CN102098632A (en) Mail filtering method and mobile terminal
CN101795324A (en) Method and device for switching e-mail client account on mobile phone terminal
CN101453509A (en) Processing method for mobile phone information timed sending
CN102404248B (en) The method of converged message and mail applications and device
CN101252741A (en) Method for sending and receiving message single-card multi-standby mobile communication terminal
CN101309438A (en) Method avoiding repeated downloading identical e-mail using pop3 post office protocol
CN101155151A (en) Method and device for real-time receiving mails
CN101262665A (en) Mobile phone SMS group sending system
CN101820597A (en) Text extract forwarding method and system
CN1798386A (en) Message auto-deleted method of mobile communication terminal
CN102970211B (en) Mail reply processing method and system, mobile terminal and mail server
CN101553053B (en) Dual-SIM-card dual-standby mobile terminal and data transmission method thereof
CN102932550A (en) Method and system for backing up short messages on mobile phone to an SD card
CN103067885A (en) Method and system for sending attachments by using short message
CN104954556A (en) Message prompting method and device
CN101902520A (en) Mobile terminal and method for transmitting and storing number information in batch
CN201213296Y (en) Device for enhancing reliability of short message receiving by short message module
CN101808299A (en) Method and device for sending SMSs in preset time
CN104579921A (en) Method and device for loading e-mail
CN101854742A (en) Method and device for realizing mail transmission/reception at mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170811

Address after: 518000 Guangdong city of Shenzhen province Futian District Fuhua Road No. 6 Building 1403 business tax

Patentee after: Liu Chao

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Corporation

CB03 Change of inventor or designer information

Inventor after: Wang Huaqun

Inventor before: Huang Ke

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20170824

Address after: 321400 Zhejiang province Lishui city Jinyun County Li Li countryside wood Li village 65

Patentee after: Wang Huaqun

Address before: 518000 Guangdong city of Shenzhen province Futian District Fuhua Road No. 6 Building 1403 business tax

Patentee before: Liu Chao

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150520

Termination date: 20180305

CF01 Termination of patent right due to non-payment of annual fee