Specific embodiment
Purpose, technical scheme and advantage for making embodiment of the present invention are clearer, below in conjunction with accompanying drawing to thisBright each embodiment is explained in detail.However, it will be understood by those skilled in the art that respectively implementing in the present inventionIn mode, in order that reader more fully understands that the application proposes many ins and outs.But, even if not having these technology thinSection and the many variations based on following embodiment and modification are it is also possible to realize the application technical scheme required for protection.
The first embodiment of the present invention is related to a kind of mail read method, and present embodiment is read with mail reading deviceAs a example the method for mail.Its flow process is as shown in figure 1, specific as follows:
Step 101, when receiving the instruction opening a mail, in spatial cache, retrieval is with the presence or absence of postal to be openedPart, if being judged as NO, enters step 102;If being judged as YES, enter step 103.
Specifically, above-mentioned spatial cache can be default, when user clicks on link or the search of a certain mailDuring certain key word, this mail or have this key word mail be mail to be opened.In particular, dress is read by mailPut and receive the order opening mail to be opened, then in spatial cache, enter line retrieval using the title of mail to be opened.
Step 102, the content of mail is preserved to spatial cache.
This step is to have judged that mail to be opened is not stored in spatial cache, and mail reading device can be downloaded using network,The content of mail to be opened is preserved to spatial cache.
Specifically, step 102 includes sub-step 1021 to sub-step 1023.
Sub-step 1021, judges whether the number of mail in spatial cache is more than preset value, if being judged as YES, enters stepRapid 1023;If being judged as NO, enter step 103.
Specifically, during preserving the content of mail to spatial cache, mail reading device also can voluntarily be examinedSurvey whether the number of mail in spatial cache is more than preset value, to avoid the mail in spatial cache excessive, thus avoid as far as possibleThe fluency of the electronic equipment of impact user.
Wherein, in the present embodiment, the preset value allowing the number of mail preserving in spatial cache is 5 envelopes.However, it is slowDeposit the size not limited to this in space, in other embodiments, the size of spatial cache can be other numerical value.
Sub-step 1022, judges whether spatial cache is full, if being judged as YES, enters step 1033;If being judged as NO,Then enter step 103.
Specifically, mail reading device also can voluntarily detect whether the capacity of spatial cache is full, to avoid caching emptyBetween capacity excessive, then further avoid affect user electronic equipment fluency.
Wherein, in present embodiment, the size of spatial cache can be 5,000,000, however, the size of spatial cache is not limited toThis, in other embodiments, the size of spatial cache can be other numerical value.
It is noted that in practical application, the order of sub-step 1021 and sub-step 1022 is not limited to shown in Fig. 1,In other embodiment, the order of sub-step 1021 and sub-step 1022 can be contrary, is not seated herein and repeats.
Sub-step 1023, deletes holding time earliest mail.
In sum, the mail reading device in step 103 can voluntarily detect number of mail and the space of spatial cacheCapacity, and when any one numerical value exceedes predetermined value, voluntarily deletes holding time earliest mail, to save spatial cacheSpace.
Step 103, transfers from spatial cache and belongs to the content of mail and shown.
Specifically, there is mail to be opened in spatial cache, mail reading device directly transfers genus from spatial cacheIn the content of mail and shown;There is not mail to be opened in spatial cache, mail reading device is downloaded from network, preserveIn spatial cache, then transfer from spatial cache and belong to the content of mail and shown.
Present embodiment in terms of existing technologies, has default spatial cache due in mail reading device, so,Mail reading device, when opening mail, first can retrieve mail to be opened from spatial cache, when retrieving postal to be openedWhen part is present in spatial cache, directly transferring from spatial cache and show, downloading without using network it is clear that utilizing above-mentionedThe speed that method opens mail will greatly speed up, and save the time of user.In addition, work as detecting that mail to be opened does not existIn spatial cache, then downloaded using network and preserve to spatial cache, thus not impact user is using moreover it is possible to facilitate under userSecondary this mail of quick reading;And, mail reading device also can voluntarily detect the quantity of mail in spatial cache, and in mail numberAmount is when reaching preset value, voluntarily deletes holding time earliest mail, it can be avoided that spatial cache number of mail is excessive, thus to the greatest extentAmount avoids affecting the fluency of the electronic equipment of user.
Second embodiment of the present invention is related to a kind of mail read method.Second embodiment is first embodimentImprove, mainly the improvement is that:In second embodiment of the invention, mail reading device is only by the character portion of Mail ContentsCode insurance is deposited to spatial cache, also only has word segment from what spatial cache was transferred.So as to occupy less caching as far as possibleSpatial content, preserves more information, and presents to the more information of user with speed faster, can improve spatial cacheService efficiency.
Flow chart in present embodiment is as shown in Fig. 2 specific as follows:
Step 201, when receiving the instruction opening a mail, in spatial cache, retrieval is with the presence or absence of postal to be openedPart, if being judged as NO, enters step 202;If being judged as YES, enter step 203.
Specifically, be preset with a spatial cache in mail reading device, when user click on a certain mail link orWhen searching for certain key word, this mail or have this key word mail be mail to be opened.Mail reading device can receiveTo the order opening mail to be opened, then in spatial cache, enter line retrieval using the title of mail to be opened.
Step 202, the content of mail is preserved to spatial cache.
This step is to have judged that mail to be opened is not stored in spatial cache, and mail reading device can be downloaded using network,Word segment in the content of mail to be opened is preserved to spatial cache.
Specifically, step 202 includes sub-step 2021 to sub-step 2023.
Sub-step 2021, judges whether the number of mail in spatial cache is more than preset value, if being judged as YES, enters stepRapid 2023;If being judged as NO, enter step 203.
Specifically, during preserving the content of mail to spatial cache, mail reading device also can voluntarily be examinedSurvey whether the number of mail in spatial cache is more than preset value, to avoid the mail in spatial cache excessive, thus avoid as far as possibleThe fluency of the electronic equipment of impact user.
Wherein, in the present embodiment, the preset value allowing the number of mail preserving in spatial cache is 5 envelopes.However, it is slowDeposit the size not limited to this in space, in other embodiments, the size of spatial cache can be other numerical value.
Sub-step 2022, judges whether spatial cache is full, if being judged as YES, enters step 2033;If being judged as NO,Then enter step 203.
Specifically, mail reading device also can voluntarily detect whether the capacity of spatial cache is full, to avoid caching emptyBetween capacity excessive, then further avoid affect user electronic equipment fluency.
Wherein, in present embodiment, the size of spatial cache can be 5,000,000, however, the size of spatial cache is not limited toThis, in other embodiments, the size of spatial cache can be other numerical value.
It is noted that in practical application, the order of sub-step 2021 and sub-step 2022 is not limited to shown in Fig. 1,In other embodiment, the order of sub-step 2021 and sub-step 2022 can be contrary, is not seated herein and repeats.
Sub-step 2023, deletes holding time earliest mail.
In sum, the mail reading device in step 203 can voluntarily detect number of mail and the space of spatial cacheCapacity, and when any one numerical value exceedes predetermined value, voluntarily deletes holding time earliest mail, to save spatial cacheSpace.
Step 203, transfers from spatial cache and belongs to the content of mail and shown.
Mail read method in present embodiment only transfers the word segment belonging in Mail Contents from spatial cacheShown.
Specifically, step 203 includes sub-step 2031 and sub-step 2032.
Sub-step 2031, judges whether include Picture section in the content of mail, if being judged as YES, enters step2032, if being judged as NO, process ends.
Sub-step 2032, in Picture section corresponding position display special icon.
Wherein, icon includes the picture address of correspondence position.
Described in combining step 203, mail reading device can judge whether wrap in Mail Contents before display Mail ContentsInclude Picture section, when judging to include Picture section, display word partly normally show word, figure should shownThe position display special icon of piece part, such as, special icon is " display picture please click on XXX ", and picture address can be hiddenIn special icon, user will not see in every day use, to ensure the salubrious, clean of the page;When judging not includeDuring Picture section, mail reading device can be transferred the word segment belonging in Mail Contents from spatial cache and be shown.
Step 204, detect special icon clicked when, the picture address download pictures being included according to special icon.
Wherein, mail reading device be not detected by special icon clicked when, the corresponding position of Picture section still showsSpecial icon.
It is noted that in actual applications, the content that mail includes is not limited to picture, also has video, audio frequency etc.,Its display packing can be identical with the display packing of picture, does not repeat herein.
With respect to prior art, present embodiment can not only be more fully hereinafter using spatial cache, but also can basisThe needing of user opens other guide, it is ensured that the demand of user while accelerating mail opening speed, more meets practical applicationScene.
The step of various methods divides above, is intended merely to describe clear, can merge into when realizing a step orSome steps are split, is decomposed into multiple steps, as long as including identical logical relation, all in the protection domain of this patentInterior;To adding inessential modification in algorithm or in flow process or introducing inessential design, but do not change its algorithmWith the core design of flow process all in the protection domain of this patent.
It will be appreciated by those skilled in the art that all or part of step realized in above-described embodiment method can be byProgram to complete come the hardware to instruct correlation, and this program storage, in a storage medium, includes some instructions use so that oneIndividual equipment (can be single-chip microcomputer, chip etc.) or processor (processor) execute each embodiment methods described of the applicationAll or part of step.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journeyThe medium of sequence code.
Third embodiment of the invention is related to a kind of mail reading device, as shown in figure 3, mail reading device includes:In advanceIf module, retrieving module, transfer module and preserving module.
Presetting module, for presetting a spatial cache;Retrieval module, for when receiving the instruction opening a mail,Mail to be opened is retrieved in spatial cache;Transfer module, for determining that the mail that need to open is present in caching in retrieval moduleDuring space, transfer from spatial cache and belong to the content of mail and shown;Preserving module, for determining and need to beat in retrieval moduleThe mail opened, not in spatial cache, the content of mail is preserved to spatial cache.
It should be noted that specifically including in preserving module in present embodiment:First deletion submodule, for slowWhen depositing the number of mail in space and reaching preset value, delete holding time earliest mail.
Present embodiment in terms of existing technologies, has default spatial cache due in mail reading device, so,Mail reading device, when opening mail, first can retrieve mail to be opened from spatial cache, when retrieving postal to be openedWhen part is present in spatial cache, directly transferring from spatial cache and show, downloading without using network it is clear that utilizing above-mentionedThe speed that method opens mail will greatly speed up, and save the time of user.In addition, work as detecting that mail to be opened does not existIn spatial cache, then downloaded using network and preserve to spatial cache, thus not impact user is using moreover it is possible to facilitate under userSecondary this mail of quick reading;And, mail reading device also can voluntarily detect the quantity of mail in spatial cache, and in mail numberAmount is when reaching preset value, voluntarily deletes holding time earliest mail, it can be avoided that spatial cache number of mail is excessive, thus to the greatest extentAmount avoids affecting the fluency of the electronic equipment of user.
It is seen that, present embodiment is the system embodiment corresponding with first embodiment, and present embodiment can be withFirst embodiment is worked in coordination enforcement.The relevant technical details mentioned in first embodiment still have in the present embodimentEffect, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable inIn first embodiment.
Four embodiment of the invention is related to a kind of mail reading device, and present embodiment is institute on the 3rd embodimentThe improvement done, the spatial cache of first embodiment is only cleared up according to the number of mail preserving, and in present embodiment, depositsStorage space is also cleared up according to the occupancy of capacity.Using multiple cleaning mechanism so that when using spatial cache, more meetingActual demand, more reasonably utilizes memory space.
In present embodiment, the schematic diagram of mail reading device is as shown in figure 4, specifically include:Presetting module, retrieval module,Transfer module and preserving module.
Presetting module, for presetting a spatial cache;Retrieval module, for when receiving the instruction opening a mail,Mail to be opened is retrieved in spatial cache;Transfer module, for determining that the mail that need to open is present in caching in retrieval moduleDuring space, transfer from spatial cache and belong to the content of mail and shown;Preserving module, for determining and need to beat in retrieval moduleThe mail opened, not in spatial cache, the content of mail is preserved to spatial cache.
Specifically include in preserving module:First deletion submodule, reaches default for the number of mail in spatial cacheDuring value, delete holding time earliest mail.
It should be noted that also including in preserving module in present embodiment:Second deletion submodule, in cachingWhen space is expired, the step that holding time earliest mail is deleted in execution.
With respect to prior art, present embodiment can not only be more fully hereinafter using spatial cache, but also can basisThe needing of user opens other guide, it is ensured that the demand of user while accelerating mail opening speed, more meets practical applicationScene.
It is noted that involved each module in present embodiment is logic module, in actual applications, oneIndividual logical block can be a part for a physical location or a physical location, can also be with multiple physics listsThe combination of unit is realized.Additionally, for the innovative part projecting the present invention, will not be with solution institute of the present invention in present embodimentThe unit that the technical problem relation of proposition is less close introduces, but this is not intended that in present embodiment there are not other listsUnit.
Additionally, above-mentioned embodiment can also in actual applications, the processor using mobile terminal is realized, specificallySay, processor is waited to beat for when receiving the instruction opening a mail, retrieving in spatial cache for presetting a spatial cacheThe mail opened;For when retrieval module determines that the mail that need to open is present in spatial cache, transferring from spatial cache and belonging toThe content of mail is shown;For when retrieval module determines the mail that need to open not in spatial cache, by the content of mailPreserve to spatial cache;When the number of mail being additionally operable in spatial cache reaches preset value, delete holding time earliest postalPart;Or it is used for when spatial cache is expired, the step that holding time earliest mail is deleted in execution.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention,And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.