CN105828303B - Method and device for deleting message on terminal - Google Patents

Method and device for deleting message on terminal Download PDF

Info

Publication number
CN105828303B
CN105828303B CN201510007451.2A CN201510007451A CN105828303B CN 105828303 B CN105828303 B CN 105828303B CN 201510007451 A CN201510007451 A CN 201510007451A CN 105828303 B CN105828303 B CN 105828303B
Authority
CN
China
Prior art keywords
message
deleting
indication information
forwarded
deletion
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
CN201510007451.2A
Other languages
Chinese (zh)
Other versions
CN105828303A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510007451.2A priority Critical patent/CN105828303B/en
Publication of CN105828303A publication Critical patent/CN105828303A/en
Application granted granted Critical
Publication of CN105828303B publication Critical patent/CN105828303B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention mainly aims to provide a method and a device for deleting a message on a terminal, which are used for solving the problem that the prior art can not destroy the message on the terminal according to the requirements of a user, wherein the method for deleting the message on the terminal comprises the following steps: acquiring deletion indication information set by a sender corresponding to the received message; before the message is forwarded, whether the message meets a deletion condition is judged according to the deletion indication information, if yes, the message is deleted, and if not, the deletion indication information is updated, so that the user experience is improved.

Description

Method and device for deleting message on terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for deleting a message on a terminal.
Background
At present, with the continuous improvement of intelligent terminals and communication application software technologies, based on some communication applications, a function of automatically destroying a message after the message received by a terminal is read by a user can be realized, the mode plays a certain protection role in message content and can prohibit the user from forwarding, however, the mode does not fully consider whether a message originator allows the message to be forwarded or the number of times the message is allowed to be forwarded, in addition, from the perspective of the user, the user can only passively receive the message, and when the message is sent to be an incinerated message after being read, the message can be destroyed after being read, in this case, the user cannot forward the message to a third party, that is, the user cannot master the initiative of using the message. Therefore, the existing method can not destroy the message at the terminal according to the requirement of the user, and is inconvenient for the user to use.
Disclosure of Invention
The invention mainly aims to provide a method and a device for deleting a message on a terminal, so as to solve the problem that the message cannot be destroyed on the terminal according to the user requirement in the prior art.
According to an aspect of the present invention, there is provided a method of deleting a message on a terminal, including: acquiring deletion indication information set by a sender corresponding to the received message; before the message is forwarded, judging whether the message meets the deletion condition according to the deletion indication information, if so, deleting the message, and if not, updating the deletion indication information.
Wherein the deletion instruction information includes: message types set by the message originator, the message types including: deleting the message after the message is forwarded and not deleting the message after the message is forwarded, wherein the updating and deleting indication information comprises the following steps: if the type of the current message to be forwarded is the deleted message after forwarding, the deletion indication information is updated before the message is forwarded, the updated deletion indication information is carried in the message to be forwarded, the message is deleted, if the type of the current message to be forwarded is the message not deleted after forwarding, the deletion indication information of the message is updated, and the updated deletion indication information is sent to the server side.
The deleting indication information includes the forwarding times of the message, and the client acquires the deleting indication information set by the sender corresponding to the received message, including: when the type of the message is the message forwarding and then the message is deleted, acquiring the forwarding times carried in the message; and if the type of the message is that the message is not deleted after being forwarded, acquiring the message forwarding times stored in the server.
Wherein, judging whether the message satisfies the deleting condition according to the deleting indication information comprises: and judging whether the forwarding times of the message reach the preset message forwarding times, if so, determining that the message meets the deleting condition, and if not, determining that the message does not meet the deleting condition.
The deleting indication information includes the time when the message is originated and the allowable existing time length of the message, and whether the message meets the deleting condition is judged according to the deleting indication information, which includes: acquiring the current time of the terminal, determining whether the time period of the message existence reaches the time length of the message allowable existence according to the acquired time and the time of message origination, and determining that the message meets the deletion condition under the condition that the time period of the message existence reaches the time length of the message allowable existence.
According to another aspect of the present invention, there is provided an apparatus for deleting a message on a terminal, including: the acquisition module is used for acquiring the deletion indication information set by the sender corresponding to the received message; the judging module is used for judging whether the message meets the deleting condition according to the deleting indication information before the message is forwarded; the deleting module is used for deleting the message when the judgment result of the judging module is yes; and the updating module is used for updating the deletion indication information when the judgment result of the judging module is negative.
Wherein the deletion instruction information includes: message types set by the message originator, the message types including: delete the message and not delete the message after the message is forwarded, the updating module includes: a first updating unit, configured to update the deletion indication information before the message is forwarded if the type of the current message to be forwarded is a deletion message after forwarding, carry the updated deletion indication information in the message to be forwarded, and delete the message; and the second updating unit is used for updating the deletion indication information of the message and sending the updated deletion indication information to the server side if the type of the message to be forwarded is that the message is not deleted after being forwarded.
Wherein, the deletion instruction information includes the forwarding times of the message, and the obtaining module includes: the first obtaining unit is used for obtaining the forwarding times carried in the message when the message is deleted after the message is forwarded; and the second acquisition unit is used for acquiring the message forwarding times stored in the server if the message is not deleted after the message is forwarded.
Wherein, the judging module is used for: and judging whether the forwarding times of the message reach the preset message forwarding times, if so, determining that the message meets the deleting condition, and if not, determining that the message does not meet the deleting condition.
Wherein, the deletion indication information includes the time of message origination and the allowable existence duration of the message, and the determining module includes: the first determining unit is used for acquiring the current time of the terminal, and determining whether the time period of the message existence reaches the time length of the message allowed existence according to the acquired time and the time of message origination; and the second determining unit is used for determining that the message meets the deleting condition under the condition that the time period for determining the existence of the message reaches the time length allowed by the message.
The invention has the following beneficial effects:
after receiving the message, the embodiment of the invention acquires the deletion indication information set by the sender corresponding to the received message; before the message is forwarded, whether the message meets the deletion condition is judged according to the deletion indication information, the message is deleted under the condition that the condition is met, and the deletion indication information is updated under the condition that the condition is not met, so that the client can determine whether the message is deleted based on the information set by the sender, the purpose of deleting the message at the terminal based on the user requirement is realized, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a method for deleting a message on a terminal according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for deleting a message on a terminal according to embodiment 2 of the present invention;
fig. 3 is a block diagram of a device for deleting a message on a terminal according to embodiment 3 of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
Example 1
An embodiment of the present invention provides a method for deleting a message on a terminal, specifically, the message may be a message that is sent to another terminal through a certain type of application in the terminal, that is, a message that can be transmitted between terminals, fig. 1 is a flowchart of a method for deleting a message on a terminal according to embodiment 1 of the present invention, and as shown in fig. 1, the method includes:
step 101: acquiring deletion indication information set by a sender corresponding to the received message;
the deletion instruction information in this embodiment may specifically include: the type of the message set by the message originator or the message editor, specifically, the type of the message set by the message originator includes deleting the message after the message is forwarded and not deleting the message after the message is forwarded, wherein the deletion indication information further includes the forwarding times of the message;
in step 101, the acquiring of the deletion instruction information may specifically be:
the client acquires the deletion indication information set by the sender corresponding to the received message, and the deletion indication information comprises the following steps: when the type of the message is the message forwarding and then the message is deleted, acquiring the forwarding times carried in the message; and if the type of the message is that the message is not deleted after being forwarded, acquiring the message forwarding times stored in the server.
Step 102: before the message is forwarded, judging whether the message meets the deletion condition according to the deletion indication information, if so, executing step 103; if not, step 104 is performed.
Specifically, the step 102 of determining whether the message satisfies the deletion condition according to the deletion indication information may include: and judging whether the forwarding times of the message reach the preset message forwarding times, if so, determining that the message meets the deleting condition, and if not, determining that the message does not meet the deleting condition.
Step 103: deleting the message;
step 104: and updating the deletion indication information.
Based on this, the step 104 may specifically include: the updating the deletion instruction information includes: if the type of the current message to be forwarded is the deleted message after forwarding, the deletion indication information is updated before the message is forwarded, the updated deletion indication information is carried in the message to be forwarded, the message is deleted, if the type of the current message to be forwarded is the message not deleted after forwarding, the deletion indication information of the message is updated, and the updated deletion indication information is sent to the server side.
It should be noted that, if the message type is a type that is not deleted after forwarding, the client in each terminal storing the message will execute an operation of deleting the message when the terminal connection server obtains that the number of times of forwarding the message recorded in the server reaches a preset number of times.
On the basis of determining whether to delete the message based on the message forwarding times, whether the message meets the deletion condition can be judged by combining the existing time length of the short message after the first time, and based on the judgment, the deletion indication information comprises the time of message origination and the allowable existing time length of the message, and whether the message meets the deletion condition is judged according to the deletion indication information, which comprises the following steps:
acquiring the current time of the terminal, determining whether the time period of the message existence reaches the time length of the message allowable existence according to the acquired time and the time of message origination, and determining that the message meets the deletion condition under the condition that the time period of the message existence reaches the time length of the message allowable existence.
Example 2
The embodiment of the present invention provides a method for deleting a short message on a terminal, which is the same as the implementation principle of the scheme provided in embodiment 1, and the method is described in detail below by disclosing more technical details.
Fig. 2 is a flowchart of a method for deleting a message on a terminal according to embodiment 2 of the present invention, as shown in fig. 2, in this embodiment, a forwarding manner of a message may be divided into a delivery type and a coexistence type, where the delivery type forwarding is to delete an original message after a message holder forwards the message to another user. In this forwarding method, a counter (counter) needs to be set in the message, and the counter +1 is forwarded once, until the number of forwarding times reaches the upper limit of the preset value, the message is deleted and cannot be forwarded any more.
The coexistence type transmission mode is realized by a server, a counter is added to the message at the server, the counter +1 is forwarded once, the client automatically inquires the counter in the server when networking is carried out each time, and if the preset value is reached, the messages in all the message holder terminals are deleted.
For the implementation of forwarding timing, it is necessary to store the set time of the message and the time when the message is forwarded in the message, and then after the message is forwarded to a terminal of a certain recipient, the operation of deleting the message is triggered by the judgment of the time in the message and the time of the message.
Example 3
An embodiment of the present invention provides a device for deleting a message on a terminal, and fig. 3 is a block diagram of a structure of the device for deleting a message on a terminal according to embodiment 3 of the present invention, as shown in fig. 3, the device 30 includes the following components:
an obtaining module 31, configured to obtain, by a client, deletion indication information set by a sender corresponding to a received message;
a judging module 32, configured to, before forwarding the message, judge whether the message satisfies a deletion condition according to the deletion indication information;
a deleting module 33, configured to delete the message if the determination result of the determining module is yes;
and an updating module 34, configured to update the deletion indication information if the determination result of the determining module is negative.
Wherein the deletion instruction information includes: message types set by the message originator, the message types including: based on the message being deleted after forwarding and the message not being deleted after forwarding, the update module 34 includes: a first updating unit, configured to update the deletion indication information before the message is forwarded if the type of the current message to be forwarded is a deletion message after forwarding, carry the updated deletion indication information in the message to be forwarded, and delete the message; and the second updating unit is used for updating the deletion indication information of the message and sending the updated deletion indication information to the server side if the type of the message to be forwarded is that the message is not deleted after being forwarded.
Wherein, the deletion indication information includes the number of forwarding times of the message, and based on this, the obtaining module 31 includes: the first obtaining unit is used for obtaining the forwarding times carried in the message when the message is deleted after the message is forwarded; and the second acquisition unit is used for acquiring the message forwarding times stored in the server if the message is not deleted after the message is forwarded.
Wherein, the judging module 32 is configured to: and judging whether the forwarding times of the message reach the preset message forwarding times, if so, determining that the message meets the deleting condition, and if not, determining that the message does not meet the deleting condition.
Wherein, the deletion indication information includes the time of message origination and the allowable existence duration of the message, and the determining module includes: the first determining unit is used for acquiring the current time of the terminal, and determining whether the time period of the message existence reaches the time length of the message allowed existence according to the acquired time and the time of message origination; and the second determining unit is used for determining that the message meets the deleting condition under the condition that the time period for determining the existence of the message reaches the time length allowed by the message.
The scheme of the embodiment of the invention increases the function that a short message creator can set forbidding forwarding or forwarding, realizes the purpose of controlling the forwarding of the message based on the user and improves the user experience.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (4)

1. A method for deleting a message at a terminal, comprising:
acquiring deletion indication information set by a sender corresponding to the received message;
before the message is forwarded, judging whether the message meets a deleting condition according to the deleting indication information, if so, deleting the message, and if not, updating the deleting indication information;
the updating the deletion indication information includes:
if the type of the current message to be forwarded is a deleted message after forwarding, updating the deletion indication information before the message is forwarded, carrying the updated deletion indication information in the message to be forwarded, deleting the message, if the type of the current message to be forwarded is a message not deleted after forwarding, updating the deletion indication information of the message, and sending the updated deletion indication information to a server;
the deletion indication information includes: a message type set by a message originator, the message type comprising: deleting the message after the message is forwarded and not deleting the message after the message is forwarded;
the deletion instruction information includes the forwarding times of the message, and the client acquires the deletion instruction information set by the sender corresponding to the received message, including:
when the type of the message is the message forwarding and then the message is deleted, acquiring the forwarding times carried in the message;
if the type of the message is that the message is not deleted after being forwarded, acquiring the message forwarding times stored in a server;
the judging whether the message meets the deleting condition according to the deleting indication information comprises the following steps:
and judging whether the forwarding times of the message reach preset message forwarding times or not, if so, determining that the message meets a deleting condition, and if not, determining that the message does not meet the deleting condition.
2. The method according to claim 1, wherein the deletion indication information includes a time when the message originated and a time length during which the message is allowed to exist, and the determining whether the message satisfies a deletion condition according to the deletion indication information includes:
acquiring the current time of a terminal, determining whether the time period of the message existence reaches the time length of the message allowable existence according to the acquired time and the message originating time, and determining that the message meets the deleting condition under the condition that the time period of the message existence reaches the time length of the message allowable existence.
3. An apparatus for deleting a message at a terminal, comprising:
the acquisition module is used for acquiring the deletion indication information set by the sender corresponding to the received message;
the judging module is used for judging whether the message meets the deleting condition according to the deleting indication information before the message is forwarded;
the deleting module is used for deleting the message when the judgment result of the judging module is yes;
the updating module is used for updating the deletion indicating information when the judgment result of the judging module is negative;
the update module includes:
a first updating unit, configured to update the deletion indication information before the message is forwarded if the type of the current message to be forwarded is a deletion message after forwarding, carry the updated deletion indication information in the message to be forwarded, and delete the message;
the second updating unit is used for updating the deletion indication information of the message and sending the updated deletion indication information to the server side if the type of the message to be forwarded is that the message is not deleted after being forwarded;
the deletion indication information includes: a message type set by a message originator, the message type comprising: deleting the message after the message is forwarded and not deleting the message after the message is forwarded;
the deletion indication information includes the forwarding times of the message, and the obtaining module includes:
the first obtaining unit is used for obtaining the forwarding times carried in the message when the type of the message is the message forwarding and then the message is deleted;
the second obtaining unit is used for obtaining the message forwarding times stored in the server side if the message is not deleted after being forwarded;
the judging module is used for: and judging whether the forwarding times of the message reach preset message forwarding times or not, if so, determining that the message meets a deleting condition, and if not, determining that the message does not meet the deleting condition.
4. The apparatus of claim 3, wherein the deletion indication information includes a time when the message originated and a duration of time when the message is allowed to exist, and the determining module includes:
a first determining unit, configured to obtain a current time of a terminal, and determine whether a time period in which a message exists reaches a duration in which the message is allowed to exist according to the obtained time and a time at which the message originates;
and the second determining unit is used for determining that the message meets the deleting condition under the condition that the time period for determining the existence of the message reaches the time length allowed to exist by the message.
CN201510007451.2A 2015-01-07 2015-01-07 Method and device for deleting message on terminal Expired - Fee Related CN105828303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510007451.2A CN105828303B (en) 2015-01-07 2015-01-07 Method and device for deleting message on terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510007451.2A CN105828303B (en) 2015-01-07 2015-01-07 Method and device for deleting message on terminal

Publications (2)

Publication Number Publication Date
CN105828303A CN105828303A (en) 2016-08-03
CN105828303B true CN105828303B (en) 2020-04-07

Family

ID=56513985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510007451.2A Expired - Fee Related CN105828303B (en) 2015-01-07 2015-01-07 Method and device for deleting message on terminal

Country Status (1)

Country Link
CN (1) CN105828303B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489638B (en) * 2021-07-08 2022-09-02 北卡科技有限公司 Message safety deleting method for instant communication system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6088720A (en) * 1997-07-29 2000-07-11 Lucent Technologies Inc. Self-cleaning and forwarding feature for electronic mailboxes
CN1620082A (en) * 2003-11-19 2005-05-25 三星电子株式会社 Apparatus and method for deleting a text message received in a mobile communication terminal
CN1829336A (en) * 2005-09-29 2006-09-06 华为技术有限公司 Short message limitation forwarding realizing method and system
CN1867092A (en) * 2005-10-21 2006-11-22 华为技术有限公司 Short message limitation storage realizing method and system
CN101166312A (en) * 2005-09-29 2008-04-23 华为技术有限公司 Method and system for limiting SMS forward
CN101778352A (en) * 2009-12-25 2010-07-14 中兴通讯股份有限公司 Realization method and system of technology for protecting multimedia message contents
CN102594979A (en) * 2011-12-15 2012-07-18 华为终端有限公司 Information processing method and device
CN102958018A (en) * 2011-08-30 2013-03-06 中兴通讯股份有限公司 Short-message protection terminal and system as well as short-message protection realization method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6088720A (en) * 1997-07-29 2000-07-11 Lucent Technologies Inc. Self-cleaning and forwarding feature for electronic mailboxes
CN1620082A (en) * 2003-11-19 2005-05-25 三星电子株式会社 Apparatus and method for deleting a text message received in a mobile communication terminal
CN1829336A (en) * 2005-09-29 2006-09-06 华为技术有限公司 Short message limitation forwarding realizing method and system
CN101166312A (en) * 2005-09-29 2008-04-23 华为技术有限公司 Method and system for limiting SMS forward
CN1867092A (en) * 2005-10-21 2006-11-22 华为技术有限公司 Short message limitation storage realizing method and system
CN101778352A (en) * 2009-12-25 2010-07-14 中兴通讯股份有限公司 Realization method and system of technology for protecting multimedia message contents
CN102958018A (en) * 2011-08-30 2013-03-06 中兴通讯股份有限公司 Short-message protection terminal and system as well as short-message protection realization method
CN102594979A (en) * 2011-12-15 2012-07-18 华为终端有限公司 Information processing method and device

Also Published As

Publication number Publication date
CN105828303A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
WO2019137292A1 (en) Mail system-based instant messaging method, device and system
ES2297416T5 (en) Procedure for modifying a message, storage and retransmission network system and data messaging system
US8737580B2 (en) Toggling voicemail class of service
CA2451072C (en) Messaging system for directing a server to convert voice message into text and appending a converted text message to another converted text message
EP1755353A1 (en) Method for multicasting short message
RU2014104579A (en) RATING CONTENT MESSAGES FOR CONTROLLING CONTENTS IN WIRELESS DEVICES
WO2004036773A3 (en) System and method for sending sms and text messages
US8219067B1 (en) Delayed display of message
US8260333B2 (en) Consolidating international short message service messages destined to multiple recipients
WO2008110795A3 (en) Messaging comprising automatically adding an email address to a contacts directory, sending an email using a telephone number and sending sms prompts for non-acknowledged email messages
KR20140066765A (en) Archive control for text messages
US9456325B2 (en) Transmission of a multimedia message doubled with the transmission of a text message
CN105721248A (en) Call monitoring method and system
CN104539508A (en) Access control method and device
CN105069369A (en) Burn-after-reading method and device for document
KR100842868B1 (en) Spam short message blocking system using call back short message and spam short message blocking method using the same
CN105828303B (en) Method and device for deleting message on terminal
CN106161177B (en) Method and system for realizing intercommunication between voice mail system and converged communication system
CN107734180B (en) Information processing method
US10063648B2 (en) Relaying mobile communications
WO2016095646A1 (en) Traceless communication method and apparatus, and storage medium
JP2004532567A (en) Messaging in Multimedia Message Service (MMS)
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
US20150281458A1 (en) Method and system for voicemail operations management
CN100466668C (en) Automatic reply realizing method for mobile network short message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200407

Termination date: 20220107

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