CN106850980A - The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal - Google Patents

The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal Download PDF

Info

Publication number
CN106850980A
CN106850980A CN201710039813.5A CN201710039813A CN106850980A CN 106850980 A CN106850980 A CN 106850980A CN 201710039813 A CN201710039813 A CN 201710039813A CN 106850980 A CN106850980 A CN 106850980A
Authority
CN
China
Prior art keywords
mail
time
targeted mails
mobile terminal
submodule
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.)
Granted
Application number
CN201710039813.5A
Other languages
Chinese (zh)
Other versions
CN106850980B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710039813.5A priority Critical patent/CN106850980B/en
Publication of CN106850980A publication Critical patent/CN106850980A/en
Application granted granted Critical
Publication of CN106850980B publication Critical patent/CN106850980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • 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/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal are the embodiment of the invention provides, the method includes:Synchronization and at least part of mail is preserved from mail server;Selection meets the targeted mails of cleaning condition from the mail for preserving;Deletion has been downloaded into the annex carried in local, described targeted mails.The embodiment of the present invention realizes the automatic cleaning of Email attachment, release the memory space of mobile terminal, these targeted mails being cleaned, in still existing in original file, do not deleted locally from mobile terminal, mail after being cleared up in mobile terminal retains the contents such as text, can be with normal browsing, and, the cleaning of mail is carried out in mobile terminal, former mail on mail server is unaffected, annex is deleted not in mail server, annex can still be downloaded after deleting in the terminal from mail server, recover, ensure that the normal of mail is used.

Description

The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal
Technical field
The present invention relates to communicate technical field, in more particularly to a kind of mobile terminal the method for cleaning of Email attachment and A kind of mobile terminal.
Background technology
With the development of science and technology, work, study, daily exchange of the mobile terminal such as mobile phone, panel computer in people Etc. the utilization rate also more and more higher of each side.
The demand such as handled official business for convenience, learnt, being exchanged, user often installs Mail Clients in the terminal, Communicated with other users.
During user's long-term use Mail Clients, the number of mail that Mail Clients is downloaded is numerous, occupies The substantial amounts of storage resource of mobile terminal.
The content of the invention
In view of the above problems, asking for substantial amounts of storage resource is taken in order to solve the mail of the above-mentioned movement terminal downloads Topic, the embodiment of the present invention proposes the method for cleaning and a kind of corresponding mobile terminal of Email attachment in a kind of mobile terminal.
In order to solve the above problems, the embodiment of the invention discloses a kind of method for cleaning of Email attachment in mobile terminal, Including:
Synchronization and at least part of mail is preserved from mail server;
Selection meets the targeted mails of cleaning condition from the mail for preserving;
Deletion has been downloaded into the annex carried in local, described targeted mails.
Alternatively, it is described from preserve mail in selection meet the targeted mails of cleaning condition the step of include:
Inquire about the creation time of the mail for preserving;
The very first time calculated between the creation time and current time is poor;
First time period is set;
By very first time difference more than the mail of the first time period, targeted mails are set to.
Alternatively, the step of setting first time period includes:
Detect the occupancy of local storage space;
Judge the occupancy whether more than default occupancy threshold value;
If so, then selection very first time value is set to first time period;
If it is not, then selecting the second time value to be set to first time period;
Wherein, the very first time value is more than second time value.
Alternatively, it is described from preserve mail in selection meet the targeted mails of cleaning condition the step of include:
Inquire about the browsing time of the mail for preserving;
Calculate the second time difference between the browsing time and current time;
Judge second time difference whether in default second time period;If so, then forbidding setting in the mail It is targeted mails;If it is not, then allowing for the mail to be set to targeted mails.
Alternatively, it is described from preserve mail in selection meet the targeted mails of cleaning condition the step of include:
Inquire about the file belonging to the mail for preserving;
Judge whether the file belongs to default tag file folder;If so, then forbidding for the mail being set to mesh Mark mail;If it is not, then allowing for the mail to be set to targeted mails;
Wherein, the tag file folder includes draft and/or outbox.
Alternatively, it is described from preserve mail in selection meet the targeted mails of cleaning condition the step of include:
Inquire about the account belonging to the mail for preserving;
Judge whether the account is configured to download annex automatically;If so, then forbidding for the mail being set to target postal Part;If it is not, then allowing for the mail to be set to targeted mails.
Alternatively, also include:
The targeted mails are set to not download the state of annex.
The embodiment of the invention also discloses a kind of mobile terminal, including:
Mail synchronization module, for the synchronization from mail server and preserves at least part of mail;
Targeted mails selecting module, the targeted mails of cleaning condition are met for the selection from the mail for preserving;
Annex removing module, for deleting the annex for having been downloaded into being carried in local, described targeted mails.
Alternatively, the targeted mails selecting module includes:
Creation time inquires about submodule, the creation time for inquiring about the mail for preserving;
The very first time differs from calculating sub module, poor for calculating the very first time between the creation time and current time;
First time period sets submodule, for setting first time period;
Targeted mails set submodule, for the mail by very first time difference more than default first time period, if It is set to targeted mails.
Alternatively, the first time period sets submodule and includes:
Occupancy detection unit, the occupancy for detecting local storage space;
Occupancy threshold decision unit, for judging the occupancy whether more than default occupancy threshold value;If so, then First choice unit is called, if it is not, then calling the second select unit;
First choice unit, for selecting very first time value to be set to first time period;
Second select unit, for selecting the second time value to be set to first time period;
Wherein, the very first time value is more than second time value.
Alternatively, the targeted mails selecting module includes:
Browsing time inquires about submodule, the browsing time for inquiring about the mail for preserving;
Second time difference calculating sub module, for calculating the second time difference between the browsing time and current time;
Time period judging submodule, for judging second time difference whether in default second time period;If so, First is then called to forbid submodule, if it is not, then calling the first permission submodule;
First forbids submodule, for forbidding for the mail being set to targeted mails;
First allows submodule, for allowing for the mail to be set to targeted mails.
Alternatively, the targeted mails selecting module includes:
File inquires about submodule, for inquiring about the file belonging to the mail for preserving;
File judging submodule, for judging whether the file belongs to default tag file folder;If so, then adjusting Forbid submodule with second, if it is not, then calling the second permission submodule;
Second forbids submodule, for forbidding for the mail being set to targeted mails;
Second allows submodule, for allowing for the mail to be set to targeted mails;
Wherein, the tag file folder includes draft and/or outbox.
Alternatively, the targeted mails selecting module includes:
Account inquiries submodule, for inquiring about the account belonging to the mail that the mobile terminal is preserved;
Account configuration determination submodule, for judging whether the account is configured to download annex automatically;If so, then calling 3rd forbids submodule, if it is not, then calling the 3rd permission submodule;
3rd forbids submodule, for forbidding for the mail being set to targeted mails;
3rd allows submodule, for allowing for the mail to be set to targeted mails.
Alternatively, also include:
Setup module is not downloaded, the state for the targeted mails to be set to not download annex.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention is synchronous with mail server in the terminal and preserves at least part of mail, in mobile terminal Some mails are locally stored, selection meets the targeted mails of cleaning condition in these mails for preserving, and have deleted its carrying And be downloaded to local annex, realize the automatic cleaning of Email attachment, release the memory space of mobile terminal, this A little targeted mails being cleaned, still exist in original file, are not deleted locally from mobile terminal, in mobile terminal Mail after cleaning retains the contents such as text, can be carried out in mobile terminal with normal browsing, also, the cleaning of mail, Former mail on mail server is unaffected, and annex is deleted not in mail server, and annex is deleted in the terminal Can still be downloaded from mail server afterwards, recovered, it is ensured that the normal of mail is used.
Brief description of the drawings
The step of Fig. 1 is the method for cleaning embodiment of Email attachment in a kind of mobile terminal of the invention flow chart;
The step of Fig. 2 is the method for cleaning embodiment of Email attachment in another mobile terminal of the invention flow chart;
The step of Fig. 3 is the method for cleaning embodiment of Email attachment in another mobile terminal of the invention flow chart;
Fig. 4 shows a kind of example flow diagram of selection target mail of one embodiment of the invention;
Fig. 5 shows the example flow diagram of another selection target mail of one embodiment of the invention;
Fig. 6 shows the example flow diagram of another selection target mail of one embodiment of the invention;
Fig. 7 is a kind of structured flowchart of mobile terminal embodiment of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above objects, features and advantages of the present invention more obvious understandable The present invention is further detailed explanation to apply mode.
Reference picture 1, flows the step of show the method for cleaning embodiment of Email attachment in a kind of mobile terminal of the invention Cheng Tu, specifically may include steps of:
Step 101, synchronization and at least part of mail is preserved from mail server.
In implementing, the embodiment of the present invention can be using in the terminal, for example, mobile phone, panel computer, individual Digital assistants, wearable device (such as glasses, wrist-watch) etc..
The operating system of these mobile terminals can include Android (Android), IOS, Windows Phone, Windows Etc..
The operation of Mail Clients can be generally supported in these operating systems, the Mail Clients enters with mail server Row connection, to receive, send mail.
It should be noted that these Mail Clients can be the client of system intialization, or third-party visitor Family end, the embodiment of the present invention is not any limitation as to this.
In embodiments of the present invention, enter with mail server when user's Mail Clients in the terminal is operated Row is synchronous, or, regularly or manually with mail server synchronize (as received mail), etc..
Because the mail protocol between Mail Clients and mail server is different, therefore, synchronous operation also has Institute is different.
Furthermore, the mail protocol between Mail Clients and mail server includes following one or more:
1st, POP3 (Post Office Protocol 3, the 3rd version of post office protocol)
POP3 agreements allow the mail on Mail Clients download mail server, and storage to local host is (such as mobile whole End) on, but, in the operation (such as mobile e-mail, mark have been read) of Mail Clients, will not feed back on mail server, For example, 3 envelope mails during mailbox has been collected by Mail Clients and move to alternative document folder, these on mail server Mail is without simultaneously mobile.
2nd, SMTP (Simple Mail Transfer Protocol, Simple Mail Transfer protocol)
Smtp protocol is one group of specification for being used to transmit mail from source address to destination address, and mail is controlled by it Transfer mode.Smtp protocol belong to TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission control protocol/Internet Protocol) protocol family, it helps every computer (such as mobile terminal) in transmission or middle transfering the letter Next destination is found during part.
SMTP certifications, are exactly briefly that requirement must can just log in mail clothes after there is provided account name and password Business device, it is possible to use family avoids being invaded and harassed by spam.
3rd, IMAP (Internet Mail Access Protocol, interactive email access agreement)
IMAP is with one of similar mail access standard agreements of POP3.Unlike, after opening IMAP, in mail client The mail that end is collected is remained on mail server, while the operation on Mail Clients can all feed back to mail service On device, such as:Mail is deleted, mark has been read, the mail on mail server can also do corresponding action.So, from browser Log in mailbox or Mail Clients and log in mailbox, it is seen that mail and state be consistent.
For mail server, for above-mentioned mail protocol, it will usually use following one or more ports:
25:It is used to receive using the mail server of smtp protocol and sends mail, Mail Clients is used to send postal Part.
110:It is used to receive mail using the Mail Clients of POP agreements.
143:It is used to receive mail using the Mail Clients of IMAP protocol.
465:Using the encryption port of SMTP, for sending mail.
995:Using the encryption port of POP agreements, Mail Clients is used to receive mail.
Certainly, above-mentioned mail protocol is intended only as example, when the embodiment of the present invention is implemented, can be set according to actual conditions Other mail protocols are put, the embodiment of the present invention is not any limitation as to this.In addition, in addition to above-mentioned mail protocol, art technology Personnel can also according to actual needs use other mail protocols, and the embodiment of the present invention is not also any limitation as to this.
In embodiments of the present invention, the mail for being preserved in mobile terminal at least partly synchronization and is protected from mail server Deposit, for example, the mail in synchronous inbox, outbox, it is, however, possible to have need not partly be synchronized from mail server, For example, draft, the embodiment of the present invention is not any limitation as to this.
Step 102, selection meets the targeted mails of cleaning condition from the mail for preserving.
Mobile terminal with mail server carry out mail it is synchronous after, have some email storages in mobile terminal sheet Ground.
Using the embodiment of the present invention, cleaning condition, such as the establishment duration of mail, shifting can be pre-set based on some factors Whether storage information, the affiliated file of mail in dynamic terminal, the browsing time of mail, account setup, mail mark, mail is big Communication frequency, mail significance level of small and peer user (sender or addressee) etc..
If the mail for detecting mobile terminal preservation meets the cleaning condition, it is targeted mails that can regard the mail, Carry out cleaning treatment.
In implementing, mobile terminal can start shooting, under the conditions of timing etc., start annex and clear up service automatically (AttachmentAutoCleanService) services selection, is cleared up by the annex automatically and targeted mails are cleared up.
Step 103, deletion has been downloaded into the annex carried in local, described targeted mails.
In embodiments of the present invention, for meeting the targeted mails of cleaning condition, if carrying annex in the targeted mails And it is local to have been downloaded into mobile terminal, then can delete be downloaded to local annex in the targeted mails.
It should be noted that annex is by the file of mail transmission, including audio file, video file, document, compression File, etc..
In android system, the data of mail are stored in special mail database, such as SQL (Structured Query Language, SQL) database, the mail data library storage is local in mobile terminal, such as/data/ Data/com.android.email/ files.
In a step 102, the Cursor (verniers of the targeted mails for meeting cleaning condition can be inquired about in mail database Interface), the content of the respective field of mail in mail database, such as mail ID can be got by the Cursor (MessageId), the account ID (AccountId) of affiliated account, annex ID (_ id) etc..
In step 103, targeted mails can be found (with MessageId in mail database by the Cursor Represent) annex, be deleted.
Wherein, the store path of annex is:
<database-path>/account#.db_att/item#
Wherein, account# represents that account ID, item# represent annex ID.
For example, the mail of MessageId=5119 is targeted mails, the targeted mails belong to account " 10 ", the ID of annex Respectively 6030,6031,6032,6033, its storage address is respectively:
/data/data/com.android.email/databases/10.db_att/6030
/data/data/com.android.email/databases/10.db_att/6031
/data/data/com.android.email/databases/10.db_att/6032
/data/data/com.android.email/databases/10.db_att/6033
After these document alignments are arrived, you can (* .db_att are the files of annex storage to enter 10.db_att files Folder, * is asterisk wildcard) delete file 6030,6031,6032,6033.
The embodiment of the present invention is synchronous with mail server in the terminal and preserves at least part of mail, in mobile terminal Some mails are locally stored, selection meets the targeted mails of cleaning condition in these mails for preserving, and have deleted its carrying And be downloaded to local annex, realize the automatic cleaning of Email attachment, release the memory space of mobile terminal, this A little targeted mails being cleaned, still exist in original file, are not deleted locally from mobile terminal, in mobile terminal Mail after cleaning retains the contents such as text, can be carried out in mobile terminal with normal browsing, also, the cleaning of mail, Former mail on mail server is unaffected, and annex is deleted not in mail server, and annex is deleted in the terminal Can still be downloaded from mail server afterwards, recovered, it is ensured that the normal of mail is used.
Reference picture 2, the step of show the method for cleaning embodiment of Email attachment in another mobile terminal of the invention Flow chart, specifically may include steps of:
Step 201, synchronization and at least part of mail is preserved from mail server.
Step 202, inquires about the creation time of the mail for preserving.
In embodiments of the present invention, creation time can be the time for creating the mail in the terminal.
For example, user A on November 20th, 2016 to user B send a mail, the email storage in mail server, User A opened Mail Clients on November 21st, 2016, and the mail synchronous with mail server downloads to guarantor in mobile terminal Deposit, the creation time of the mail is on November 21st, 2016.
Step 203, the very first time calculated between the creation time and current time is poor.
Current time can be the time that mobile terminal is currently provided, or, the time that clock server is currently provided, this Inventive embodiments are not any limitation as to this.
Because creation time is prior to current time, therefore, current time subtracts creation time, then can obtain the very first time Difference, represents the establishment duration of mail.
Step 204, sets first time period.
Step 205, by very first time difference more than the mail of the first time period, is set to targeted mails.
Step 206, deletion has been downloaded into the annex carried in local, described targeted mails.
If the establishment duration of mail is more than first time period, then it represents that the mail creation duration is more long, no longer effective property Possibility it is larger, the probability that user browses is smaller, meets cleaning condition, therefore, it can for the mail to be set to targeted mails.
In an example of the embodiment of the present invention, the occupancy of local storage space can be detected, wherein, the storage is empty Between can include memory headroom, disk space.
Judge occupancy whether more than default occupancy threshold value.
If, then it represents that memory space occupancy is more, and storage resource is more not enough, in order to discharge more storage resources, Very first time value can be selected to be set to first time period, as a example by 3 days, that is, the mail created before selecting 3 days is used as target postal Part is cleared up.
If not, then it represents that memory space occupancy is less, and storage resource is more sufficient, in order to preserve the complete of more mails Property, the second time value can be selected to be set to first time period, as a example by 30 days, that is, the mail created before selecting 30 days is used as mesh Mark mail is cleared up.
Certainly, in addition to the time value of first time period is set according to the occupancy of memory space, it can also be used His mode sets the time value of first time period, for example, one time value of acquiescence, etc., the embodiment of the present invention is not subject to this Limitation.
In implementing, radio receiver can be created, if listening to the low broadcast of memory space (such as internal memory), Represent that occupancy is more than occupancy threshold value, otherwise, it is believed that occupancy is less than or equal to occupancy threshold value.
Reference picture 3, shows the method for cleaning reality of Email attachment in another mobile terminal of one embodiment of the invention The step of applying flow chart, specifically may include steps of:
Step 301, synchronization and at least part of mail is preserved from mail server.
Step 302, selection meets the targeted mails of cleaning condition from the mail for preserving.
Step 303, deletion has been downloaded into the annex carried in local, described targeted mails.
Step 304, the targeted mails are set to not download the state of annex.
In embodiments of the present invention, after can be with the annex of delete target mail carrying, under targeted mails be set to not Carry the state of annex so that the annex of the targeted mails can be normally downloaded after, prevent annex from downloading and make a mistake.
In implementing, mobile terminal can start shooting, under the conditions of timing etc., start annex and clear up service automatically (AttachmentAutoCleanService), targeted mails are set to not download annex by the annex service of clearing up automatically State.
Furthermore, can be in mail database, by Attachment (annex) field of the mail ContentUri (content address) is sky, and uiState mode bits are set to not preserve (NOT_SAVED).
Reference picture 4, shows a kind of example flow diagram of selection target mail of one embodiment of the invention, specifically can be with Comprise the following steps:
Step 401, inquires about the browsing time of the mail for preserving.
Step 402, calculates the second time difference between the browsing time and current time.
Whether step 403, judge second time difference in default second time period;If so, then performing step 404, if it is not, then performing step 405.
Step 404, forbids for the mail being set to targeted mails.
Step 405, it is allowed to which the mail is set to targeted mails.
In embodiments of the present invention, whether the browsing time that can be based on mail verifies to mail, judges the mail Allow to be set to targeted mails.
Specifically, user can be recorded in mail database for the operation of mail, such as opened, close, marked Deng can be read in mail database the browsing time of mail, the generally the last time opened.
If the second time difference between browsing time and current time in second time period (such as 1 day), represents the postal Browsed by user in the part nearer time, the probability that user browses the mail again in the recent period is higher, forbids being set to targeted mails Cleared up.
, whereas if the second time difference between browsing time and current time exceedes in second time period (such as 1 day), table Show in the mail nearer time and do not browsed by user, the probability that user browses the mail again in the recent period is relatively low, it is allowed to be set to Targeted mails are cleared up.
Reference picture 5, shows the example flow diagram of another selection target mail of one embodiment of the invention, specifically may be used To comprise the following steps:
Step 501, inquires about the file belonging to the mail for preserving.
Step 502, judges whether the file belongs to default tag file folder;If so, step 503 is then performed, if It is no, then perform step 504.
Step 503, forbids for the mail being set to targeted mails.
Step 504, it is allowed to which the mail is set to targeted mails.
In embodiments of the present invention, mail can be verified based on the affiliated file of mail (Mailbox), judging should Whether mail allows to be set to targeted mails.
Wherein, tag file folder includes draft and/or outbox.
If deleting the annex of mail in the files such as draft, outbox, Mail Contents missing, mail are may result in Annex can not included after sending successfully.
Therefore, if the mail belongs to tag file folder, forbid being set to targeted mails to be cleared up.
, whereas if the mail belongs to tag file folder, it is allowed to be set to targeted mails and cleared up.
Reference picture 6, shows the example flow diagram of another selection target mail of one embodiment of the invention, specifically may be used To comprise the following steps:
Step 601, inquires about the account belonging to the mail for preserving.
Step 602, judges whether the account is configured to download annex automatically;If so, step 603 is then performed, if it is not, then Perform step 604.
Step 603, forbids for the mail being set to targeted mails.
Step 604, it is allowed to which the mail is set to targeted mails.
In embodiments of the present invention, can be set based on account (Account) and mail is verified, judge that the mail is It is no to allow to be set to targeted mails.
If email account is set in environment such as Wi-Fi (WIreless-Fidelity, Wireless Fidelity), mobile networks Lower automatic download annex, after annex can be caused to be deleted, can restart the download of these annexes again, resume storage empty Between, cause the waste of the resources such as flow, system.
Therefore, if the account belonging to the mail is configured to download annex automatically, forbid being set to targeted mails to carry out clearly Reason.
, whereas if the account belonging to the mail is not configured as downloading annex automatically, it is allowed to which being set to targeted mails is carried out Cleaning.
In implementing, the local variable ArrayList that can be created<long>, with Wi-Fi environment from As a example by dynamic download annex, the local variable can be referred to as wifiAccountList.
In verification, can inquire about which account in mail database be can be under the environment such as Wi-Fi, mobile network Annex is downloaded on backstage automatically, and the corresponding ID of these accounts (AccountId) are then written to local variable (such as WifiAccountList) in this list, the ID of the account for being easy to subsequently judge belonging to the mail of mobile terminal preservation (AccountId) whether it is documented in local variable, if it is, confirming that the account is configured to download annex automatically.
The embodiment of the present invention screens targeted mails by the establishment duration of mail, by the browsing time of mail, mail institute The factors such as category file, account setup are verified to mail, can improve the accuracy rate of targeted mails, are reduced targeted mails and are gone out Existing mistake, the waste for reducing resource.
Certainly, the mode of above-mentioned Fig. 4-Fig. 6 selection target mails is intended only as example, when the embodiment of the present invention is implemented, The corresponding embodiments of above-mentioned Fig. 1-Fig. 3 can individually be combined to implement, it is also possible to which serial or parallel connection combination combines above-mentioned Fig. 1-Fig. 3 couples The embodiment answered is implemented, and it is possible to set the mode of other selection target mails, the embodiment of the present invention pair according to actual conditions This is not any limitation as.In addition, in addition to the mode of above-mentioned Fig. 4-Fig. 6 selection target mails, those skilled in the art can be with root According to being actually needed by the way of other selection target mails, the embodiment of the present invention is not also any limitation as to this.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as a series of action group Close, but those skilled in the art should know, and the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented Necessary to example.
Reference picture 7, shows a kind of structured flowchart of mobile terminal embodiment of the invention, can specifically include following mould Block:
Mail synchronization module 701, for the synchronization from mail server and preserves at least part of mail;
Targeted mails selecting module 702, the targeted mails of cleaning condition are met for the selection from the mail for preserving;
Annex removing module 703, for deleting the annex for having been downloaded into being carried in local, described targeted mails.
In one embodiment of the invention, the targeted mails selecting module 702 includes:
Creation time inquires about submodule, the creation time for inquiring about the mail for preserving;
The very first time differs from calculating sub module, poor for calculating the very first time between the creation time and current time;
First time period sets submodule, for setting first time period;
Targeted mails set submodule, for the mail by very first time difference more than default first time period, if It is set to targeted mails.
In an example of the embodiment of the present invention, the first time period sets submodule to be included:
Occupancy detection unit, the occupancy for detecting local storage space;
Occupancy threshold decision unit, for judging the occupancy whether more than default occupancy threshold value;If so, then First choice unit is called, if it is not, then calling the second select unit;
First choice unit, for selecting very first time value to be set to first time period;
Second select unit, for selecting the second time value to be set to first time period;
Wherein, the very first time value is more than second time value.
In another embodiment of the present invention, the targeted mails selecting module 702 includes:
Browsing time inquires about submodule, the browsing time for inquiring about the mail for preserving;
Second time difference calculating sub module, for calculating the second time difference between the browsing time and current time;
Time period judging submodule, for judging second time difference whether in default second time period;If so, First is then called to forbid submodule, if it is not, then calling the first permission submodule;
First forbids submodule, for forbidding for the mail being set to targeted mails;
First allows submodule, for allowing for the mail to be set to targeted mails.
In another embodiment of the present invention, the targeted mails selecting module 702 includes:
File inquires about submodule, for inquiring about the file belonging to the mail for preserving;
File judging submodule, for judging whether the file belongs to default tag file folder;If so, then adjusting Forbid submodule with second, if it is not, then calling the second permission submodule;
Second forbids submodule, for forbidding for the mail being set to targeted mails;
Second allows submodule, for allowing for the mail to be set to targeted mails;
Wherein, the tag file folder includes draft and/or outbox.
In another embodiment of the present invention, the targeted mails selecting module 702 includes:
Account inquiries submodule, for inquiring about the account belonging to the mail that the mobile terminal is preserved;
Account configuration determination submodule, for judging whether the account is configured to download annex automatically;If so, then calling 3rd forbids submodule, if it is not, then calling the 3rd permission submodule;
3rd forbids submodule, for forbidding for the mail being set to targeted mails;
3rd allows submodule, for allowing for the mail to be set to targeted mails.
In one embodiment of the invention, the device also includes:
Setup module is not downloaded, the state for the targeted mails to be set to not download annex.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using wherein include computer at one or more can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that flow chart and/or block diagram can be realized by computer program instructions In each flow and/or flow and/or square frame in square frame and flow chart and/or block diagram combination.These can be provided Computer program instructions set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is producing a machine so that held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames The device of the function of specifying.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing terminal equipments In the computer-readable memory for working in a specific way so that instruction of the storage in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple one side of flow and/or block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented treatment, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frame function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped Those key elements, but also other key elements including being not expressly set out are included, or also includes being this process, method, article Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Above to the method for cleaning and a kind of mobile terminal of Email attachment in a kind of mobile terminal provided by the present invention, enter Go and be discussed in detail, specific case used herein has been set forth to principle of the invention and implementation method, the above has been implemented The explanation of example is only intended to help and understands the method for the present invention and its core concept;Simultaneously for the general technology people of this area Member, according to thought of the invention, will change in specific embodiments and applications, in sum, this explanation Book content should not be construed as limiting the invention.

Claims (10)

1. in a kind of mobile terminal Email attachment method for cleaning, it is characterised in that including:
Synchronization and at least part of mail is preserved from mail server;
Selection meets the targeted mails of cleaning condition from the mail for preserving;
Deletion has been downloaded into the annex carried in local, described targeted mails.
2. method according to claim 1, it is characterised in that the selection from the mail for preserving meets cleaning condition The step of targeted mails, includes:
Inquire about the creation time of the mail for preserving;
The very first time calculated between the creation time and current time is poor;
First time period is set;
By very first time difference more than the mail of the first time period, targeted mails are set to.
3. method according to claim 2, it is characterised in that include the step of the setting first time period:
Detect the occupancy of local storage space;
Judge the occupancy whether more than default occupancy threshold value;
If so, then selection very first time value is set to first time period;
If it is not, then selecting the second time value to be set to first time period;
Wherein, the very first time value is more than second time value.
4. the method according to claim 1 or 2 or 3, it is characterised in that described to select to meet cleaning from the mail for preserving The step of targeted mails of condition, includes:
Inquire about the browsing time of the mail for preserving;
Calculate the second time difference between the browsing time and current time;
Judge second time difference whether in default second time period;If so, then forbidding for the mail being set to mesh Mark mail;If it is not, then allowing for the mail to be set to targeted mails.
5. the method according to claim 1 or 2 or 3, it is characterised in that also include:
The targeted mails are set to not download the state of annex.
6. a kind of mobile terminal, it is characterised in that including:
Mail synchronization module, for the synchronization from mail server and preserves at least part of mail;
Targeted mails selecting module, the targeted mails of cleaning condition are met for the selection from the mail for preserving;
Annex removing module, for deleting the annex for having been downloaded into being carried in local, described targeted mails.
7. mobile terminal according to claim 6, it is characterised in that the targeted mails selecting module includes:
Creation time inquires about submodule, the creation time for inquiring about the mail for preserving;
The very first time differs from calculating sub module, poor for calculating the very first time between the creation time and current time;
First time period sets submodule, for setting first time period;
Targeted mails set submodule, more than the mail of default first time period, are set to for by very first time difference Targeted mails.
8. mobile terminal according to claim 7, it is characterised in that the first time period sets submodule to be included:
Occupancy detection unit, the occupancy for detecting local storage space;
Occupancy threshold decision unit, for judging the occupancy whether more than default occupancy threshold value;If so, then calling First choice unit, if it is not, then calling the second select unit;
First choice unit, for selecting very first time value to be set to first time period;
Second select unit, for selecting the second time value to be set to first time period;
Wherein, the very first time value is more than second time value.
9. the mobile terminal according to claim 6 or 7 or 8, it is characterised in that the targeted mails selecting module includes:
Browsing time inquires about submodule, the browsing time for inquiring about the mail for preserving;
Second time difference calculating sub module, for calculating the second time difference between the browsing time and current time;
Time period judging submodule, for judging second time difference whether in default second time period;If so, then adjusting Forbid submodule with first, if it is not, then calling the first permission submodule;
First forbids submodule, for forbidding for the mail being set to targeted mails;
First allows submodule, for allowing for the mail to be set to targeted mails.
10. the mobile terminal according to claim 6 or 7 or 8, it is characterised in that also include:
Setup module is not downloaded, the state for the targeted mails to be set to not download annex.
CN201710039813.5A 2017-01-19 2017-01-19 The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal Active CN106850980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710039813.5A CN106850980B (en) 2017-01-19 2017-01-19 The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710039813.5A CN106850980B (en) 2017-01-19 2017-01-19 The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal

Publications (2)

Publication Number Publication Date
CN106850980A true CN106850980A (en) 2017-06-13
CN106850980B CN106850980B (en) 2019-09-17

Family

ID=59124456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710039813.5A Active CN106850980B (en) 2017-01-19 2017-01-19 The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal

Country Status (1)

Country Link
CN (1) CN106850980B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542344A (en) * 2018-11-09 2019-03-29 五八同城信息技术有限公司 A kind of method for cleaning of disk space, device, storage medium and terminal
CN110572311A (en) * 2019-08-09 2019-12-13 青岛海信移动通信技术股份有限公司 Mail downloading method and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363160A (en) * 2014-07-28 2015-02-18 国家电网公司 Processing methods, device and system of e-mail with file attachments
CN105847121A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Mail sending method and device
CN106027603A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Email attachment management method and device and intelligent terminal
US9531707B1 (en) * 2012-11-21 2016-12-27 Isaac S. Daniel Convenient and secure biometrically authenticated system and method for delivering E-mail and parcels

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9531707B1 (en) * 2012-11-21 2016-12-27 Isaac S. Daniel Convenient and secure biometrically authenticated system and method for delivering E-mail and parcels
CN104363160A (en) * 2014-07-28 2015-02-18 国家电网公司 Processing methods, device and system of e-mail with file attachments
CN105847121A (en) * 2016-04-19 2016-08-10 乐视控股(北京)有限公司 Mail sending method and device
CN106027603A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Email attachment management method and device and intelligent terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542344A (en) * 2018-11-09 2019-03-29 五八同城信息技术有限公司 A kind of method for cleaning of disk space, device, storage medium and terminal
CN110572311A (en) * 2019-08-09 2019-12-13 青岛海信移动通信技术股份有限公司 Mail downloading method and terminal
CN110572311B (en) * 2019-08-09 2022-01-11 青岛海信移动通信技术股份有限公司 Mail downloading method and terminal

Also Published As

Publication number Publication date
CN106850980B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN108156070B (en) Instant messaging method, device and system based on mail system
US6779022B1 (en) Server that obtains information from multiple sources, filters using client identities, and dispatches to both hardwired and wireless clients
KR102030226B1 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
US9338114B2 (en) Automatic conversation techniques
US8977696B2 (en) Declassifying of suspicious messages
US9442925B2 (en) Regulated texting solution for mobile devices
US9479638B2 (en) Methods and systems for dispatching messages to mobile devices
CN108055196B (en) Method, device and system for creating discussion group based on instant messaging
US20050038863A1 (en) Device message management system
EP1655915B1 (en) Method for managing duplicated arrival notification messages in multimedia messaging services
CN101785263A (en) Method and apparatus for electronic mail filtering
CA2911989C (en) Method, system and apparatus for dectecting instant message spam
CN106850980A (en) The method for cleaning and mobile terminal of Email attachment in a kind of mobile terminal
CN103139041A (en) Method for filtering information and method, device and system for processing forwarded information
CN101800953A (en) Method and system for realizing self-adaption mail configuration
WO2020142324A1 (en) Storage architecture for message object data in telecommunications networks
CN102056091A (en) Method and terminal for operator to control closed subscriber group list
US20140364157A1 (en) Method And System For Providing A Set Of Target Recipients For A Message
CN103634201A (en) Electronic mail system and electronic mail quarantine processing method thereof
CN105634908B (en) E-mail processing system and method
JP5316164B2 (en) E-mail delivery system, e-mail delivery method and e-mail delivery control program used in the system
JP4330844B2 (en) Shared information management method, mobile communication terminal, and shared information management system
CA2895921A1 (en) System and method for obtaining a portion of an archived email message
CA2640299C (en) Collaborative electronic mail filtering
WO2015188720A1 (en) Method and device for message transmission by background program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.