WO2014048162A1 - 一种消息处理的方法、装置及设备 - Google Patents

一种消息处理的方法、装置及设备 Download PDF

Info

Publication number
WO2014048162A1
WO2014048162A1 PCT/CN2013/079295 CN2013079295W WO2014048162A1 WO 2014048162 A1 WO2014048162 A1 WO 2014048162A1 CN 2013079295 W CN2013079295 W CN 2013079295W WO 2014048162 A1 WO2014048162 A1 WO 2014048162A1
Authority
WO
WIPO (PCT)
Prior art keywords
address book
communication information
contact
sender
sender identification
Prior art date
Application number
PCT/CN2013/079295
Other languages
English (en)
French (fr)
Inventor
牛坤
刘新宇
曾健
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to US14/132,599 priority Critical patent/US9736090B2/en
Publication of WO2014048162A1 publication Critical patent/WO2014048162A1/zh

Links

Classifications

    • 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]
    • H04L51/046Interoperability with other network applications or services
    • 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
    • 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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/48Message addressing, e.g. address format or anonymous messages, aliases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Definitions

  • the present disclosure relates to the field of mobile communications technologies, and in particular, to a message processing method, apparatus, and device. Background technique
  • the sender informs the contact person of the new communication information by means of a group text message through the mobile phone, for example, the message content may be "I am Zhang San, this is my new number 134********” ; receiving After receiving the short message sent by the sender, the party memorizes the new communication information, such as the number "134********", and then manually switches to the address book, manually searches the sender in the address book, and then manually searches for the sender. Re-editing the communication information of the sender in the address book to the new communication information and storing, for example, the original telephone number of "Zhang San” recorded in the address book” 135******** "Replace with” 134********,,.
  • the embodiment of the invention provides a method, a device and a device for processing a message, which can reduce the manual operation when the user updates the address book.
  • a method of message processing comprising:
  • the message including a sender identifier for indicating the identity of the sender and updating the locally stored address book based on the sender identifier and the communication information.
  • An apparatus for message processing comprising: a receiving module and an updating module;
  • the receiving module is configured to receive a message sent by a sender, where the message includes a sender identifier and communication information used to indicate the identity of the sender;
  • the update module is configured to update the locally stored address book according to the sender identifier and the communication information.
  • a device comprising:
  • One or more processors are One or more processors;
  • One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules have the following functions:
  • the sender Receiving a message sent by the sender, the message including a sender identifier and communication information indicating the identity of the sender;
  • the method, the device and the device for processing the message provided by the embodiment of the present invention, after receiving the message sent by the sender and including the sender identifier and the communication information for indicating the identity of the sender And updating the locally stored address book according to the sender identifier and the communication information, so that the manual operation of the user when updating the address book can be reduced.
  • FIG. 1 is a schematic flowchart of a method for message processing according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for message processing according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a prompt box according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an apparatus for message processing according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a first structure of an update module in an apparatus for message processing according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram showing a second structure of an update module in an apparatus for message processing according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a third structure of an update module of a device for message processing according to an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a fourth structure of an update module of a device for message processing according to an embodiment of the present invention. detailed description
  • an embodiment of the present invention provides a method for message processing, which may include the following steps:
  • S101 Receive a message sent by a sender, where the message may include a sender identifier and communication information used to indicate the identity of the sender.
  • the message may be a mobile short message, an instant messaging IM message, an email, or a social network service SNS message; correspondingly, the sender identifier may be a sender's phone number, an IM number, or an electronic Email address or SNS account number.
  • the communication information may include at least one of a contact, a telephone number, a communication network account number, a communication address, and a personal profile;
  • the communication network account may be an instant messaging (IM) account or a social network service (SNS) account
  • the communication address may be a residential address, a unit address, or an e-mail address.
  • E-mail Email Address
  • personal profile can include personal avatar, work or study unit, position or hobbies.
  • S102 Update a locally stored address book according to the sender identifier and the communication information.
  • the address book refers to a note carrier for storing user communication information, which is convenient for an individual or an enterprise to contact a certain contact to obtain the communication information of the contact by querying the address book.
  • updating the locally stored address book according to the sender identifier and the communication information may be as follows:
  • the communication information is added to the sending In the address book entry of the contact corresponding to the party identifier, or replace the content in the address book entry of the contact corresponding to the sender identifier with the communication information; as a second optional implementation, if If the received communication information includes a contact and the contact does not exist in the address book, create a new contact entry corresponding to the contact in the address book, and store the communication information in the contact information. Within the newly created address book entry; as an embodiment of the third alternative implementation, if When the received communication information is organized in a predetermined format, the communication information is directly imported into the address book. In an embodiment of the present invention, the content in the address book entry of the contact corresponding to the sender identifier is replaced by the communication information, which may include:
  • the received sender identifier does not exist in the address book
  • the received communication information includes a contact and the contact exists in the address book Adding the sender identifier and the communication information to the address book entry corresponding to the contact, or replacing the content in the address book entry corresponding to the contact with the sender identifier and the location Communication information
  • the sender identifier does not exist in the address book
  • the received communication information includes a contact and the contact does not exist in the In the address book, a new contact entry corresponding to the contact is created in the address book, and the sender identifier and the communication information are stored in the newly created address book entry.
  • the method for processing the message after receiving a message that is sent by a sender and includes a sender identifier and a communication information for indicating the identity of the sender, according to the sender identifier and the communication.
  • Information updates the locally stored address book, which reduces the manual operation of the user when updating the address book.
  • the embodiment of the present invention further provides a message processing method, which can simplify the operation of the user in updating the address book.
  • the logic for implementing the method can be built into the operation.
  • the application scenario of the communication information of the contact of the other party is sent by the user to send the short message of the mobile phone through the mobile phone.
  • the method may include the following steps:
  • SMS short message service
  • the short message service refers to a message that the user directly sends or receives through the mobile phone or other telecommunication terminal, and may include sending Party phone number and user data.
  • S202 Determine whether the received user data includes communication information.
  • the received user data includes communication information, perform S203;
  • the user is prompted whether to display the received short message of the mobile phone, and when receiving the display indication sent by the user, the short message received is displayed, and the operation is ended.
  • the communication information may include at least one of a contact, a phone number, a communication network account, a communication address, and a affiliation unit; wherein, the communication network account may be an IM (Instant Messenger, timely communication) The account number or SNS (Social Networking Services) account, etc., the communication address can be a residential address, a unit address, or an e-mail address.
  • IM Instant Messenger, timely communication
  • SNS Social Networking Services
  • the address book refers to a note carrier for storing user communication information, which is convenient for an individual or a company.
  • the communication information of the contact can be obtained by querying the address book.
  • the address book can be a phone book.
  • the received sender's telephone number when the received sender's telephone number is present in the address book, if the communication information is organized in a predetermined format, the communication information is directly imported into the address book.
  • the operation ends; as an example of another optional implementation, when the received sender's phone number exists in the address book, may also perform S204;
  • the content of the contact record of the contact corresponding to the sender's phone number is replaced by the communication information, which may include:
  • the repeated content of the type is consistent; when consistent, the communication is The non-repeating content in the address book content of the contact corresponding to the sender's phone number in the message is added to the contact address book corresponding to the sender's phone number; if not, the The content of the contact record content of the contact corresponding to the phone number of the sender is duplicated with the communication information type, and is replaced by the communication record content type of the contact corresponding to the sender's phone number in the communication information. content.
  • the contact does not exist in the address book, it is determined that the received mobile phone short message is a message sent by a new contact to inform the recipient of the communication information of the recipient, and S211 is performed.
  • the method for processing the message provided by the embodiment of the present invention after receiving the mobile phone short message including the sender number and the communication information sent by the sender, updating the locally stored address book according to the sender number and the communication information. , can reduce the manual operation of users when updating the address book.
  • the specific message processing method is described in detail in combination with a specific application scenario.
  • the specific description can be as follows: Application scenario 1.
  • the sender is the contact that has been stored by the receiver.
  • the sender can The saved old phone number, such as "135********", sends a mobile phone short message, notifying the recipient that the sender has changed the phone number.
  • the user data in the sent mobile phone short message may be " This is my new phone number, 134********, please remember, the old number is deprecated.
  • the receiver receives the short message of the mobile phone sent by the sender, and parses the user data in the received short message of the mobile phone. "This is my new phone number, 134********, please remember, the old number is discarded.
  • the receiver user when the recipient user updates the address book according to the received mobile phone short message, the receiver user can click or touch (the receiver is a touch screen device) to display the communication in the short message of the mobile phone.
  • the information such as the phone number "134********”, pops up a selection prompt box to the recipient user, and the selection prompt box gives a selection label so that the recipient user can select according to the given selection label.
  • the selection prompt box may be as shown in FIG. 3, the sixth item label in FIG. 3 is “added as a new number of Zhang San”, and the seventh item label is “replaced as a new number of Zhang San”.
  • the acquired communication information "134********” is added to the address book entry corresponding to "Zhangsan” in the address book; when the user touches the selection In the case of the seventh item, the telephone number "135********” corresponding to the contact "Zhang San” in the address book is replaced with the obtained communication information "134********”. It can be known that the user only needs to perform a selected action in updating the address book, which saves the user from searching for the contact and editing the contact, which greatly simplifies the user's operation.
  • the sender is the contact that has been stored by the receiver.
  • the sender changes the phone number
  • the sender sends a new phone number such as "134********" that is not saved by the receiver.
  • a mobile phone short message notify the recipient that the sender has changed the phone number.
  • the content of the sent mobile phone short message may be "I am Zhang San, this is my new number, please save it”.
  • the receiving party receives the short message of the mobile phone sent by the sender, and parses the user data in the received short message of the mobile phone, "I am Zhang San, this is my new number, please save it", and get the communication included in the user data.
  • the information is the contact "Zhang San”; after that, the local stored address book is queried, and it is determined whether the sender number of the mobile phone short message is stored in the address book "134********", when the address book is recorded When the sender number does not exist, it is determined whether there is a contact "Zhang San” in the address book. When the contact "Zhang San” is stored in the address book, it can be determined that the mobile phone short message is a phone replacement phone. Short message; After that, add the obtained sender number "134********" to the address book entry corresponding to "Zhang San” in the address book, or the original corresponding to "Zhang San” in the address book. The phone number "135********" is replaced with the obtained phone number "134********”.
  • the sender is a contact that has been saved by the receiver, and the sender notifies the communication information of the third party of the receiver by using a short message of the mobile phone, for example, the sender is the receiver.
  • the saved phone number such as "135********” is used to send a mobile phone short message, and the third party is notified of the communication information such as "Li Si".
  • the user data in the sent mobile short message can be "This is Li. Four phone numbers, 150********".
  • the receiving party receives the short message of the mobile phone sent by the sender, and parses the user data in the received short message of the mobile phone. "This is the phone number of Li Si, 150********", and obtains the communication included in the user data. The information "Li Si” and " 150******”. After that, query the locally stored address book to determine whether the sender number of the mobile phone short message is stored in the address book "135**** ****"corresponding contact; when the contact corresponding to the sender number "135********" is stored in the address book, it is determined whether "Li Si" and "150 are stored in the address book.
  • the sender establishes the "Li Si” and "150********” groups into a mobile phone short message and pre-agreed with the receiver.
  • the formatted message when the receiver receives the short message of the mobile phone, and determines that the short message of the mobile phone is a short message of the mobile phone that notifies the third party of the communication information, the "Li Si” and "150**" of the format can be parsed. ******", and import “Li Si” and " 150******" directly into the address book.
  • the sender is a contact that is not stored by the receiver, and the sender can notify the recipient of the short message by using the short message of the recipient after obtaining the phone number of the recipient from the third party.
  • the sender sends a short message by phone number "152********", the content of the short message of the mobile phone can be "I am daisy, this is my number, please save , feel free to contact” .
  • the receiver After receiving the short message of the mobile phone sent by the sender, the receiver parses the user data in the received short message of the mobile phone. "I am daisy, this is my number, please save, feel free to contact”, get the communication information "daisy" contained in the user data; after that, query the locally stored address book to determine whether the address book is stored in the address book.
  • the contact number of the sender number of the mobile phone short message "152********"; when the contact corresponding to the sender number "152********" is not stored in the address book, It is determined whether the address book entry corresponding to "daisy" is stored in the address book.
  • the mobile phone short message is a notification of the new contact communication information.
  • a new address book entry named "daisy” is created in the address book, and "152********" is recorded to the newly created address book entry.
  • the above application scenario is only described by taking the telephone number in the communication information notified by the mobile short message method as an example, and the communication information notified by the mobile short message method is one of a communication network account, a communication address, and a profile. In many cases, the method is similar, and will not be described here.
  • the implementation of the foregoing technical solution may also be applied to an application scenario in which a user sends an IM message, an email, or an SNS message to notify the communication information of the other party by using an IM tool, an email address, or an SNS tool, and the specific implementation manner is The way in which the mobile phone sends a short message to notify the contact's communication information is similar.
  • the difference is that the short message of the mobile phone appearing in the above technical solution is replaced with an IM message, an email or an SNS message, and the sender's phone number is replaced with The sender's phone number, IM number, email address or SNS account number will not be described here.
  • the method for processing the message provided by the embodiment of the present invention after receiving a message that is sent by the sender and includes the sender identifier and the communication information indicating the identity of the sender, is updated according to the sender identifier and the communication information.
  • Locally stored contacts can reduce manual operations when users update their contacts.
  • the embodiment further provides an apparatus for message processing, and the apparatus may include: a receiving module 301 and an updating module 302;
  • the receiving module 301 is configured to receive a message sent by the sender, where the message includes a sender identifier and communication information indicating the identity of the sender;
  • the message may be a mobile short message, an instant messaging IM message, an email, or a social network service SNS message; correspondingly, the sender identifier may be a sender's phone number, an IM number, or an email address. Address or SNS account number.
  • the updating module 302 is configured to update the locally stored address book according to the sender identifier and the communication information.
  • the communication information may include at least one of a contact, a phone number, a communication network account, a communication address, and a contact profile.
  • the update module 302 may be configured to query the sender identifier and the communication information.
  • the storage status in the locally stored address book, and updating the address book according to the query result includes: a determining unit 3021, configured to determine whether the sender identifier received by the receiving module 301 exists in the locally stored address book;
  • the first update processing unit 3022 is configured to: when the determining unit 3021 determines that the sender identifier exists in the address book, if the communication information received by the receiving module 301 does not include a contact, add the communication information. Or the content in the address book entry of the contact corresponding to the sender identifier is replaced by the communication information in the address book entry of the contact corresponding to the sender identifier;
  • a second update processing unit 3023 configured to: when the determining unit 3021 determines that the sender identifier does not exist in the address book, if the communication information received by the receiving module 301 includes a contact, and the contact exists in the In the address book, the sender identifier and the communication information are added to the address book entry corresponding to the contact, or the content in the address book entry corresponding to the contact is replaced by the sending Party identification and the communication information.
  • the update module 302 may further include:
  • the third update processing unit 3024 is configured to, when the determining unit 3021 determines that the sender identifier exists in the address book, if the communication information received by the receiving module 301 includes a contact, and the contact does not exist in the In the address book, a new contact entry corresponding to the contact is created in the address book, and the communication information is stored in the newly created address book entry.
  • the update module 302 shown in FIG. 6 may further include:
  • a fourth update processing unit 3025 configured to: when the determining unit 3021 determines that the sender identifier exists in the address book, if the communication information received by the receiving module 301 is formed in a predetermined format, the communication information is Import directly into the address book.
  • the predetermined format may be a message format that is mutually identifiable by the receiver and the sender in advance.
  • the update module 302 shown in FIG. 6 may further include:
  • a fifth update processing unit 3025 configured to: when the determining unit 3031 determines that the sender identifier does not exist in the address book, if the communication information received by the receiving module 301 includes a contact and the contact does not exist in the contact In the address book, a contact entry corresponding to the contact is newly created in the address book, and the sender identifier and the communication information are stored in the newly created address book entry.
  • the apparatus for message processing provided by the embodiment of the present invention, after receiving a message that is sent by the sender and includes the sender identifier and the communication information indicating the identity of the sender, is updated according to the sender identifier and the communication information. Locally stored contacts can reduce manual operations when users update their contacts.
  • the embodiment further provides an apparatus, where the apparatus may include:
  • One or more processors are One or more processors;
  • One or more modules may be stored in the memory and configured to be executed by the one or more processors, wherein the one or more modules may have the following functions :
  • the sender Receiving a message sent by the sender, the message including a sender identifier and communication information indicating the identity of the sender;
  • the locally stored address book is updated based on the received sender identification and communication information.
  • the message may be a mobile short message, an instant messaging IM message, an email, or a social network service SNS message; correspondingly, the sender identifier may be a sender's phone number, an IM number, or an email address. Address or SNS account number.
  • the communication information may include at least one of a contact, a telephone number, a communication network account number, a communication address, and a contact profile.
  • the updating the locally stored address book according to the received sender identifier and the communication information may be performed by: querying the sender identifier and the storage state of the communication information in the locally stored address book, and Updating the address book according to the query result may include:
  • the received sender identifier is present in the address book
  • the communication information is added to the sending In the address book entry of the contact corresponding to the party identifier, or replace the content in the address book entry of the contact corresponding to the sender identifier with the communication information
  • the received communication information includes a contact and the contact does not exist in the address book, create a new contact entry corresponding to the contact in the address book, and store the communication information in the contact information.
  • the received communication information is organized in a predetermined format, the communication information is directly imported into the address book.
  • the received sender identifier does not exist in the address book
  • the received communication information includes a contact and the contact exists in the address book Adding the sender identifier and the communication information to the address book entry corresponding to the contact, or replacing the content in the address book entry corresponding to the contact with the sender identifier and the location Communication information
  • the sender identifier does not exist in the address book, if the received communication information includes a contact If the contact does not exist in the address book, create a new contact entry corresponding to the contact in the address book, and store the sender identifier and the communication information in the newly created Within the address book entry.
  • the device for message processing provided by the embodiment of the present invention, after receiving the message sent by the sender and including the sender identifier and the communication information for indicating the identity of the sender, according to the sender identifier and the communication Information updates the locally stored address book, which reduces the manual operation of the user when updating the address book.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to a device with a touch screen, The device with the touch screen can be caused to execute the following steps:
  • the sender Receiving a message sent by the sender, the message including a sender identifier and communication information indicating the identity of the sender;
  • the locally stored address book is updated based on the received sender identification and communication information.
  • the message may be a mobile short message, an instant messaging IM message, an email, or a social network service SNS message; correspondingly, the sender identifier may be a sender's phone number, an IM number, or an email address. Address or SNS account number.
  • the communication information may include at least one of a contact, a telephone number, a communication network account number, a communication address, and a contact profile.
  • the updating the locally stored address book according to the received sender identifier and communication information may be as follows:
  • the received sender identifier is present in the address book
  • the communication information is added to the sending In the address book entry of the contact corresponding to the party identifier, or replace the content in the address book entry of the contact corresponding to the sender identifier with the communication information
  • the received communication information includes a contact and the contact does not exist in the address book, create a new contact entry corresponding to the contact in the address book, and store the communication information in the contact information.
  • the received communication information is organized in a predetermined format, the communication information is directly imported into the address book.
  • the received sender identifier does not exist in the address book
  • the received communication information includes a contact and the contact exists in the address book Adding the sender identifier and the communication information to the address book entry corresponding to the contact, or replacing the content in the address book entry corresponding to the contact with the sender identifier and the location Communication information; implementation as a second alternative implementation
  • the sender identifier does not exist in the address book
  • the received communication information includes a contact and the contact does not exist in the address book, in the address book Creating a contact entry corresponding to the contact, and storing the sender identifier and the communication information in the newly created address book entry.
  • a non-volatile readable storage medium after receiving a message that is sent by a sender and includes a sender identifier and communication information for indicating the identity of the sender, according to the sender identifier. And updating the locally stored address book with the communication information, which can reduce the manual operation of the user when updating the address book.
  • the embodiments of the present invention can be implemented by hardware, or can be implemented by means of software plus a necessary general hardware platform.
  • the technical solution of the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开公开了一种消息处理的方法、装置及设备,涉及移动通信技术领域。本发明实施例提供的消息处理的方法、装置和设备,通过接收发送方发送的包括用于指示所述发送方身份的发送方标识及通信信息的消息,根据所述发送方标识及所述通信信息更新本地存储的通信录,可以减少用户在更新通信录时的手动操作。

Description

一种消息处理的方法、 装置及设备 本申请要求享有申请日为 2012年 9月 25日、 申请号为 201210360867.9、 发明名称为
《一种消息处理的方法、 装置及设备》 的优先权。 技术领域
本公开涉及移动通信技术领域, 尤其涉及一种消息处理的方法、 装置及设备。 背景技术
出于生活、工作或者学习等需要,人们的移动性逐渐增强,这将导致人们的通信信息, 如电话号码或家庭地址等信息经常发生变化。当人们的通信信息发生变化时,通常情况下, 人们需要通知联系人其新的通信信息, 以便可以与对方继续保持通信。
通常, 发送方通过手机以群发短信的方式来通知联系人自己新的通信信息, 短信内容 例如可以是 "我是张三, 这是我的新号码 134******** " ; 接收方接收到发送方发送的短 信后, 记忆新的通信信息, 如号码 " 134******** " , 之后, 手动切换到通信录, 在通信 录内手动搜索所述发送方, 之后, 将通信录内所述发送方的通信信息重新编辑为所述新的 通信信息并存储, 例如将通信录内记录的 "张三"原有的电话号码 " 135******** "替换 为 " 134********,,。
但是, 接收方在接收到发送方发送的通知发送方通信信息更改的短信后, 要记忆该短 信内新的通信信息, 手动切换到通信录, 并在通信录内手动搜索发送方, 之后, 将通信录 内原有记录的发送方的通信信息编辑为新的通信信息并存储, 用户操作步骤较为繁琐。 发明内容
本发明实施例提供了一种消息处理的方法、装置及设备, 可以减少用户更新通信录时 的手动操作。
一种消息处理的方法, 所述方法包括:
接收发送方所发送的消息,所述消息包括用于指示所述发送方身份的发送方标识及通 根据所述发送方标识及所述通信信息更新本地存储的通信录。
一种用于消息处理的装置, 所述装置包括: 接收模块及更新模块; 所述接收模块, 用于接收发送方所发送的消息, 所述消息包括用于指示所述发送方身 份的发送方标识及通信信息;
所述更新模块, 用于根据所述发送方标识及所述通信信息更新本地存储的通信录。 一种设备, 所述设备包括:
触摸屏幕;
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
接收发送方所发送的消息,所述消息包括用于指示所述发送方身份的发送方标识及通 信信息;
根据所述发送方标识及所述通信信息更新本地存储的通信录。
本发明实施例的有益效果包括: 本发明实施例提供的消息处理的方法、 装置和设备, 通过接收到发送方发送的包括用于指示所述发送方身份的发送方标识及通信信息的消息 后, 根据所述发送方标识及所述通信信息更新本地存储的通信录, 可以减少用户在更新通 信录时的手动操作。 附图说明
图 1为本发明实施例提供的一种消息处理的方法流程示意图;
图 2为本发明实施例提供的另一种消息处理的方法流程示意图;
图 3为本发明实施例提供的一种提示框示意图;
图 4为本发明实施例提供的一种用于消息处理的装置的结构示意图;
图 5 为本发明实施例提供的一种用于消息处理的装置中更新模块的第一种结构示意 图;
图 6 为本发明实施例提供的一种用于消息处理的装置中的更新模块的第二种结构示 意图;
图 7 为本发明实施例提供的一种用于消息处理的装置的更新模块的第三种结构示意 图;
图 8 为本发明实施例提供的一种用于消息处理的装置的更新模块的第四种结构示意 图。 具体实施方式
下面结合附图, 对本发明实施例所提供的一种消息处理的方法、 装置及设备的具体实 施方式进行详细地说明。
如图 1所示, 本发明实施例提供了一种消息处理的方法, 该方法可以包括如下步骤:
S101、接收发送方所发送的消息, 所述消息可以包括用于指示所述发送方身份的发送 方标识及通信信息;
本发明实施例中, 所述消息可以为手机短消息、 即时通信 IM消息、 电子邮件或者社 会性网络服务 SNS消息; 相应地, 所述发送方标识可以为发送方的电话号码、 IM号码、 电子邮箱地址或者 SNS账号。
所述通信信息至少可以包括联系人、 电话号码、 通信用网络账号、 通信地址及个人简 介中的一种;
其中, 所述通信用网络账号可以为及时通信 (Instant Messenger, 简称: IM) 账号或 者社会性网络服务(Social Networking Services, 简称: SNS )账号等, 通信地址可以为居 住地址、 单位地址或者电子邮箱 (E-mail) 地址, 个人简介可以包括个人头像、 工作或者 学习单位、 职位或者兴趣爱好等。
S102: 根据所述发送方标识及所述通信信息更新本地存储的通信录;
本发明实施例中, 所述通信录是指用于存储用户通信信息的一种记事载体, 便于个人 或者企业在联系某个联系人可以通过查询通信录来获知所述联系人的通信信息。
作为一优选实现的实施例,根据所述发送方标识及所述通信信息更新本地存储的通信 录, 可以采用如下方式:
查询所述发送方标识及所述通信信息在本地存储的通信录内的存储状态,并根据查询 结果更新所述通信录, 具体实现时, 可以采用如下方式:
确定所述发送方标识是否存在于本地存储的通信录内。
当所接收到的发送方标识存在于所述通信录内时, 作为第一可选实现的实施例, 如果 所接收到的通信信息不包括有联系人,则将所述通信信息添加到所述发送方标识对应的联 系人的通信录条目内, 或者, 将所述发送方标识对应的联系人的通信录条目内的内容替换 为所述通信信息; 作为第二可选实现的实施例, 如果所接收到的通信信息包括有联系人且 所述联系人不存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录条 目, 并将所述通信信息存储于所新建的通信录条目内; 作为第三可选实现的实施例, 如果 所接收到的通信信息是以预定格式组建时, 则将所述通信信息直接导入到所述通信录内。 本发明实施例在具体实现时,所述将所述发送方标识对应的联系人的通信录条目内的 内容替换为所述通信信息, 可以包括:
确定所述通信信息内是否存在有与所述发送方标识对应的联系人的通信录内容类型 重复的内容,如存在同是电话号码的内容、同是通知地址的内容或者同是个人简介的内容, 当有类型重复的内容时, 确定所述类型重复的内容是否一致; 一致时, 则将所述通信 信息内与所述发送方标识对应的联系人的通信录内容中类型未重复的内容,添加到所述发 送方标识对应的联系人通信录内; 不一致时, 则可以将所述发送方标识对应的联系人的通 信录内容中与所述通信信息类型重复的内容,替换为所述通信信息内与所述发送方标识对 应的联系人的通信录内容类型重复的内容。
当所接收到的发送方标识未存在于所述通信录内时, 作为第一可选实现的实施例, 如 果所接收到的通信信息包括有联系人且所述联系人存在于所述通信录内,则将所述发送方 标识及所述通信信息添加到所述联系人对应的通信录条目内, 或者, 将所述联系人对应的 通信录条目内的内容替换为所述发送方标识及所述通信信息; 作为第二可选实现的实施 例, 当所述发送方标识未存在于所述通信录内时, 如果所接收到的通信信息包括有联系人 且所述联系人未存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录 条目, 并将所述发送方标识及所述通信信息存储于所新建的通信录条目内。
本发明实施例提供的所述消息处理的方法,通过接收到发送方发送的包括用于指示所 述发送方身份的发送方标识及通信信息的消息后,根据所述发送方标识及所述通信信息更 新本地存储的通信录, 可以减少用户在更新通信录时的手动操作。
如图 2所示, 本发明实施例还提供了一种消息处理的方法, 可以简化用户在更新通信 录过程中的操作, 本方法具体实施时, 可以将用于实现本方法的逻辑内置于操作系统中, 或以 APP (Application, 第三方应用程序) 的形式安装于终端设备中, 本实施例以用户通 过手机发送手机短消息的方式来通知对方某个联系人的通信信息的应用场景为例进行说 明, 所述方法可以包括如下步骤:
S201、 接收发送方所发送的手机短消息, 本发明实施例中, 所述手机短消息 (short message service, 简称 SMS ) 是指用户通过手机或其他电信终端直接发送或接收的消息, 可以包括发送方的电话号码及用户数据。
S202、 确定所接收到的用户数据中是否包含有通信信息; 当接收到的用户数据中包括有通信信息时, 执行 S203 ;
当接收到的用户数据中未包括有通信信息时,提示用户是否显示所接收到的手机短消 息, 并在接收到用户发出的显示指示时, 显示所接收到手机短消息, 结束操作。
本实施例中, 所述通信信息至少可以包括联系人、 电话号码、 通信用网络账号、 通信 地址及所属单位中的一种; 其中, 所述通信用网络账号可以为 IM (Instant Messenger, 及 时通信)账号或者 SNS ( Social Networking Services, 社会性网络服务)账号等, 通信地址 可以为居住地址、 单位地址或者电子邮箱 (E-mail) 地址。
5203、 确定所接收到的发送方的电话号码是否存在于本地存储的通信录内; 本发明实施例中, 所述通信录是指用于存储用户通信信息的一种记事载体, 便于个人 或者企业在联系某个联系人可以通过查询通信录来获知所述联系人的通信信息, 本实例 中, 所述通信录则可以为电话薄。
作为一可选实现的实例, 当所接收到的发送方的电话号码存在于所述通信录内, 如果 所述通信信息是以预定格式组建时, 则将所述通信信息直接导入到所述通信录内, 操作结 束; 作为另一可选实现的实例, 当所接收到的发送方的电话号码存在于所述通信录内, 还 可以执行 S204;
当所接收到的发送方的电话号码未存在于所述通信录内, 执行 208。
5204、提取所接收到的用户数据中的通信信息, 并确定所述通信信息中是否包含有联 系人;
当所述通信信息中不包含有联系人时,判定所接收到的手机短消息为发送方通知接收 方发送方更换通信信息的消息, 并执行 S205;
当所述通信信息包含有联系人时, 执行 S206。
5205、 将所述通信信息添加到所述发送方的电话号码对应的联系人的通信录条目内, 或者, 将所述发送方的电话号码对应的联系人的通信录条目内的内容替换为所述通信信 息, 操作结束。
本发明实施例在具体实现时,所述将所述发送方的电话号码对应的联系人的通信录条 目内的内容替换为所述通信信息, 可以包括:
确定所述通信信息内是否存在有与所述发送方的电话号码对应的联系人的通信录内 容类型重复的内容, 如存在同是电话号码的内容、 同是通知地址的内容或者同是个人简介 的内容, 等等;
当有类型重复的内容时, 确定所述类型重复的内容是否一致; 一致时, 则将所述通信 信息内与所述发送方的电话号码对应的联系人的通信录内容中类型未重复的内容,添加到 所述发送方的电话号码对应的联系人通信录内; 不一致时, 则可以将所述发送方的电话号 码对应的联系人的通信录内容中与所述通信信息类型重复的内容,替换为所述通信信息内 与所述发送方的电话号码对应的联系人的通信录内容类型重复的内容。
S206、 确定所述联系人是否存在于本地存储的通信录内;
当所述联系人不存在于所述通信录内时,则判定所接收到手机短消息为发送方通知接 收方第三方通信信息的消息, 并执行 S207。
S207、在本地存储的通信录内新建一所述联系人对应的通信录条目, 并将所述通信信 息存储于所新建的通信录条目内, 操作结束。
S208、提取所接收到的用户数据中的通信信息, 并确定所述通信信息中是否包含有联 系人;
当所述通信信息包含有联系人时, 执行 S209。
5209、 确定所述联系人是否存在于本地存储的通信录内;
当所述联系人存在于所述通信录内时,则判定所接收到手机短消息为发送方通知接收 方发送方更换通信信息的消息, 并执行 S210;
当所述联系人未存在于所述通信录内时,则判定所接收到的手机短消息为一新联系人 所发送的告知接收方自身通信信息的消息, 并执行 S211。
5210、将所述发送方的电话号码及所述通信信息添加到所述联系人对应的通信录条目 内, 或者, 将所述联系人对应的通信录条目内的内容替换为所述发送方的电话号码及所述 通信信息, 操作结束。
5211、在所述通信录内新建一所述联系人对应的通信录条目, 并将所述发送方的电话 号码及所述通信信息存储于所新建的通信录条目内, 操作结束。
本发明实施例提供的所述消息处理的方法,通过接收到发送方发送的包括发送方号码 及通信信息的手机短消息后, 根据所述发送方号码及所述通信信息更新本地存储的通信 录, 可以减少用户在更新通信录时的手动操作。
现结合具体的应用场景来详细说明上述消息处理的方法, 具体描述可以如下: 应用场景一、 发送方为接收方已存储的联系人, 当发送方更换电话号码时, 发送方可 以以接收方已保存的旧的电话号码如 " 135******** "来发送手机短消息, 通知接收方所 述发送方变更了电话号码, 例如, 所发送手机短消息中的用户数据可以为 "这是我新的电 话号码, 134********, 麻烦记一下, 老号码弃用" 。 接收方接收发送方所发送的手机短消息, 解析所接收到的手机短消息中的用户数据 "这是我新的电话号码, 134********, 麻烦记一下, 老号码弃用" , 得到该用户数据中 包含的通信信息为电话号码 " 134******** " ; 之后, 查询本地存储的通信录, 确定该通 信录内是否存储有发送该手机短消息的发送方号码, 如 " 135******** "对应的联系人; 当通信录内存储有发送方号码 " 135******** "对应的联系人 "张三"时, 则可以判定该 手机短消息为一电话号码更换手机短消息, 将所获取的通信信息 " 134******** "添加到 通信录内 "张三 "对应的通信录条目内; 或者, 将通信录内联系人 "张三"对应的电话 号码 " 135******** "替换为所获取的通信信息 " 134******** " 。
本发明实施例在具体实现时, 在接收方用户根据所接收到的手机短消息更新通信录 时, 接收方用户可以通过点击或者触摸(接收方为触摸屏设备)所显示的手机短消息内的 通信信息, 如电话号码 " 134******** " 时, 向接收方用户弹出选择提示框, 该选择提示 框给出选择标签, 以便接收方用户可以根据所给出的选择标签, 选择将获取的通信信息添 加到所述发送方号码对应的联系人的通信录条目内,或者将所述发送方号码对应的联系人 的通信录条目内的内容替换为所获取的通信信息; 当接收方用户选择点击或者触摸 "将所 获取的通信信息添加到所述发送方号码对应的联系人的通信录条目内 "标签项时, 则将所 获取的通信信息添加到所述发送方号码对应的联系人的通信录条目内; 当用户选择点击或 者触摸 "将所述发送方号码对应的联系人的通信录条目内的内容替换为所获取的通信信 息"标签项时, 则将所述发送方号码对应的联系人的通信录条目内的内容替换为所获取的 通信信息。
本实施例中, 所述选择提示框可以如图 3所示, 图 3中的第 6项标签为 "添加为张三 的新号码", 第 7项标签为 "替换为张三的新号码", 例如, 当用户触摸选择第 6项标签 时, 将所获取的通信信息 " 134******** "添加到通信录内 "张三 "对应的通信录条目内; 当用户触摸选择第 7项标签时,将通信录内联系人"张三"对应的电话号码" 135******** " 替换为所获取的通信信息 " 134******** " 。 由此可以知道, 用户在更新通信录过程中仅 需要做一个选择的动作, 省去了用户搜索联系人及编辑联系人的操作, 极大的简化了用户 的操作。
第二种实现场景, 发送方为接收方已存储的联系人, 当发送方更换电话号码时, 发送 方以接收方未保存的变更的新电话号码如 " 134******** "来发送手机短消息, 通知接收 方所述发送方变更了电话号码, 例如, 所发送的手机短消息的内容可以为 "我是张三, 这 是我的新号码, 请惠存" 。 接收方接收发送方所发送的手机短消息, 解析所接收到的手机短消息中的用户数据 "我是张三,这是我的新号码,请惠存",得到该用户数据中包含的通信信息为联系人"张 三"; 之后, 查询本地存储的通信录, 确定该通信录内是否存储有发送该手机短消息的发 送方号码 " 134********" , 当通信录内未存在所述发送方号码时, 确定该通信录内是否 存在联系人 "张三", 当通信录内存储有联系人 "张三"时, 则可以判定该手机短消息为 一电话更换手机短消息; 之后, 将获取的发送方号码 "134********"添加到通信录内 "张 三"对应的通信录条目下, 或者通信录内 "张三"原有对应的电话号码 "135********" 替换为所获取的电话号码 "134********" 。
第三种应用场景, 作为一可选的实现实例, 发送方为接收方已保存的联系人, 该发送 方以手机短消息的方式通知接收方第三方的通信信息, 例如, 发送方以接收方已保存的电 话号码如 "135********"来发送手机短消息, 通知第三方如 "李四" 的通信信息, 所发 送手机短消息中的用户数据可以是 "这是李四的电话号码, 150********" 。
接收方接收发送方发送的手机短消息, 解析所接收到的手机短消息中的用户数据 "这 是李四的电话号码, 150********" , 得到用户数据中包含的通信信息 "李四" 及 "150********" . 之后, 查询本地存储的通信录, 确定该通信录内是否存储有发送该手 机短消息的发送方号码 "135********"对应的联系人; 当通信录内存储有发送方号码 "135********"对应的联系人时, 确定通信录内是否存储有 "李四"及 "150********", 当通信录内未存储有 "李四"及 "150********"时, 则可以判定该手机短消息为发送方 通知第三方通信信息的手机短消息, 则在通信录内新建一以 "李四"命名的通信录条目, 并将 "150********"记录到该新建的通信录条目。
作为另一可选实现的实例, 针对第三应用场景的情况, 发送方在发送手机短消息时, 将 "李四"及 "150********"组建成一与接收方预先商定的格式的消息, 当接收方接收 到该手机短消息, 且判定该手机短消息为发送方通知第三方通信信息的手机短消息时, 就 可以解析该格式的 "李四"及 "150********", 并将 "李四"及 "150********"直接导 入到通信录内。
第四种应用场景, 作为一可选实现的实例, 发送方为接收方未存储的联系人, 该发送 方可以从第三方获知接收方的电话号码后, 以手机短消息的方式通知接收方自己的通信信 息; 例如, 发送方以电话号码 " 152********"来发送手机短消息, 该手机短消息的内容 可以为 "我是 daisy, 这个是我的号码, 请惠存, 随时联系" 。
接收方接收到发送方发送的手机短消息后,解析所接收到的手机短消息中的用户数据 "我是 daisy, 这个是我的号码, 请惠存, 随时联系" , 得到用户数据中包含的通信信息 "daisy"; 之后, 查询本地存储的通信录, 确定该通信录内是否存储有发送该手机短消息 的发送方号码 " 152******** " 对应的联系人; 当通信录内未存储有发送方号码 " 152******** "对应的联系人时, 确定通信录内是否存储有 "daisy"对应的通信录条目, 当通信录内未存储有 "daisy"对应的通信录条目时, 则可以判定该手机短消息为新联系人 通信信息的通知手机短消息, 则在通信录内新建一以 " daisy"命名的通信录条目, 并将 " 152******** "记录到该新建的通信录条目。
以上的应用场景仅以手机短消息方式通知的通信信息中的电话号码为例进行了说明, 当以手机短消息方式通知的通信信息为通信用网络账号、通信地址及个人简介中的一种或 多种时, 采用的方式与此类似, 此处就不再赘述。
上述技术方案的实现还可以适用到当用户是以 IM工具、电子邮箱或者 SNS工具来发 送 IM消息、 电子邮件或者 SNS消息来通知对方联系人的通信信息的应用场景, 具体实现 方式与上述用户以手机来发送手机短消息来通知联系人的通信信息的方式相类似,不同的 是, 将上述技术方案中出现的手机短消息替换为 IM消息、 电子邮件或者 SNS消息, 发送 方的电话号码替换为发送方的电话号码、 IM号码、 电子邮箱地址或者 SNS账号, 此处就 不再赘述。
本发明实施例提供的所述消息处理的方法,通过接收到发送方发送的包括指示所述发 送方身份的发送方标识及通信信息的消息后,根据所述发送方标识及所述通信信息更新本 地存储的通信录, 可以减少用户在更新通信录时的手动操作。
如图 4所示, 本实施例还提供了一种用于消息处理的装置, 该装置可以包括: 接收模 块 301及更新模块 302;
接收模块 301, 用于接收发送方所发送的消息, 所述消息包括指示所述发送方身份的 发送方标识及通信信息;
本实施例中, 所述消息可以为手机短消息、 即时通信 IM消息、 电子邮件或者社会性 网络服务 SNS消息; 相应地, 所述发送方标识可以为发送方的电话号码、 IM号码、 电子 邮箱地址或者 SNS账号。
更新模块 302, 用于根据所述发送方标识及所述通信信息更新本地存储的通信录。 本实施例中, 所述通信信息至少可以包括联系人、 电话号码、 通信用网络账号、 通信 地址及联系人简介中的一种。
例如, 参见图 5, 更新模块 302, 可以用于, 查询所述发送方标识及所述通信信息在 本地存储的通信录内的存储状态, 并根据查询结果更新所述通信录, 包括: 确定单元 3021,用于确定接收模块 301接收到的发送方标识是否存在于本地存储的通 信录内;
第一更新处理单元 3022, 用于当确定单元 3021确定所述发送方标识存在于所述通信 录内时, 如果接收模块 301接收到的通信信息不包括有联系人, 则将所述通信信息添加到 所述发送方标识对应的联系人的通信录条目内, 或者, 将所述发送方标识对应的联系人的 通信录条目内的内容替换为所述通信信息;
第二更新处理单元 3023, 用于当确定单元 3021确定所述发送方标识未存在于所述通 信录内时,如果接收模块 301接收到的通信信息包括有联系人且所述联系人存在于所述通 信录内, 则将所述发送方标识及所述通信信息添加到所述联系人对应的通信录条目内, 或 者, 将所述联系人对应的通信录条目内的内容替换为所述发送方标识及所述通信信息。
例如, 如图 6所示, 更新模块 302还可以包括:
第三更新处理单元 3024, 用于当确定单元 3021确定所述发送方标识存在于所述通信 录内时,如果接收模块 301接收到的通信信息包括有联系人且所述联系人不存在于所述通 信录内, 则在所述通信录内新建一所述联系人对应的通信录条目, 并将所述通信信息存储 于所新建的通信录条目内。
例如, 如图 7所示, 如图 6所示的更新模块 302还可以包括:
第四更新处理单元 3025, 用于当确定单元 3021确定所述发送方标识存在于所述通信 录内时, 如果接收模块 301接收到的通信信息是以预定格式组建时, 则将所述通信信息直 接导入到所述通信录内。
本实施例中,所述预定格式可以是接收方和发送方预先协商的彼此可以识别的消息格 式。
例如, 参见图 8, 如图 6所示的更新模块 302还可以包括:
第五更新处理单元 3025, 用于当确定单元 3031确定所述发送方标识未存在于所述通 信录内时,如果接收模块 301接收到的通信信息包括有联系人且所述联系人未存在于所述 通信录内, 则在所述通信录内新建一所述联系人对应的通信录条目, 并将所述发送方标识 及所述通信信息存储于所新建的通信录条目内。
本发明实施例提供的用于消息处理的装置,通过接收到发送方发送的包括指示所述发 送方身份的发送方标识及通信信息的消息后,根据所述发送方标识及所述通信信息更新本 地存储的通信录, 可以减少用户在更新通信录时的手动操作。 另外, 本实施例还提供了一种设备, 该设备可以包括:
触摸屏幕;
一个或多个处理器;
存储器; 和
一个或多个模块 (programs) , 该一个或多个模块可以存储于所述存储器中并被配置 成由所述一个或多个处理器执行, 其中, 所述一个或多个模块可以具有如下功能:
接收发送方所发送的消息,所述消息包括指示所述发送方身份的发送方标识及通信信 息;
根据所接收到的发送方标识及通信信息更新本地存储的通信录。
本实施例中, 所述消息可以为手机短消息、 即时通信 IM消息、 电子邮件或者社会性 网络服务 SNS消息; 相应地, 所述发送方标识可以为发送方的电话号码、 IM号码、 电子 邮箱地址或者 SNS账号。
所述通信信息至少可以包括联系人、 电话号码、 通信用网络账号、 通信地址及联系人 简介中的一种。
例如, 所述根据所接收到的发送方标识及通信信息更新本地存储的通信录, 可以采用 如下方式: 查询所述发送方标识及所述通信信息在本地存储的通信录内的存储状态, 并根 据查询结果更新所述通信录, 可以包括:
确定所接收到的发送方标识是否存在于本地存储的通信录内;
当所接收到的发送方标识存在于所述通信录内时, 作为第一可选实现的实施例, 如果 所接收到的通信信息不包括有联系人,则将所述通信信息添加到所述发送方标识对应的联 系人的通信录条目内, 或者, 将所述发送方标识对应的联系人的通信录条目内的内容替换 为所述通信信息; 作为第二可选实现的实施例, 如果所接收到的通信信息包括有联系人且 所述联系人不存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录条 目, 并将所述通信信息存储于所新建的通信录条目内; 作为第三可选实现的实施例, 如果 所接收到的通信信息是以预定格式组建时, 则将所述通信信息直接导入到所述通信录内。
当所接收到的发送方标识未存在于所述通信录内时, 作为第一可选实现的实施例, 如 果所接收到的通信信息包括有联系人且所述联系人存在于所述通信录内,则将所述发送方 标识及所述通信信息添加到所述联系人对应的通信录条目内, 或者, 将所述联系人对应的 通信录条目内的内容替换为所述发送方标识及所述通信信息; 作为第二可选实现的实施 例, 当所述发送方标识未存在于所述通信录内时, 如果所接收到的通信信息包括有联系人 且所述联系人未存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录 条目, 并将所述发送方标识及所述通信信息存储于所新建的通信录条目内。
本发明实施例提供的用于消息处理的设备,通过接收到发送方发送的包括用于指示所 述发送方身份的发送方标识及通信信息的消息后,根据所述发送方标识及所述通信信息更 新本地存储的通信录, 可以减少用户在更新通信录时的手动操作。
另外, 本实施例还提供了一种非易失性可读存储介质, 该存储介质中存储有一个或多 个模块 (programs) , 该一个或多个模块被应用在具有触摸屏幕的设备时, 可以使得该具 有触摸屏幕的设备执行如下步骤的指令 (instructions) :
接收发送方所发送的消息,所述消息包括用于指示所述发送方身份的发送方标识及通 信信息;
根据所接收到的发送方标识及通信信息更新本地存储的通信录。
本实施例中, 所述消息可以为手机短消息、 即时通信 IM消息、 电子邮件或者社会性 网络服务 SNS消息; 相应地, 所述发送方标识可以为发送方的电话号码、 IM号码、 电子 邮箱地址或者 SNS账号。
所述通信信息至少可以包括联系人、 电话号码、 通信用网络账号、 通信地址及联系人 简介中的一种。
例如, 所述根据所接收到的发送方标识及通信信息更新本地存储的通信录, 可以采用 如下方式:
确定所接收到的发送方标识是否存在于本地存储的通信录内;
当所接收到的发送方标识存在于所述通信录内时, 作为第一可选实现的实施例, 如果 所接收到的通信信息不包括有联系人,则将所述通信信息添加到所述发送方标识对应的联 系人的通信录条目内, 或者, 将所述发送方标识对应的联系人的通信录条目内的内容替换 为所述通信信息; 作为第二可选实现的实施例, 如果所接收到的通信信息包括有联系人且 所述联系人不存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录条 目, 并将所述通信信息存储于所新建的通信录条目内; 作为第三可选实现的实施例, 如果 所接收到的通信信息是以预定格式组建时, 则将所述通信信息直接导入到所述通信录内。
当所接收到的发送方标识未存在于所述通信录内时, 作为第一可选实现的实施例, 如 果所接收到的通信信息包括有联系人且所述联系人存在于所述通信录内,则将所述发送方 标识及所述通信信息添加到所述联系人对应的通信录条目内, 或者, 将所述联系人对应的 通信录条目内的内容替换为所述发送方标识及所述通信信息; 作为第二可选实现的实施 例, 当所述发送方标识未存在于所述通信录内时, 如果所接收到的通信信息包括有联系人 且所述联系人未存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录 条目, 并将所述发送方标识及所述通信信息存储于所新建的通信录条目内。
本发明实施例提供的一种非易失性可读存储介质,通过接收到发送方发送的包括用于 指示所述发送方身份的发送方标识及通信信息的消息后,根据所述发送方标识及所述通信 信息更新本地存储的通信录, 可以减少用户在更新通信录时的手动操作。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明实施例可以 通过硬件实现, 也可以借助软件加必要的通用硬件平台的方式来实现。 基于这样的理解, 本发明实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非 易失性存储介质 (可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本公开各个实施例所述 的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模块或流程并 不一定是实施本公开所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于 实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个装置中。 上述实 施例的模块可以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和 范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内, 则本公开也意图包含这些改动和变型在内。

Claims

权利要求
1、 一种消息处理的方法, 所述方法包括:
接收发送方所发送的消息,所述消息包括用于指示所述发送方身份的发送方标识及通 根据所述发送方标识及所述通信信息更新本地存储的通信录。
2、 根据权利要求 1所述的方法, 其中所述消息为手机短消息、 即时通信 IM消息、 电子邮件或者社会性网络服务 SNS消息;
相应地, 所述发送方标识为发送方的电话号码、 IM号码、 电子邮箱地址或者 SNS账 号。
3、 根据权利要求 1所述的方法, 其中所述通信信息至少包括联系人、 电话号码、 通 信用网络账号、 通信地址及联系人简介中的一种。 4根据权利要求 1所述的方法,其中所述根据所述发送方标识及所述通信信息更新本 地存储的通信录, 采用如下方式:
查询所述发送方标识及所述通信信息在本地存储的通信录内的存储状态,并根据查询 结果更新所述通信录。
5、 根据权利要求 4所述的方法, 其中所述查询所述发送方标识及所述通信信息在本 地存储的通信录内的存储状态, 并根据查询结果更新所述通信录, 采用如下方式:
确定所述发送方标识是否存在于本地存储的通信录内;
当所述发送方标识存在于所述通信录内时,如果所述通信信息不包括有联系人,则将 所述通信信息添加到所述发送方标识对应的联系人的通信录条目内,或者,将所述发送方 标识对应的联系人的通信录条目内的内容替换为所述通信信息;
当所述发送方标识未存在于所述通信录内时,如果所述通信信息包括有联系人且所述 联系人存在于所述通信录内,则将所述发送方标识及所述通信信息添加到所述联系人对应 的通信录条目内,或者,将所述联系人对应的通信录条目内的内容替换为所述发送方标识 及所述通信信息。
6、 根据权利要求 5所述的方法, 其中所述方法还包括:
当所述发送方标识存在于所述通信录内时,如果所述通信信息包括有联系人且所述联 系人不存在于所述通信录内,则在所述通信录内新建一所述联系人对应的通信录条目,并 将所述通信信息存储于所新建的通信录条目内。
7、 根据权利要求 5所述的方法, 其中所述方法还包括:
当所述发送方标识存在于所述通信录内时, 如果所述通信信息是以预定格式组建时, 则将所述通信信息直接导入到所述通信录内。
8、 根据权利要求 5所述的方法, 其中所述方法还包括:
当所述发送方标识未存在于所述通信录内时,如果所述通信信息包括有联系人且所述 联系人未存在于所述通信录内, 则在所述通信录内新建一所述联系人对应的通信录条目, 并将所述发送方标识及所述通信信息存储于所新建的通信录条目内。
9、 一种用于消息处理的装置, 所述装置包括: 接收模块及更新模块;
所述接收模块,用于接收发送方所发送的消息,所述消息包括指示所述发送方身份的 发送方标识及通信信息;
所述更新模块, 用于根据所述发送方标识及所述通信信息更新本地存储的通信录。
10、根据权利要求 9所述的装置, 其中所述更新模块, 用于查询所述发送方标识及所 述通信信息在本地存储的通信录内的存储状态, 并根据查询结果更新所述通信录。
11、 根据权利要求 10所述的装置, 其中所述更新模块包括:
确定单元,用于确定所述接收模块接收到的发送方标识是否存在于本地存储的通信录 内;
第一更新处理单元, 用于当所述确定单元确定所述发送方标识存在于所述通信录内 时,如果所述通信信息不包括有联系人,则将所述通信信息添加到所述发送方标识对应的 联系人的通信录条目内,或者,将所述发送方标识对应的联系人的通信录条目内的内容替 换为所述通信信息;
第二更新处理单元,用于当所述确定单元确定所述发送方标识未存在于所述通信录内 时,如果所述通信信息包括有联系人且所述联系人存在于所述通信录内,则将所述发送方 标识及所述通信信息添加到所述联系人对应的通信录条目内,或者,将所述联系人对应的 通信录条目内的内容替换为所述发送方标识及所述通信信息。
12、 根据权利要求 10所述的装置, 其中所述更新模块还包括:
第三更新处理单元, 用于当所述确定单元确定所述发送方标识存在于所述通信录内 时,如果所述通信信息包括有联系人且所述联系人不存在于所述通信录内,则在所述通信 录内新建一所述联系人对应的通信录条目,并将所述通信信息存储于所新建的通信录条目 内。
13、 根据权利要求 10所述的装置, 其中所述更新模块还包括:
第四更新处理单元, 用于当所述确定模块确定所述发送方标识存在于所述通信录内 时,如果所述通信信息是以预定格式组建时,则将所述通信信息直接导入到所述通信录内。
14、 根据权利要求 10所述的装置, 其中所述更新模块还包括:
第五更新处理单元,用于当所述确定单元确定所述发送方标识未存在于所述通信录内 时,如果所述通信信息包括有联系人且所述联系人未存在于所述通信录内,则在所述通信 录内新建一所述联系人对应的通信录条目,并将所述发送方标识及所述通信信息存储于所 新建的通信录条目内。
15、 一种设备, 所述设备包括:
触摸屏幕;
一个或多个处理器;
存储器; 和
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或 多个处理器执行, 其中, 所述一个或多个模块具有如下功能:
接收发送方所发送的消息,所述消息包括用于指示所述发送方身份的发送方标识及通 信信息;
根据所述发送方标识及所述通信信息更新本地存储的通信录。
PCT/CN2013/079295 2012-09-25 2013-07-12 一种消息处理的方法、装置及设备 WO2014048162A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/132,599 US9736090B2 (en) 2012-09-25 2013-12-18 Method and apparatus for processing message

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210360867.9 2012-09-25
CN201210360867.9A CN102958020B (zh) 2012-09-25 2012-09-25 一种消息处理的方法、装置及设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/132,599 Continuation US9736090B2 (en) 2012-09-25 2013-12-18 Method and apparatus for processing message

Publications (1)

Publication Number Publication Date
WO2014048162A1 true WO2014048162A1 (zh) 2014-04-03

Family

ID=47766140

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079295 WO2014048162A1 (zh) 2012-09-25 2013-07-12 一种消息处理的方法、装置及设备

Country Status (3)

Country Link
US (1) US9736090B2 (zh)
CN (1) CN102958020B (zh)
WO (1) WO2014048162A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102958020B (zh) * 2012-09-25 2016-05-11 小米科技有限责任公司 一种消息处理的方法、装置及设备
CN104702760A (zh) * 2013-12-10 2015-06-10 腾讯科技(深圳)有限公司 通讯号码的更新方法及装置
CN104869227A (zh) * 2015-04-07 2015-08-26 中科创达软件股份有限公司 一种名片数据发送方法及装置
CN107493366B (zh) * 2017-09-11 2020-09-11 北京小米移动软件有限公司 通讯录信息更新方法、装置及存储介质
CN107682517B (zh) * 2017-09-27 2019-12-24 咪咕动漫有限公司 一种通讯录处理方法及装置、存储介质
US10708383B2 (en) * 2017-10-25 2020-07-07 Facebook, Inc. Identifying profile information of senders of direct digital messages

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060148496A1 (en) * 2004-12-30 2006-07-06 Inventec Appliances Corp. Method for administrating SMS message of mobile phone
CN101873557A (zh) * 2010-06-25 2010-10-27 华为终端有限公司 提示终端用户保存联系人的方法和用户终端
CN102421073A (zh) * 2010-09-28 2012-04-18 中国移动通信集团公司 一种短信的处理方法和设备
CN102958020A (zh) * 2012-09-25 2013-03-06 北京小米科技有限责任公司 一种消息处理的方法、装置及设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162514B2 (en) * 2001-10-02 2007-01-09 Canon Kabushiki Kaisha Communication apparatus, communication method, communication system, program, and storage medium
US20080090597A1 (en) * 2006-10-17 2008-04-17 Feyzi Celik Short message formatting for information exchange
US20090092233A1 (en) * 2007-10-04 2009-04-09 Henri Fouotsop Meli Method of and System for Updating Mobile Telephone Contact List Entries
US8334996B2 (en) * 2007-12-13 2012-12-18 Xerox Corporation Automated e-mail address book update system and method for document output devices
CN101335954A (zh) 2008-08-05 2008-12-31 王春政 手机电话号码自动更改装置与方法
KR101735339B1 (ko) * 2010-12-16 2017-05-15 삼성전자 주식회사 휴대단말기의 가입자 정보 등록방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060148496A1 (en) * 2004-12-30 2006-07-06 Inventec Appliances Corp. Method for administrating SMS message of mobile phone
CN101873557A (zh) * 2010-06-25 2010-10-27 华为终端有限公司 提示终端用户保存联系人的方法和用户终端
CN102421073A (zh) * 2010-09-28 2012-04-18 中国移动通信集团公司 一种短信的处理方法和设备
CN102958020A (zh) * 2012-09-25 2013-03-06 北京小米科技有限责任公司 一种消息处理的方法、装置及设备

Also Published As

Publication number Publication date
US9736090B2 (en) 2017-08-15
CN102958020B (zh) 2016-05-11
US20140108579A1 (en) 2014-04-17
CN102958020A (zh) 2013-03-06

Similar Documents

Publication Publication Date Title
WO2014048162A1 (zh) 一种消息处理的方法、装置及设备
WO2013135133A1 (zh) 一种插件管理控制方法及装置、计算机存储介质
US20120191790A1 (en) Web-Based Push Messaging Methods and Systems
WO2013097335A1 (zh) 社交网络用户信息关联方法及装置
AU2014392005B2 (en) Communication establishment method, device, and system
CN105027596A (zh) 在通信会话期间在客户端设备之间交换联系简档
EP2891296A1 (en) Systems and methods for sharing data among multiple end user devices
WO2012082948A1 (en) Methods and apparatus for managing messages
TW201301919A (zh) 手機及其簡訊處理方法
CN102769640B (zh) 用户信息的更新方法、服务器以及系统
CN103747132A (zh) 显示消息的方法及终端
US11178084B2 (en) Systems and methods for including enriched calling information in rich communications services (RCS) messaging
TW201325195A (zh) 手機及其處理簡訊的方法
WO2012059047A1 (zh) 一种快速添加收件人的方法、装置及移动终端
WO2011017672A1 (en) Method and apparatus for managing contacts
GB2453260A (en) Processing a message by using the virtual number of a SSMN terminal
WO2012152028A1 (zh) 一种基于终端的融合消息业务实现方法及装置
CN102572105A (zh) 一种处理联系人信息的方法及终端
US20140324994A1 (en) Method and device for transmitting and forwarding a message
US11704629B2 (en) Methods and devices for processing information card
WO2013178104A1 (zh) 一种移动终端中通过短信改变联系人状态的方法和装置
US8958775B2 (en) Aggregating voicemail messages from multiple sources
WO2011110113A1 (zh) 一种显示短信图标的方法、服务器和终端
WO2014023182A1 (zh) 一种处理消息业务的方法和终端
WO2011153772A1 (zh) 一种获取多个即时信息的方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13840774

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13840774

Country of ref document: EP

Kind code of ref document: A1