CN110557324B - Unread IM message processing method and device - Google Patents

Unread IM message processing method and device Download PDF

Info

Publication number
CN110557324B
CN110557324B CN201910798293.5A CN201910798293A CN110557324B CN 110557324 B CN110557324 B CN 110557324B CN 201910798293 A CN201910798293 A CN 201910798293A CN 110557324 B CN110557324 B CN 110557324B
Authority
CN
China
Prior art keywords
unread
message
preset
rule
account
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.)
Active
Application number
CN201910798293.5A
Other languages
Chinese (zh)
Other versions
CN110557324A (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.)
Beike Technology Co Ltd
Original Assignee
Beike 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201910798293.5A priority Critical patent/CN110557324B/en
Publication of CN110557324A publication Critical patent/CN110557324A/en
Application granted granted Critical
Publication of CN110557324B publication Critical patent/CN110557324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an unread IM message processing method and a device, wherein the method comprises the following steps: retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which meets a preset unread message rule; sending a push instruction to a mobile terminal corresponding to a target account, wherein the push instruction carries a contact account of the target account, which meets a preset unread message rule, so that the mobile terminal sends an unread message export request to a server after setting unread IM messages sent by the contact account, which meets the preset unread message rule, to be read; according to an unread message export request sent by the mobile terminal, selecting the unread IM message sent by the contact account with the latest unread IM message with the sending time arranged in the previous preset digit number, exporting the unread IM message to a file and sending the unread IM message to a preset mailbox address. And a subsequent user can quickly browse the unread IM message by checking the file, so that the time of the user is saved.

Description

Unread IM message processing method and device
Technical Field
The invention relates to the technical field of computers, in particular to an unread IM message processing method and device.
Background
With the rapid development of information technology, the internet becomes an important communication mode in people's life, and Instant Messaging (IM) is rapidly developed due to its real-time and convenience.
At present, application programs in many fields used on mobile terminals have an instant messaging function, and more users exchange information through the instant messaging function. Typically, the application will prompt the user in a message list for unread IM messages sent by the respective contact account.
However, if the user does not view the unread IM messages for a period of time, the message list may accumulate the unread IM messages sent by many contact accounts, and the more the unread IM messages are accumulated, the lower the probability that the user clicks the unread IM messages sent by the contact accounts one by one. When the user clicks the unread IM messages sent by each contact account one by one, a lot of time is spent.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides an unread IM message processing method and device.
The embodiment of the invention provides an unread IM message processing method, which is applied to a server and comprises the following steps:
retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule;
sending a push instruction to a mobile terminal corresponding to the target account, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to the target account corresponding to the mobile terminal, so that the mobile terminal sets unread IM messages sent by the contact account in accordance with the preset unread message rule to be read, and then sends an unread message export request to the server;
and selecting the unread IM message sent by the contact account with the latest unread IM message with the sending time ranked at the previous preset digit according to the unread message export request sent by the mobile terminal, exporting the unread IM message to a file, and sending the file to the target account.
Optionally, the preset unread message rule includes at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
The embodiment of the invention provides an unread IM message processing method, which is applied to a mobile terminal and comprises the following steps:
receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in line with a preset unread message rule and corresponds to a target account corresponding to the mobile terminal;
setting all unread IM messages sent by the contact accounts according with the preset unread message rule as read messages;
sending an unread message export request to the server, so that the server selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked in the front preset digits according to the unread message export request sent by the mobile terminal, exports the unread IM messages to a file, and sends the file to the target account.
Optionally, the preset unread message rule includes at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
The embodiment of the invention provides an unread IM message processing device, which is applied to a server and comprises the following components:
the acquisition module is used for retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule;
a first sending module, configured to send a push instruction to a mobile terminal corresponding to the target account, where the push instruction carries a contact account of the target account corresponding to the mobile terminal, where the contact account meets a preset unread message rule, so that the mobile terminal sets unread IM messages sent by the contact account meeting the preset unread message rule to be read, and then sends an unread message export request to the server;
and the export module is used for selecting the unread IM message sent by the contact account with the latest unread IM message with the sending time arranged in the previous preset digit according to the unread message export request sent by the mobile terminal, exporting the unread IM message to a file, and sending the file to the target account.
Optionally, the preset unread message rule includes at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
The embodiment of the invention provides an unread IM message processing device, which is applied to a mobile terminal and comprises:
the receiving module is used for receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to a target account of the mobile terminal;
the setting module is used for setting all the unread IM messages sent by the contact accounts which accord with the preset unread message rule as read messages;
and the second sending module is used for sending an unread message export request to the server so that the server selects the unread IM message sent by the contact account with the latest unread IM message sending time arranged in the previous preset digit according to the unread message export request sent by the mobile terminal, exports the unread IM message to a file, and sends the file to the target account.
Optionally, the preset unread message rule includes at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
An embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the method are implemented as described above.
According to the unread IM message processing method and device provided by the embodiment of the invention, the server sends a push instruction to the mobile terminal corresponding to the target account, the push instruction carries the contact account which is in accordance with the preset unread message rule and corresponds to the target account, so that the mobile terminal sets the unread IM messages sent by the contact account which is in accordance with the preset unread message rule to be read, then sends an unread message export request to the server, and the server selects the unread IM message sent by the contact account of which the latest unread IM message sending time is arranged in the previous preset number according to the unread message export request sent by the mobile terminal, and exports the unread IM message to a file to be sent to the target account. Therefore, the server can trigger the export behavior, screen the unread IM messages sent by the contact accounts which accord with the preset unread message rule, select the unread IM messages sent by the contact accounts with the latest unread IM message with the sending time arranged in the previous preset digit number, export the unread IM messages to a file and send the unread IM messages to the target account, and a subsequent user can quickly browse the unread IM messages by checking the file, so that the time of the user is saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an unread IM message processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for processing an unread IM message according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an unread IM message processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an unread IM message processing apparatus according to another embodiment of the present invention;
fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Fig. 1 is a schematic flowchart illustrating an unread IM message processing method according to an embodiment of the present invention, where the unread IM message processing method according to the present embodiment is applied to a server, and as shown in fig. 1, the unread IM message processing method according to the present embodiment includes:
s1, retrieving unread IM messages of the target account in a preset time period at a preset time, and acquiring the contact account of the target account, wherein the contact account conforms to a preset unread message rule.
It is understood that the database of the server stores the information of the IM messages sent by all contact accounts received by all accounts, including: the sending time of the IM message, whether the state of the IM message is in a read state or an unread state, and the like.
In a specific application, the preset time may be set according to an actual situation, and the embodiment does not limit the preset time.
In a specific application, the preset time period may be set according to an actual situation, which is not limited in this embodiment, for example, the preset time period may be set to 3 days.
It can be understood that, in this step, the server may screen out the contact account of the target account that meets the preset unread message rule, and may subsequently send the screened contact account to the mobile terminal corresponding to the target account through the push instruction for subsequent processing. The preset unread message rule can be set according to actual conditions.
And S2, sending a push instruction to the mobile terminal corresponding to the target account, wherein the push instruction carries the contact account which is in accordance with the preset unread message rule and corresponds to the target account corresponding to the mobile terminal, so that the mobile terminal sets the unread IM messages sent by the contact account which is in accordance with the preset unread message rule to be read, and then sends an unread message export request to the server.
In this step, the server sends the screened contact accounts meeting the preset unread message rule of the target accounts to the mobile terminal corresponding to the target accounts through a push instruction, the mobile terminal sets all the unread IM messages sent by the contact accounts meeting the preset unread message rule to be read, and sends an unread message export request to the server, so that the server can subsequently conduct the operation of exporting the selected unread IM messages to a file.
S3, according to the unread message export request sent by the mobile terminal, selecting the unread IM message sent by the contact account with the latest unread IM message with the sending time arranged in the previous preset digit number, exporting the unread IM message to a file, and sending the file to the target account.
It can be understood that, after receiving the unread message export request sent by the mobile terminal, the server may sort the contact accounts meeting the preset unread message rule according to the sending time of the latest unread message, export the unread IM messages sent by the contact accounts with the previous preset number of bits into a file, and send the file to the target account, for example, to a preset mailbox address corresponding to the target account.
In a specific application, the pre-set number of bits may be set according to an actual situation, which is not limited in this embodiment, for example, the pre-set number of bits may be set to the first 3 bits.
It can be understood that only unread IM messages sent by the contact account with the preset number of digits are exported to one file, so that the influence on the user experience when the user logs in a mailbox corresponding to the preset mailbox address and views the file in the subsequent process due to the overlarge length of the output file can be avoided.
It can be understood that, after receiving the unread message export request sent by the mobile terminal, the server may also modify the state of the IM message in the IM message information stored in the database to the read state.
It can be understood that the server may retrieve unread IM messages of all accounts within a preset time period at a preset time, in this embodiment, any account of all accounts may be selected as a target account, the unread IM messages sent by a contact account are screened for the target account, and are exported to a file and sent to the target account, for example, to a preset mailbox address corresponding to the target account, and subsequently, when a user may log in a mailbox corresponding to the preset mailbox address on a certain terminal (e.g., a mobile terminal, a personal computer, etc.), the unread IM messages may be quickly browsed by viewing the file, so as to save user time.
The unread IM message processing method provided by the embodiment of the invention is applied to a server, and comprises the steps of sending a push instruction to a mobile terminal corresponding to a target account, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to the target account, enabling the mobile terminal to set unread IM messages sent by the contact account in accordance with the preset unread message rule as read, then sending an unread message export request to the server, selecting the unread IM message sent by the contact account with the latest unread IM message sending time arranged in the previous preset number according to the unread message export request sent by the mobile terminal by the server, exporting the unread IM message to a file and sending the unread IM message to the target account, triggering export behavior by the server, screening the unread IM messages sent by the contact account in accordance with the preset unread message rule, the unread IM message sent by the contact account with the latest unread IM message with the sending time arranged in the front preset digit is selected from the unread IM messages, the unread IM message is exported to a file and sent to the target account, and then a user can quickly browse the unread IM message by looking at the file, so that the time of the user is saved.
Further, on the basis of the foregoing embodiment, the preset unread message rule may include at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
It can be understood that the rule is to screen out the contact accounts of which the existence duration of the unread IM messages exceeds a preset time period and no new unread IM message exists in the preset time period; the second rule is that the existing duration of the unread IM message is furthest more than the preset time period, and the contact account of the latest unread IM message is screened out in the sending time of the unread IM message on the same day; the rule two takes precedence over the rule one.
The unread IM message processing method provided by the embodiment of the invention is applied to a server, can trigger a lead-out action by the server, screens the unread IM messages sent by a contact account which accords with the preset unread message rule, selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked in the previous preset digit number, leads the unread IM messages to a file and sends the unread IM messages to a target account, and can enable a user to quickly browse the unread IM messages by looking up the file subsequently, thereby saving the time of the user.
Fig. 2 is a schematic flowchart illustrating an unread IM message processing method according to an embodiment of the present invention, where the unread IM message processing method according to the present embodiment is applied to a mobile terminal, and as shown in fig. 2, the unread IM message processing method according to the present embodiment includes:
and P1, receiving a push instruction sent by the server, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to a target account of the mobile terminal.
It is understood that the database of the server stores the information of the IM messages sent by all contact accounts received by all accounts, including: the sending time of the IM message, whether the state of the IM message is in a read state or an unread state, and the like. The method comprises the steps that a server retrieves unread IM messages of a target account in a preset time period at preset time, acquires a contact account of the target account, which accords with a preset unread message rule, and sends the contact account of the target account, which accords with the preset unread message rule, to a mobile terminal through a push instruction, and after the mobile terminal receives the push instruction, the contact account of the target account, which accords with the preset unread message rule, can be acquired from the push instruction. The preset unread message rule can be set according to actual conditions.
And P2, setting all the unread IM messages sent by the contact accounts meeting the preset unread message rules as read.
It can be understood that in this embodiment, the contact accounts meeting the preset unread message rule are screened, so that the server subsequently exports the selected unread IM messages to a file and sends the unread IM messages to the target account.
And P3, sending an unread message export request to the server, so that the server selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked at the previous preset digit according to the unread message export request sent by the mobile terminal, exports the unread IM messages to a file, and sends the file to the target account.
It can be understood that, after setting all the unread IM messages sent by the contact accounts meeting the preset unread message rules as read, the mobile terminal sends an unread message export request to the server, so that the server can select the unread IM messages sent by the contact accounts with the latest unread IM message sending time arranged in the previous preset digit number according to the unread message export request, export the unread IM messages into a file, and send the file to the target account, for example, to a preset mailbox address corresponding to the target account.
In a specific application, the pre-set number of bits may be set according to an actual situation, which is not limited in this embodiment, for example, the pre-set number of bits may be set to the first 3 bits.
It can be understood that the server only exports the unread IM messages sent by the contact account with the preset number of digits into one file, so that the influence on the user experience when the user logs in a mailbox corresponding to the preset mailbox address and views the file in the subsequent process due to the overlarge length of the output file can be avoided.
It can be understood that, in the mobile terminal of this embodiment, an account used by the mobile terminal is used as a target account, a contact account of the target account that meets a preset unread message rule is obtained from a push instruction sent by a server, after unread IM messages sent by the contact account that meets the preset unread message rule are all set to be read, an unread message export request is sent to the server, so that the server selects, according to the unread message export request, an unread IM message sent by a contact account whose latest unread IM message sending time is ranked at a preset number of digits before, and exports the unread IM message to a file, and sends the file to the target account, for example, to a preset mailbox address corresponding to the target account, and when a user can log in a mailbox corresponding to the preset mailbox address on a certain terminal (such as a mobile terminal, a personal computer, and the like), the unread IM messages can be quickly browsed by viewing the file, so that the time of a user is saved.
The unread IM message processing method provided by the embodiment of the invention is applied to a mobile terminal, and comprises the steps of receiving a push instruction sent by a server, setting all unread IM messages sent by a contact account which accords with a preset unread message rule and is corresponding to a target account of the mobile terminal to be read, sending an unread message export request to the server, so that the server selects the unread IM message sent by the contact account of which the latest unread IM message sending time is arranged in the previous preset number according to the unread message export request sent by the mobile terminal, exporting the unread IM message to a file, and sending the file to the target account. Therefore, through interaction with the server, the server screens the unread IM messages sent by the contact accounts which accord with the preset unread message rule, selects the unread IM messages sent by the contact accounts with the latest unread IM message with the sending time arranged in the front preset digit number, exports the unread IM messages to a file and sends the unread IM messages to the target account, and then a user can quickly browse the unread IM messages by looking up the file, so that the time of the user is saved.
Further, on the basis of the foregoing embodiment, the preset unread message rule may include at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is in the same day.
It can be understood that, the rule is to screen out the contact accounts of which the existing durations of the unread IM messages exceed a preset time period and in which no new unread IM message exists within the preset time period; the second rule is that the existing duration of the unread IM message is furthest more than the preset time period, and the contact account of the latest unread IM message is screened out in the sending time of the unread IM message on the same day; the rule two takes precedence over the rule one.
The unread IM message processing method provided by the embodiment of the invention is applied to a mobile terminal, can screen the unread IM messages sent by a contact account which accords with the preset unread message rule through interaction with a server, selects the unread IM messages sent by the contact account with the latest unread IM message of which the sending time is arranged at the previous preset digit number, leads the unread IM messages to a file and sends the unread IM messages to a target account, and can enable a user to quickly browse the unread IM messages by looking up the file subsequently, thereby saving the time of the user.
Fig. 3 is a schematic structural diagram of an unread IM message processing apparatus according to an embodiment of the present invention, where the unread IM message processing apparatus according to the present embodiment is applied to a server, and as shown in fig. 3, the unread IM message processing apparatus according to the present embodiment includes: an acquisition module 31, a first sending module 32 and a derivation module 33; wherein:
the obtaining module 31 is configured to retrieve, at preset time, unread IM messages of a target account within a preset time period, and obtain a contact account of the target account that meets a preset unread message rule;
the first sending module 32 is configured to send a push instruction to the mobile terminal corresponding to the target account, where the push instruction carries a contact account of the target account corresponding to the mobile terminal, where the contact account meets a preset unread message rule, so that the mobile terminal sets unread IM messages sent by the contact account meeting the preset unread message rule to be read, and then sends an unread message export request to the server;
the export module 33 is configured to select, according to the unread message export request sent by the mobile terminal, an unread IM message sent by a contact account with the latest unread IM message whose sending time is ranked at the previous preset digit, export the unread IM message into a file, and send the file to the target account.
Specifically, the obtaining module 31 obtains a contact account of the target account, which meets a preset unread message rule, by retrieving unread IM messages of the target account within a preset time period at a preset time; the first sending module 32 sends a push instruction to the mobile terminal corresponding to the target account, where the push instruction carries a contact account of the target account corresponding to the mobile terminal, which conforms to a preset unread message rule, so that the mobile terminal sets unread IM messages sent by the contact account conforming to the preset unread message rule to be read, and then sends an unread message export request to the server; the export module 33 selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked in the previous preset number of digits according to the unread message export request sent by the mobile terminal, exports the unread IM messages to a file, and sends the file to the target account.
It is understood that the database of the server stores the information of the IM messages sent by all contact accounts received by all accounts, including: the sending time of the IM message, whether the state of the IM message is in a read state or an unread state, and the like.
In a specific application, the preset time may be set according to an actual situation, and the embodiment does not limit the preset time.
In a specific application, the preset time period may be set according to an actual situation, which is not limited in this embodiment, for example, the preset time period may be set to 3 days.
It can be understood that, in the obtaining module 31, the server may screen out the contact account of the target account that meets the preset unread message rule, and may subsequently send the screened contact account to the mobile terminal corresponding to the target account through a push instruction for subsequent processing. The preset unread message rule can be set according to actual conditions.
It can be understood that, in the first sending module 32, the server sends the screened contact accounts meeting the preset unread message rule of the target accounts to the mobile terminal corresponding to the target accounts through a push instruction, and the mobile terminal sets all the unread IM messages sent by the contact accounts meeting the preset unread message rule to be read, and sends an unread message export request to the server, so that the server can subsequently perform an operation of exporting the selected unread IM messages to a file.
It can be understood that, in the export module 33, after receiving the export request of the unread message sent by the mobile terminal, the server may sort the contact accounts meeting the preset unread message rule according to the sending time of the latest unread message, export the unread IM message sent by the contact account with the previous preset number of digits into a file, and send the file to the target account, for example, to the preset mailbox address corresponding to the target account.
In a specific application, the pre-set number of bits may be set according to an actual situation, which is not limited in this embodiment, for example, the pre-set number of bits may be set to the first 3 bits.
It can be understood that only unread IM messages sent by the contact account with the preset number of digits are exported to one file, so that the influence on the user experience when the user logs in a mailbox corresponding to the preset mailbox address and views the file in the subsequent process due to the overlarge length of the output file can be avoided.
It can be understood that, after receiving the unread message export request sent by the mobile terminal, the export module 33 may also modify the state of the IM message in the IM message information stored in the database to the read state.
It can be understood that the server may retrieve unread IM messages of all accounts within a preset time period at a preset time, in this embodiment, any account of all accounts may be selected as a target account, the unread IM messages sent by a contact account are screened for the target account, and are exported to a file and sent to the target account, for example, to a preset mailbox address corresponding to the target account, and then when a user may log in a mailbox corresponding to the preset mailbox address on a certain terminal (e.g., a mobile terminal, a personal computer, etc.), the unread IM messages may be quickly browsed by viewing the file, so as to save user time.
The unread IM message processing device provided by the embodiment of the invention is applied to a server, can trigger a lead-out action by the server, screens the unread IM messages sent by a contact account which accords with the preset unread message rule, selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked in the previous preset digit number, leads the unread IM messages to a file and sends the unread IM messages to a target account, and can enable a user to quickly browse the unread IM messages by looking up the file subsequently, thereby saving the time of the user.
Further, on the basis of the foregoing embodiment, the preset unread message rule may include at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
It can be understood that the rule is to screen out the contact accounts of which the existence duration of the unread IM messages exceeds a preset time period and no new unread IM message exists in the preset time period; the second rule is that the existing duration of the unread IM message is furthest more than the preset time period, and the contact account of the latest unread IM message is screened out in the sending time of the unread IM message on the same day; the rule two takes precedence over the rule one.
The unread IM message processing device provided by the embodiment of the invention is applied to a server, can trigger an export action by the server, screens the unread IM messages sent by a contact account which accords with the preset unread message rule, selects the unread IM messages sent by the contact account with the latest unread IM message sending time ranked at the previous preset digit, exports the unread IM messages to a file to be sent to a target account, and can enable a user to quickly browse the unread IM messages by checking the file subsequently, thereby saving the time of the user.
The unread IM message processing apparatus provided in the embodiment of the present invention may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of an unread IM message processing apparatus according to an embodiment of the present invention, which is applied to a mobile terminal, and as shown in fig. 4, the unread IM message processing apparatus according to the embodiment includes: a receiving module 41, a setting module 42 and a second sending module 43; wherein:
the receiving module 41 is configured to receive a push instruction sent by a server, where the push instruction carries a contact account, which is in accordance with a preset unread message rule, of a target account corresponding to the mobile terminal;
the setting module 42 is configured to set all unread IM messages sent by the contact account that meets the preset unread message rule as read messages;
the second sending module 43 is configured to send an unread message export request to the server, so that the server selects, according to the unread message export request sent by the mobile terminal, an unread IM message sent by a contact account with a latest unread IM message whose sending time is ranked in the top preset number of digits, exports the unread IM message to a file, and sends the file to the target account.
Specifically, the receiving module 41 receives a push instruction sent by a server, where the push instruction carries a contact account of a target account corresponding to the mobile terminal, where the contact account meets a preset unread message rule; the setting module 42 sets all the unread IM messages sent by the contact account meeting the preset unread message rule as read; the second sending module 43 sends an unread message export request to the server, so that the server selects, according to the unread message export request sent by the mobile terminal, an unread IM message sent by a contact account with the latest unread IM message whose sending time is ranked at the previous preset digit, exports the unread IM message to a file, and sends the file to the target account.
It is understood that the database of the server stores the information of the IM messages sent by all contact accounts received by all accounts, including: the sending time of the IM message, whether the state of the IM message is in a read state or an unread state, and the like. The method comprises the steps that a server retrieves unread IM messages of a target account in a preset time period at preset time, acquires a contact account of the target account, which accords with a preset unread message rule, and sends the contact account of the target account, which accords with the preset unread message rule, to a mobile terminal through a push instruction, wherein after the push instruction is received by a receiving module 41 of the mobile terminal, the contact account of the target account, which accords with the preset unread message rule, can be acquired from the push instruction. The preset unread message rule can be set according to actual conditions.
It can be understood that in this embodiment, the contact accounts meeting the preset unread message rule are screened, so that the server subsequently exports the selected unread IM messages to a file and sends the unread IM messages to the target account.
It can be understood that, after setting all the unread IM messages sent by the contact accounts meeting the preset unread message rule as read, the mobile terminal sends an unread message export request to the server through the second sending module 43, so that the server can select, according to the unread message export request, an unread IM message sent by a contact account whose latest sending time of the unread IM message is ranked at the previous preset digit number, export the unread IM message into a file, and send the file to the target account, for example, to a preset mailbox address corresponding to the target account.
In a specific application, the pre-set number of bits may be set according to an actual situation, which is not limited in this embodiment, for example, the pre-set number of bits may be set to the first 3 bits.
It can be understood that the server only exports the unread IM messages sent by the contact account with the preset number of digits into one file, so that the influence on the user experience when the user logs in a mailbox corresponding to the preset mailbox address and views the file in the subsequent process due to the overlarge length of the output file can be avoided.
It can be understood that, in the mobile terminal of this embodiment, an account used by the mobile terminal is used as a target account, a contact account of the target account that meets a preset unread message rule is obtained from a push instruction sent by a server, after unread IM messages sent by the contact account that meets the preset unread message rule are all set to be read, an unread message export request is sent to the server, so that the server selects, according to the unread message export request, an unread IM message sent by a contact account whose latest unread IM message sending time is ranked at a preset number of digits before, and exports the unread IM message to a file, and sends the file to the target account, for example, to a preset mailbox address corresponding to the target account, and when a user can log in a mailbox corresponding to the preset mailbox address on a certain terminal (such as a mobile terminal, a personal computer, and the like), the unread IM messages can be quickly browsed by viewing the file, so that the time of a user is saved.
The unread IM message processing device provided by the embodiment of the invention is applied to a mobile terminal, can enable the server to screen the unread IM messages sent by the contact account which accords with the preset unread message rule through interaction with the server, selects the unread IM messages sent by the contact account with the latest unread IM message with the sending time ranked at the front preset digit, leads the unread IM messages to a file and sends the unread IM messages to a target account, and can enable a user to quickly browse the unread IM messages through checking the file subsequently, thereby saving the time of the user.
Further, on the basis of the foregoing embodiment, the preset unread message rule may include at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the existing time length of the unread IM messages sent by the contact account is furthest more than the preset time period, and the sending time of the latest unread IM message is on the same day.
It can be understood that the rule is to screen out the contact accounts of which the existence duration of the unread IM messages exceeds a preset time period and no new unread IM message exists in the preset time period; the second rule is that the existing duration of the unread IM message is furthest more than the preset time period, and the contact account of the latest unread IM message is screened out in the sending time of the unread IM message on the same day; the rule two takes precedence over the rule one.
The unread IM message processing method provided by the embodiment of the invention is applied to a mobile terminal, can screen the unread IM messages sent by a contact account which accords with the preset unread message rule through interaction with a server, selects the unread IM messages sent by the contact account with the latest unread IM message of which the sending time is arranged at the previous preset digit number, leads the unread IM messages to a file and sends the unread IM messages to a target account, and can enable a user to quickly browse the unread IM messages by looking up the file subsequently, thereby saving the time of the user.
The unread IM message processing apparatus provided in the embodiment of the present invention may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 5, the electronic device may include a memory 502, a processor 501, a bus 503, and a computer program stored in the memory 502 and executable on the processor 501, where the processor 501 and the memory 502 are in communication with each other through the bus 503. The processor 501, when executing the computer program, implements the steps of the above method, for example, including: retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule; sending a push instruction to a mobile terminal corresponding to the target account, wherein the push instruction carries a contact account which accords with a preset unread message rule and corresponds to the target account corresponding to the mobile terminal, so that the mobile terminal sets unread IM messages sent by the contact account which accords with the preset unread message rule to be read, and then sends an unread message export request to the server; according to an unread message export request sent by the mobile terminal, selecting the unread IM message sent by a contact account with the latest unread IM message with the sending time arranged in the previous preset digit number, exporting the unread IM message to a file, and sending the file to the target account; alternatively, it comprises: receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in line with a preset unread message rule and corresponds to a target account corresponding to the mobile terminal; setting all unread IM messages sent by the contact accounts according with the preset unread message rule as read messages; sending an unread message export request to the server, so that the server selects the unread IM messages sent by the contact account with the latest unread IM message sending time arranged in the previous preset digit number according to the unread message export request sent by the mobile terminal, exports the unread IM messages to a file, and sends the file to the target account.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method, for example, including: retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule; sending a push instruction to a mobile terminal corresponding to the target account, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to the target account corresponding to the mobile terminal, so that the mobile terminal sets unread IM messages sent by the contact account in accordance with the preset unread message rule to be read, and then sends an unread message export request to the server; according to an unread message export request sent by the mobile terminal, selecting the unread IM message sent by a contact account with the latest unread IM message with the sending time arranged in the previous preset digit number, exporting the unread IM message to a file, and sending the file to the target account; alternatively, it comprises: receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in line with a preset unread message rule and corresponds to a target account corresponding to the mobile terminal; setting all unread IM messages sent by the contact accounts according with the preset unread message rule as read messages; sending an unread message export request to the server, so that the server selects the unread IM messages sent by the contact account with the latest unread IM message sending time arranged in the previous preset digit number according to the unread message export request sent by the mobile terminal, exports the unread IM messages to a file, and sends the file to the target account.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An unread IM message processing method applied to a server is characterized by comprising the following steps:
retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule;
sending a push instruction to a mobile terminal corresponding to the target account, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to the target account corresponding to the mobile terminal, so that the mobile terminal sets unread IM messages sent by the contact account in accordance with the preset unread message rule to be read, and then sends an unread message export request to the server; the mobile terminal sets all unread IM messages sent by the contact account which accords with the preset unread message rule to be read, but does not actually read the unread IM messages, and is used for triggering the unread message export request to be sent to the server;
and according to the unread message export request sent by the mobile terminal, sequencing the contact accounts which accord with the preset unread message rule according to the sending time of the latest unread message, selecting the unread IM message sent by the contact account with the latest sending time of the unread IM message arranged in the front of the preset number of digits, exporting the unread IM message to a file, and sending the file to the target account.
2. The unread IM message handling method according to claim 1, wherein the preset unread message rules comprise at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the longest existing time of the unread IM messages sent by the contact account exceeds a preset time period, and the sending time of the latest unread IM message is on the same day.
3. An unread IM message processing method is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in line with a preset unread message rule and corresponds to a target account corresponding to the mobile terminal;
setting all unread IM messages sent by the contact accounts according with the preset unread message rule as read messages; the mobile terminal sets all unread IM messages sent by the contact account which accords with the preset unread message rule to be read, but does not actually read the unread IM messages, and is used for triggering the unread message export request to be sent to the server;
sending an unread message export request to the server, so that the server sorts the contact accounts meeting the preset unread message rules according to the unread message export request sent by the mobile terminal and the sending time of the latest unread message, selects the unread IM message sent by the contact account with the sending time of the latest unread IM message ranked at the previous preset digit, exports the unread IM message to a file, and sends the file to the target account.
4. The unread IM message handling method according to claim 3, wherein the preset unread message rules comprise at least one of the following rules:
a first rule: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the longest existing time of the unread IM messages sent by the contact account exceeds a preset time period, and the sending time of the latest unread IM message is on the same day.
5. An unread IM message processing apparatus, applied to a server, comprising:
the acquisition module is used for retrieving unread IM messages of a target account in a preset time period at preset time, and acquiring a contact account of the target account, which accords with a preset unread message rule;
a first sending module, configured to send a push instruction to a mobile terminal corresponding to the target account, where the push instruction carries a contact account of the target account corresponding to the mobile terminal, where the contact account meets a preset unread message rule, so that the mobile terminal sets unread IM messages sent by the contact account meeting the preset unread message rule to be read, and then sends an unread message export request to the server; the mobile terminal sets all unread IM messages sent by the contact account which accords with the preset unread message rule to be read, but does not actually read the unread IM messages, and is used for triggering the unread message export request to be sent to the server;
and the export module is used for sorting the contact accounts which accord with the preset unread message rule according to the unread message export request sent by the mobile terminal and the sending time of the latest unread message, selecting the unread IM message sent by the contact account with the latest unread IM message sending time arranged in the previous preset digit number, exporting the unread IM message to a file, and sending the file to the target account.
6. The unread IM message processing apparatus according to claim 5, wherein the preset unread message rules comprise at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the longest existing time of the unread IM messages sent by the contact account exceeds a preset time period, and the sending time of the latest unread IM message is on the same day.
7. An unread IM message processing device applied to a mobile terminal, comprising:
the receiving module is used for receiving a push instruction sent by a server, wherein the push instruction carries a contact account which is in accordance with a preset unread message rule and corresponds to a target account of the mobile terminal;
the setting module is used for setting all the unread IM messages sent by the contact accounts which accord with the preset unread message rule as read messages;
a second sending module, configured to send an unread message export request to the server, so that the server sorts, according to the unread message export request sent by the mobile terminal, the contact accounts meeting the preset unread message rule according to the sending time of a latest unread message, selects an unread IM message sent by a contact account with the sending time of the latest unread IM message ranked in the previous preset number of digits, exports the unread IM message to a file, and sends the file to the target account;
the setting module sets all the unread IM messages sent by the contact account meeting the preset unread message rule to be read, but does not actually read the unread IM messages, but is used for triggering the second sending module to send the unread message export request to the server.
8. The unread IM message processing apparatus according to claim 7, wherein the preset unread message rules comprise at least one of the following rules:
rule one is as follows: the existing time length of the unread IM messages sent by the contact account exceeds a preset time period, and no new unread IM message exists in the preset time period;
rule two: the longest existing time of the unread IM messages sent by the contact account exceeds a preset time period, and the sending time of the latest unread IM message is on the same day.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 4 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201910798293.5A 2019-08-27 2019-08-27 Unread IM message processing method and device Active CN110557324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910798293.5A CN110557324B (en) 2019-08-27 2019-08-27 Unread IM message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910798293.5A CN110557324B (en) 2019-08-27 2019-08-27 Unread IM message processing method and device

Publications (2)

Publication Number Publication Date
CN110557324A CN110557324A (en) 2019-12-10
CN110557324B true CN110557324B (en) 2022-05-27

Family

ID=68738080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910798293.5A Active CN110557324B (en) 2019-08-27 2019-08-27 Unread IM message processing method and device

Country Status (1)

Country Link
CN (1) CN110557324B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272136A (en) * 2020-10-15 2021-01-26 北京京东方技术开发有限公司 Instant message notification method and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438598A (en) * 2002-02-12 2003-08-27 佳能株式会社 Electronic-mail processing system for making feedback mails method thereof
CN101110794A (en) * 2007-08-20 2008-01-23 北京亿企通信息技术有限公司 Method for reminding unread message in instant communication tools
CN106095775A (en) * 2016-05-24 2016-11-09 中国银行股份有限公司 A kind of method and system realizing data query or derivation
CN106209941A (en) * 2015-01-30 2016-12-07 三竹资讯股份有限公司 Enterprise mobile information system and method
CN106209956A (en) * 2015-02-25 2016-12-07 三竹资讯股份有限公司 Enterprise mobile information system and method
CN106294376A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Data processing method and device
CN108347373A (en) * 2018-01-09 2018-07-31 烽火通信科技股份有限公司 A kind of enterprise APP realizes the method and system of instant messaging
AU2017285309A1 (en) * 2016-06-17 2018-12-20 Philips Medical Systems Technologies Ltd Medical image workflow system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7113809B2 (en) * 2002-12-19 2006-09-26 Nokia Corporation Apparatus and a method for providing information to a user
AU2006222938B2 (en) * 2005-03-14 2011-02-10 Gtech Rhode Island Corporation System and method for processing form markings
JP5633432B2 (en) * 2011-03-04 2014-12-03 富士通株式会社 Storage system, storage control device, and storage control method
US10353989B1 (en) * 2013-12-19 2019-07-16 Open Text Corporation Method to allow switching of user interface layout based on context and configuration
CN107105107A (en) * 2017-06-23 2017-08-29 努比亚技术有限公司 Message display method, mobile terminal and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438598A (en) * 2002-02-12 2003-08-27 佳能株式会社 Electronic-mail processing system for making feedback mails method thereof
CN101110794A (en) * 2007-08-20 2008-01-23 北京亿企通信息技术有限公司 Method for reminding unread message in instant communication tools
CN106209941A (en) * 2015-01-30 2016-12-07 三竹资讯股份有限公司 Enterprise mobile information system and method
CN106209956A (en) * 2015-02-25 2016-12-07 三竹资讯股份有限公司 Enterprise mobile information system and method
CN106294376A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Data processing method and device
CN106095775A (en) * 2016-05-24 2016-11-09 中国银行股份有限公司 A kind of method and system realizing data query or derivation
AU2017285309A1 (en) * 2016-06-17 2018-12-20 Philips Medical Systems Technologies Ltd Medical image workflow system and method
CN108347373A (en) * 2018-01-09 2018-07-31 烽火通信科技股份有限公司 A kind of enterprise APP realizes the method and system of instant messaging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于微信企业号企业管理系统的设计与实现》;刘圣;《中国优秀硕士学位论文全文数据库》;20161031;正文3.2.2节 *

Also Published As

Publication number Publication date
CN110557324A (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN110347716B (en) Log data processing method, device, terminal equipment and storage medium
US9521104B2 (en) Outgoing communications inventory
CN107656968B (en) Method and system for exporting large-batch business data
CN109669835B (en) MySQL database monitoring method, device, equipment and readable storage medium
CN104980421B (en) Batch request processing method and system
CN112367345A (en) Data processing method, server device and computer readable storage medium
CN106533914A (en) Message notification method and apparatus
CN110557324B (en) Unread IM message processing method and device
CN108959047B (en) Pressure testing method and device based on service scene
CN109587197B (en) Method, device and system for associating reported data
CN117040799A (en) Page interception rule generation and page access control method and device and electronic equipment
CN112019546A (en) Protection strategy adjusting method, system, equipment and computer storage medium
CN108924840B (en) Blacklist management method and device and terminal
CN110609758A (en) Queue-based device operating method, computer device and readable storage medium
CN108989298A (en) A kind of equipment safety monitoring method and device
CN110134547B (en) Middleware-based repeated data deleting method and related device
CN112052101A (en) Broadcast processing method and device and computer system
CN111737036A (en) Service processing method and device based on robot process automation
CN111124841A (en) Abnormal page alarming method and device and computer system
CN106790428B (en) Data transmission method and device
CN113269590B (en) Data processing method, device and system for resource subsidy
CN110674395B (en) Information pushing method, device and equipment
CN114501348B (en) Combined monitoring method, device, equipment and storage medium for users suffering from fraud
CN109842716A (en) A kind of application message processing method and terminal device
CN113485778B (en) Page data processing method and device, storage medium and electronic device

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