Method for realizing cross-domain heterogeneous instant messaging and electronic equipment
Through virtual mailbox accounts and intercommunication mail accounts, instant messaging system is judged, and the simple mail transmission protocol is used to convert instant messages into email format, solving the commonality and security of message intercommunication between different instant messaging systems, realizing the inter-system Efficient messaging.
Patent Information
- Application Number
- CN202411756781.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2024-12-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Message interoperability between different instant communication systems is restricted, and the existing solutions are poor in versatility and security.
By obtaining the virtual mailbox account of the receiving object of the instant message and the sending object, we determine whether it is located in a different instant communication system, and obtain the intercommunication email account to achieve message interoperability, and convert the instant message into an email format for transmission using the simple mail transmission protocol.
It realizes message interoperability between different instant communication systems, has high universality and security, is simple to implement, and has high practical application value.
Smart Images

Figure CN119232696A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method and electronic device for implementing cross-domain heterogeneous instant messaging. Background Art
[0002] In today's information society, instant messaging has become one of the important means of daily communication for people. However, due to the differences and mutual closure between different instant messaging systems, cross-domain communication between users is greatly restricted. In order to achieve message intercommunication between different instant messaging systems, there are currently some technical solutions, such as XMPP protocol, MQTT protocol, REST API, etc., but these solutions all have some problems, such as lack of universality and security.
[0003] Currently, no effective solution has been proposed to the above problems. Summary of the invention
[0004] The embodiments of the present application provide a method and electronic device for implementing cross-domain heterogeneous instant messaging, which at least solve the problem that message intercommunication between different instant messaging systems is greatly restricted and the existing message intercommunication solutions between different instant messaging systems have poor universality and security.
[0005] According to one aspect of an embodiment of the present application, a method for realizing cross-domain heterogeneous instant messaging is provided, including: respectively obtaining virtual mailbox accounts of a recipient and a sender of an instant message, and judging whether the recipient and the sender are located in different instant messaging systems according to the virtual mailbox accounts; if the judgment result is yes, respectively obtaining the intercommunication email accounts of the instant messaging systems to which the recipient and the sender belong; judging whether the instant messaging system to which the recipient belongs and the instant messaging system to which the sender belongs can realize message intercommunication according to the intercommunication email accounts; if the judgment result is yes, sending the instant message to the instant messaging system to which the recipient belongs based on the simple mail transfer protocol.
[0006] Optionally, the virtual mailbox account is used to identify the identity of the corresponding object and to identify the instant messaging system to which the corresponding object belongs, wherein the virtual mailbox account of the receiving object is configured in the virtual address book of the instant messaging system to which the sending object belongs; the virtual mailbox account of the sending object is configured in the virtual address book of the instant messaging system to which the receiving object belongs.
[0007] Optionally, judging whether the receiving object and the sending object are located in different instant messaging systems according to the virtual mailbox accounts includes: detecting whether the fields used to identify the instant messaging systems to which the corresponding objects belong in the virtual mailbox accounts of the receiving object and the sending object are the same; if the fields used to identify the instant messaging systems to which the corresponding objects belong in the virtual mailbox accounts of the receiving object and the sending object are different, determining that the receiving object and the sending object are located in different instant messaging systems.
[0008] Optionally, judging whether the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate messages based on the intercommunication email accounts includes: detecting whether a correspondence between the intercommunication email account of the instant messaging system to which the receiving object belongs and the intercommunication email account of the instant messaging system to which the sending object belongs has been configured in the email server; if the correspondence has been configured in the email server, determining that the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate messages.
[0009] Optionally, sending the instant message to the instant messaging system to which the recipient belongs based on the Simple Mail Transfer Protocol includes: encapsulating the instant message into an email; configuring the Simple Mail Transfer Protocol client according to the address, port number and identity authentication information of the mail server; and sending the email from the instant messaging system to which the sending object belongs to the instant messaging system to which the receiving object belongs based on the Simple Mail Transfer Protocol.
[0010] Optionally, encapsulating the instant message into an email includes: creating an email object using the MIME format; encrypting the instant message, the information of the sending object, and the information of the receiving object, and adding them to the email body of the email object; determining the instant messaging system to which the receiving object belongs based on the virtual mailbox account of the receiving object, and adding the intercommunication email account of the instant messaging system to which the receiving object belongs as the receiving account to the email header of the email object; adding the intercommunication email account of the instant messaging system to which the sending object belongs as the sending account to the email header of the email object; adding identification information to the email header, wherein the identification information is used to identify the email as a message intercommunication email; and setting the email title according to a pre-set name.
[0011] According to another aspect of an embodiment of the present application, another method for implementing cross-domain heterogeneous instant communication is provided, including: connecting to a mail server and downloading emails from the mail server, wherein the emails are sent to the mail server using the above method; parsing the emails, obtaining information about the receiving object from the email header, and obtaining instant messages from the email body; and forwarding the instant messages to the client corresponding to the receiving object.
[0012] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including: a processor, and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0013] According to another aspect of the embodiments of the present application, a non-transitory machine-readable medium storing computer instructions is also provided, where the computer instructions are used to enable a computer to execute the above method.
[0014] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, which is used to enable the computer to execute the above method when the computer program is executed by a processor of the computer.
[0015] Beneficial effects of the embodiments of the present application: In the embodiment of the present application, the virtual mailbox accounts of the recipient and the sender of the instant message are respectively obtained, and it is determined whether the recipient and the sender are located in different instant messaging systems according to the virtual mailbox accounts; if the judgment result is yes, the intercommunication email accounts of the instant messaging systems to which the recipient and the sender belong are respectively obtained; according to the intercommunication email accounts, it is determined whether the instant messaging system to which the recipient belongs and the instant messaging system to which the sender belongs can realize message intercommunication; if the judgment result is yes, the instant message is sent to the instant messaging system to which the recipient belongs based on the simple mail transfer protocol, by converting the instant messaging message into an email format and transmitting it through the email protocol, thereby realizing the technical effect of message intercommunication between various instant messaging systems, and the present scheme has the advantages of versatility, security, and simple implementation, and has high practical application value.
[0016] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.
[0018] Figure 1 is a flow chart of a method for implementing cross-domain heterogeneous instant messaging according to an embodiment of the present application; Figure 2 is a flowchart of another method for implementing cross-domain heterogeneous instant messaging according to an embodiment of the present application; Figure 3Schematic diagram of the structure of the electronic device of this embodiment. DETAILED DESCRIPTION
[0019] Embodiments of the present embodiment will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present embodiment are shown in the accompanying drawings, it should be understood that the present embodiment can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, which are instead provided for a more thorough and complete understanding of the present embodiment. It should be understood that the drawings and embodiments of the present embodiment are only for exemplary purposes and are not intended to limit the scope of protection of the present embodiment.
[0020] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows: EML file: A standard email format that contains information such as email header, body, and attachments.
[0021] SMTP: Short for Simple Mail Transfer Protocol, a protocol for sending emails.
[0022] IMAP / POP3: Abbreviation for Internet Message Access Protocol / Post Office Protocolversion 3, two protocols used to receive emails from a mail server.
[0023] MIME: Short for Multipurpose Internet Mail Extensions, an Internet standard used to extend the format of email.
[0024] In related technologies, due to the differences and mutual closure between different instant messaging systems, cross-domain communication between users is greatly restricted. In order to achieve message intercommunication between different instant messaging systems, there are currently some technical solutions, such as XMPP protocol, MQTT protocol, REST API, etc. The following are some of the shortcomings of these solutions: XMPP protocol: Although the XMPP protocol is highly versatile and can support a variety of communication protocols and clients, its implementation cost is relatively high due to its complexity and there are also some security issues.
[0025] MQTT protocol: The MQTT protocol is mainly used in scenarios such as the Internet of Things. It performs well in message push, but is not suitable for scenarios such as instant messaging. Its message size is small and it is not suitable for transmitting large amounts of text messages.
[0026] REST API: REST API is a Web API based on the HTTP protocol. Its advantage is that it is easy to understand and use, but it is essentially a request-response communication method, which is not suitable for real-time communication and also has some security issues.
[0027] Therefore, the above technical solutions all have some disadvantages, such as high implementation cost, security issues, small message size, etc.
[0028] In order to solve the above problems, relevant solutions are provided in the embodiments of the present application, which are described in detail below.
[0029] Before describing the technical solution proposed in this application, the communication architecture involved in the implementation of this solution is described, which mainly includes a mail server and an instant messaging system. Mail server: responsible for receiving emails sent by the instant messaging system and sending them to the inbox of the corresponding instant messaging system.
[0030] Instant messaging system: responsible for packaging the content of the instant message, the sender, the recipient, and other instant messaging systems that receive the message into an EML email format and sending it to the mail server using the SMTP protocol. It also receives emails from the mail service system inbox, resolves them into specific instant messages, and routes them to the instant message recipients in the system.
[0031] In this architecture, it is assumed that there are two independent instant messaging systems (hereinafter referred to as system A and system B) that implement message transmission and reception through the mail protocol.
[0032] First, create an intercommunication email account in system A and system B, for example, the intercommunication email account of system A is exchange@a.com, and the intercommunication email account of system B is exchange@b.com. And configure the encryption method and key agreed upon between the systems.
[0033] The above-mentioned message routing solution based on the email address mapping table proposed in the present application uses an email address mapping table to map different instant messaging systems to different intercommunication email addresses. For example, the intercommunication email address of instant messaging system A is exchange@a.com, and the intercommunication email address of instant messaging system B is exchange@b.com. In this way, when an instant messaging message needs to be sent to another instant messaging system, it only needs to be sent to the intercommunication email account of the corresponding system, and the email system will automatically deliver the email to the corresponding instant messaging system.
[0034] Next, create a virtual address book in system A, add cross-domain message recipients, and fill in the recipient information (the key information is the recipient's virtual email account, such as user1@b.com). The user's virtual email address is only used as the user's system identifier (email domain b.com) and the corresponding user identity identifier in the system (user1). There is no need to create a physical mailbox.
[0035] Assume that a user in system A needs to send an instant message to a user in system B. The implementation process is as follows: Figure 1 shown.
[0036] Figure 1 is a flow chart of a method for implementing cross-domain heterogeneous instant messaging according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps: Step S102, respectively obtain the virtual mailbox accounts of the recipient and sender of the instant message, and determine whether the recipient and sender are located in different instant messaging systems according to the virtual mailbox accounts.
[0037] The execution subject in this step is the instant messaging system (ie the above-mentioned A system) to which the instant message is sent.
[0038] When executing step S102, system A determines whether the sending of the instant message needs to trigger cross-domain message sending according to the virtual mailbox accounts of the receiving object and the sending object. If the receiving object and the sending object are in different instant messaging systems, it is necessary to trigger cross-domain message sending; if the receiving object and the sending object are in the same instant messaging system, it is not necessary to trigger cross-domain message sending.
[0039] Step S104: if the judgment result is yes, respectively obtain the communication email accounts of the instant messaging systems to which the receiving object and the sending object belong.
[0040] Step S106, judging whether the instant messaging system to which the receiving party belongs and the instant messaging system to which the sending party belongs can realize message intercommunication according to the intercommunication email accounts.
[0041] If it is determined through step S102 that the receiving object and the sending object are located in different instant messaging systems, it is also necessary to obtain the intercommunication email accounts of the instant messaging systems to which the receiving object and the sending object belong respectively, and determine whether the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate with each other based on the cross-domain intercommunication email accounts configured on the mail server.
[0042] Step S108: if the judgment result is yes, the instant message is sent to the instant messaging system to which the recipient belongs based on the simple mail transfer protocol.
[0043] If it is determined in step S106 whether the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate with each other, the instant message transmission and reception are realized between the two instant messaging systems through the mail protocol.
[0044] The above-mentioned technical solution provided in the embodiment of the present application achieves the technical effect of message intercommunication between various instant messaging systems by converting instant messaging messages into email format and transmitting them through the email protocol. In addition, this solution has the advantages of versatility, security, and simple implementation, and has high practical application value.
[0045] According to an optional embodiment of the present application, the virtual mailbox account in step S102 is used to identify the identity of the corresponding object and to identify the instant messaging system to which the corresponding object belongs, wherein the virtual mailbox account of the receiving object is configured in the virtual address book of the instant messaging system to which the sending object belongs; and the virtual mailbox account of the sending object is configured in the virtual address book of the instant messaging system to which the receiving object belongs.
[0046] Taking user1@b.com in the above text as an example, user1 is used to identify the identity of the recipient, and the email domain b.com is used to identify the instant messaging system to which the recipient belongs. In the embodiment of the present application, the virtual mailbox account of the user in the B system is added to the virtual address book of the A system, and the virtual mailbox account of the user in the A system is added to the virtual address book of the B system.
[0047] By using a virtual address book, different instant messaging systems can send instant messages across domains without direct interaction. For example, if system A wants to send a message to user user1 in system B, it only needs to configure user user1's virtual mailbox account user1@b.com to send instant messages across domains. The user's mailbox address is only used as the user's instant messaging system identifier (b.com) and the user identity identifier (user1) within the system, and there is no need to create a physical mailbox.
[0048] According to another optional embodiment of the present application, step S102 is executed to determine whether the receiving object and the sending object are located in different instant messaging systems according to the virtual mailbox accounts, which is achieved by the following method: detecting whether the fields in the virtual mailbox accounts of the receiving object and the sending object used to identify the instant messaging systems to which the corresponding objects belong are the same; if the fields in the virtual mailbox accounts of the receiving object and the sending object used to identify the instant messaging systems to which the corresponding objects belong are different, it is determined that the receiving object and the sending object are located in different instant messaging systems.
[0049] Assume that the virtual mailbox account of user user1 in system B is user1@b.com, and assume that the virtual mailbox account of user user2 in system A is user2@a.com. By comparing the fields used to identify the instant messaging system in the two virtual mailbox accounts, that is, comparing the email domain b.com and the email domain a.com, if the two fields are different, it can be determined that users user1 and user2 are in different instant messaging systems.
[0050] In some optional embodiments of the present application, step S106 is executed to determine whether the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate messages based on the intercommunication email account, which is achieved by the following method: detecting whether the correspondence between the intercommunication email account of the instant messaging system to which the receiving object belongs and the intercommunication email account of the instant messaging system to which the sending object belongs has been configured in the email server; if the correspondence has been configured in the email server, determining that the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can communicate messages.
[0051] As mentioned above, an intercommunication email account of the intercommunication system is created in the instant messaging system A and the system B respectively, for example, the intercommunication email account of the system A is exchange@a.com, and the intercommunication email account of the system B is exchange@b.com. The so-called creation of the intercommunication email account of the intercommunication system here means that if the system A and the system B communicate with each other, the correspondence between the intercommunication email account of the system A exchange@a.com and the intercommunication email account of the system B exchange@b.com is pre-established on the mail server.
[0052] Therefore, in this embodiment, whether message intercommunication can be achieved between system A and system B can be determined by simply searching whether there is a corresponding relationship between the intercommunication email account of system A and the intercommunication email account of system B on the mail server.
[0053] In some other optional embodiments of the present application, executing step S108 to send the instant message to the instant messaging system to which the receiving object belongs based on the Simple Mail Transfer Protocol includes the following steps: encapsulating the instant message into an email; configuring the Simple Mail Transfer Protocol client according to the address, port number and authentication information of the mail server; and sending the email from the instant messaging system to which the sending object belongs to the instant messaging system to which the receiving object belongs based on the Simple Mail Transfer Protocol.
[0054] System A encapsulates the instant message to be sent into an email (EML) format. Then, System A configures the SMTP client, including the mail server address, port, authentication information, etc. After the configuration is complete, the SMTP protocol is used to send the email to the mail server for transfer, and the mail server sends the email to System B (the specific implementation process is described below).
[0055] The method proposed in this application for using the mail protocol to realize cross-domain heterogeneous instant messaging message intercommunication can quickly realize the encapsulation of instant messages into emails and interact through the mail protocol without the need to specially define other protocols. The advantage of using the mail protocol is that it is a universal protocol with good versatility and supports the sending and receiving of cross-domain emails. Therefore, using the mail protocol as a channel can realize message intercommunication between various instant messaging systems. In addition, since the mail protocol itself has good security, the security of message transmission can be guaranteed.
[0056] As some optional embodiments of the present application, encapsulating an instant message into an email includes the following steps: creating an email object using the MIME format; encrypting the instant message, the information of the sending object, and the information of the receiving object, and adding them to the email body of the email object; determining the instant messaging system to which the receiving object belongs based on the virtual mailbox account of the receiving object, and adding the intercommunication email account of the instant messaging system to which the receiving object belongs as the receiving account to the email header of the email object; adding the intercommunication email account of the instant messaging system to which the sending object belongs as the sending account to the email header of the email object; adding identification information to the email header, wherein the identification information is used to identify the email as a message intercommunication email; and setting the email title according to a pre-set name.
[0057] In an embodiment of the present application, encapsulating an instant message into an email (EML) format mainly includes the following steps: 1) System A creates a mail object using the MIME format. The mail object consists of a mail header and a mail body.
[0058] 2) The sender and recipient's email addresses and the content of the instant message are encrypted according to the agreed rules and added to the email body of the email object as the email text. If the instant message is a file, the file is encrypted according to the agreed rules and sent as an email attachment.
[0059] 3) Find the corresponding cross-domain system B's intercommunication email account exchange@b.com according to the virtual email account of the recipient, set the system B intercommunication email account as the recipient account of the email and add it to the email header of the email object (the email recipient is the system B's intercommunication email account).
[0060] 4) Set the exchange@a.com email account of system A as the sender account of the email and add it to the email header of the email object (the sender of the email is the exchange email account of system A).
[0061] 5) Add an identifier to the email header to indicate that the email is a message exchange email.
[0062] 6) Set the email title according to the agreed content, such as "Message Exchange Email".
[0063] In the embodiment of the present application, it is important to ensure that the intercommunication email account of system B is correctly set as the destination address of the email.
[0064] The present application also proposes the method for converting instant messaging messages into email format, which can be transmitted via email protocol by encrypting the instant messaging messages according to agreed rules and converting them into content that conforms to the email format. This conversion method can be applied to various instant messaging systems and can realize conversion between different formats to ensure security.
[0065] The above describes the process of sending emails. The following describes the process of receiving emails.
[0066] Figure 2 is a flowchart of another method for implementing cross-domain heterogeneous instant messaging according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps: Step S202, connecting to a mail server and downloading emails from the mail server, wherein the emails are sent to the mail server using the above method.
[0067] System B connects to the mail server via the IMAP or POP3 protocol, selects the correct mailbox folder (such as the Inbox), and downloads the target mail (EML file) from the mail server.
[0068] IMAP and POP3 are the two main protocols used by email clients to download emails from mail servers. Although their functions are both to help users retrieve emails, their operation methods and applicable scenarios are different.
[0069] IMAP allows users to synchronize emails between multiple devices. This means that emails marked as read on one device will also be shown as read on other devices. It is suitable for users who need to view emails on multiple devices or users who want to back up emails on a server.
[0070] POP3 works by downloading emails from the server to your local computer, and then usually deleting them from the server (but this depends on the specific settings). It is suitable for users who only need to check emails on a fixed device, or users who want to reduce the storage burden on the server.
[0071] Step S204, parsing the email, obtaining the recipient information from the email header of the email, and obtaining the instant message from the email body of the email.
[0072] System B parses the received EML file, reads the email header, extracts the recipient information, and ensures that the message can be delivered accurately. It also reads the email body, decodes the instant message content, and converts it back to the text format of the instant message.
[0073] Step S206: forward the instant message to the client corresponding to the recipient.
[0074] System B reconstructs the parsed content into an instant message and sends it to the client of the final recipient, thus achieving complete message delivery. The instant message recipient can reply to the message according to the sender's information.
[0075] The above technical solution proposed in this application is simple and easy to implement, has low implementation cost, improves the security and confidentiality of communications, and has practical application value.
[0076] The embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program executable by the at least one processor, and the computer program is used to enable the electronic device to perform the method of the embodiment of the present application when executed by the at least one processor.
[0077] An embodiment of the present application also provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.
[0078] The embodiment of the present application also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiment of the present application.
[0079] refer to Figure 3, the structural block diagram of the electronic device that can be used as the server or client of the embodiment of the present application will now be described, which is an example of the hardware device that can be applied to various aspects of the present application. The electronic device is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0080] like Figure 3 As shown, the electronic device includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0081] Multiple components in the electronic device are connected to the I / O interface 305, including: an input unit 306, an output unit 307, a storage unit 308, and a communication unit 309. The input unit 306 can be any type of device that can input information to the electronic device, and the input unit 306 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 307 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 308 can include but is not limited to a disk, an optical disk. The communication unit 309 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0082] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above. For example, in some embodiments, the method embodiments of the present application may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via a ROM 302 and / or a communication unit 309. In some embodiments, the computing unit 301 may be configured to perform the above method in any other appropriate manner (e.g., by means of firmware).
[0083] The computer program for implementing the method of the embodiment of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0084] In the context of the embodiments of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, or infrared system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] It should be noted that the term "including" and its variations used in the embodiments of the present application are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present application are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0086] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0087] The various steps described in the method implementation methods provided in the embodiments of the present application can be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present application is not limited in this respect.
[0088] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.
[0089] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A method for implementing cross-domain heterogeneous instant messaging, characterized in that: include: Respectively obtain the virtual mailbox accounts of the recipient and the sender of the instant message, and determine whether the recipient and the sender are located in different instant messaging systems according to the virtual mailbox accounts; If the judgment result is yes, respectively obtain the mutual communication email accounts of the instant messaging system to which the receiving object and the sending object belong; Determining, based on the intercommunication email account, whether the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can realize message intercommunication; If the judgment result is yes, the instant message is sent to the instant messaging system to which the receiving object belongs based on the Simple Mail Transfer Protocol.
2. The method according to claim 1, characterized in that The virtual mailbox account is used to identify the identity of the corresponding object and the instant messaging system to which the corresponding object belongs, wherein: The virtual mailbox account of the receiving object is configured in the virtual address book of the instant messaging system to which the sending object belongs; The virtual mailbox account of the sending object is configured in the virtual address book of the instant messaging system to which the receiving object belongs.
3. The method according to claim 2, characterized in that Determining whether the receiving object and the sending object are located in different instant messaging systems according to the virtual mailbox account includes: Detecting whether the fields in the virtual mailbox accounts of the receiving object and the sending object for identifying the instant messaging system to which the corresponding objects belong are the same; If the fields for identifying the instant messaging systems to which the corresponding objects belong in the virtual mailbox accounts of the receiving object and the sending object are different, it is determined that the receiving object and the sending object are located in different instant messaging systems.
4. The method according to claim 1, characterized in that: Judging, according to the intercommunication email account, whether the instant communication system to which the receiving object belongs and the instant communication system to which the sending object belongs can realize message intercommunication, comprises: Detecting whether a correspondence between an intercommunication email account of the instant messaging system to which the receiving object belongs and an intercommunication email account of the instant messaging system to which the sending object belongs has been configured in the mail server; If the correspondence has been configured in the mail server, it is determined that the instant messaging system to which the receiving object belongs and the instant messaging system to which the sending object belongs can realize message intercommunication.
5. The method according to claim 1, characterized in that The method of sending the instant message to the instant messaging system to which the receiving object belongs based on the simple mail transfer protocol includes: Encapsulating the instant message into an email; Configure the SMTP client based on the mail server's address, port number, and authentication information; The email is sent from the instant messaging system to which the sending object belongs to the instant messaging system to which the receiving object belongs based on the Simple Mail Transfer Protocol.
6. The method according to claim 5, characterized in that Encapsulating the instant message into an email, including: Create a mail object using MIME format; Encrypting the instant message, the information of the sending object and the information of the receiving object and adding them to the mail body of the mail object; Determine the instant messaging system to which the receiving object belongs according to the virtual mailbox account of the receiving object, and add the intercommunication email account of the instant messaging system to which the receiving object belongs as the receiving account to the email header of the email object; Adding the intercommunication email account of the instant messaging system to which the sending object belongs as the sending account to the email header of the email object; Adding identification information to the email header, wherein the identification information is used to identify the email as a message exchange email; Set the email title according to the preset name.
7. A method for implementing cross-domain heterogeneous instant messaging, characterized in that: include Connecting to a mail server and downloading an email from the mail server, wherein the email is sent to the mail server using the method described in any one of claims 1 to 6; Parsing the email, obtaining information of the recipient from the email header of the email, and obtaining the instant message from the email body of the email; The instant message is forwarded to the client corresponding to the receiving object.
8. An electronic device comprising: A processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
9. A non-transitory machine-readable medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor of a computer, the computer is used to cause the computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Instant message and email intercommunication method and system
CN102025514A
Method and system for performing instant messaging based on mail protocol
CN109379276A
Mail sending method, system and device and storage medium
CN114866505A
Message transmitting method and system
CN1988517A
Mail receipt notification system for mail sent from mobile terminal, device and method thereof, and computer readable recording medium
KR1020140066526A
