The method and system of mail data are opened by instant messaging toolsTechnical field
The invention belongs to fields of communication technology.
Background technology
Email and instant messaging tools have become the important means that user is communicated by network.At present, peopleOften using instant messaging tools carry out real-time communication, important data information is sent by Email.In certain situationsUnder, user can send prompting message to other side by instant messaging tools, inform other side's postal after contact person sends EmailPart has been sent, and other side is asked to pay attention to checking and accepting.In the prior art, user receives the prompting of other side's transmission mail by instant messaging toolsDuring message, need to first log into corresponding mailbox, then check mail data from mailbox again, operating process is relative complex.Such asFruit can set the link information for opening corresponding mail data in instant communication message, directly trigger in instant communication messageLink can open corresponding mail data, then user can be made to operate simpler convenience.
Invention content
The object of the present invention is to provide a kind of method and system that mail data is opened by instant messaging tools, profitsWith the present invention, when including mail related data in the instant message received in user, can be opened by the link of e-mail messagesOpen corresponding mail data.
Technical solution provided by the invention includes:
A kind of method that mail data is opened by instant messaging tools, this method comprises the following steps:
Step 1, instant messaging end acquisition comes from the instant message of sender, judge whether to have in the instant message withThe relevant data information of mail, if so, into next step;
Step 2, judge in the association E-mail address that the instant messaging end is established, if receive and aforementioned sender or i.e.When the corresponding Email of message content, if so, into next step;
Step 3, instant messaging end export the instant message when, correspond at the position of the instant message, set toOpen the link information of e-mail.
Preferably, the mode of foundation association E-mail address is in the step 2:
Acquire triggering message of the user to relevant mailbox setting control in instant messaging interface;
The setting interface to establish association E-mail address is generated, the mailbox letter that acquisition user inputs in the setting interfaceBreath;
The instant messaging identifier of the user is obtained, is associated with being established between customer identification number and aforementioned mailbox message.
Preferably, the mode of foundation association E-mail address is in the step 2:
Acquire triggering message of the user to the instant message comprising mail related data;
The setting interface to establish association E-mail address is generated, the mailbox letter that acquisition user inputs in the setting interfaceBreath;
Obtain the instant messaging identifier of the user and the transmitting side marking information of instant message, by customer identification number,Association is established between transmitting side marking information and aforementioned mailbox message.
Preferably, judge that described be associated in E-mail address is with the process of the corresponding Email of aforementioned sender:
Obtain the corresponding sender information of mail data that the association E-mail address receives in preset time period;
Judge whether the sender information is consistent with the instant message sender, if so, by corresponding mail numberAccording to being determined as and the corresponding Email of sender.
Preferably, judge that described be associated in E-mail address is with the process of the corresponding Email of aforementioned sender:
Judge whether there is the sender information consistent with the instant message sender in the association E-mail address, ifIt is that then acquisition is from timestamp information corresponding with the mail data of the sender;
Obtain the timestamp information of the instant message, timestamp information corresponding with the mail data of aforementioned sender intoRow compares;
Both aforementioned shortest mail data of time interval is taken, is determined as and the corresponding Email of described sender.
Preferably, judge whether sender information is consistent with the instant message sender in the association E-mail addressMode is:
The title of sender and/or remark information and the title and/or remark information of instant message sender are comparedIt is right, pass through if comparing, judge that sender information is consistent with instant message sender;
Alternatively, it is set by the user sender consistent with the instant message sender in association E-mail address.
Preferably, judge the process with the aforementioned corresponding Email of instant message content in the association E-mail addressFor:
Obtain the corresponding mail matter topics content of mail data that the association E-mail address receives in preset time period;
Judge whether the mail matter topics content has all or part of consistent data information with instant message content, ifIt is then to be determined as the mail and the corresponding Email of instant message content.
Preferably, judge the process with the aforementioned corresponding Email of instant message content in the association E-mail addressFor:
Whether time and data information for Email is included in the received instant message content of judgement, if packetIt includes, then acquires the temporal information;
The corresponding timestamp information of mail data received in the association E-mail address is obtained, judgement is believed with aforesaid timeWhether breath coincide, if so, the mail data is determined as and the corresponding Email of instant message content.
Preferably, it is set in the step 3 and is to the mode for opening the link information of e-mail:
In the instant message chain will be established between the relevant data information of mail, with the Email opening operationConnect relationship;
After collecting to the triggering message of the relevant data information of the mail, corresponding Email is directly opened.
Preferably, it is set in the step 3 and is to the mode for opening the link information of e-mail:
At the position for corresponding to the instant message, link control of the generation comprising the mail icon and/or mail matter topics informationPart;
After collecting to the triggering message of the link control, corresponding Email is opened.
The present invention also provides a kind of system that mail data is opened by instant messaging tools, which further includes:
Instant message identifying unit, for passing through the instant message that the acquisition of instant messaging end comes from sender, judgement shouldWhether have and the relevant data information of mail in instant message;
Email identifying unit is connected with aforementioned instant message identifying unit, for being yes in aforementioned judgement resultIn the case of, judge in the association E-mail address that the instant messaging end is established, if receive and aforementioned sender or instant messageThe corresponding Email of content;
Link information setting unit is connected with e-mail identifying unit, for being yes in aforementioned judgement resultIn the case of, when instant communication ends export the instant message, correspond at the position of the instant message, set before openingState the link information of Email.
Preferably, the link information setting unit includes following construction module:
Link control generation module, for corresponding at the position of the instant message, generation comprising the mail icon and/orThe link control of mail matter topics information;
Email opening module is connected with the aforementioned control generation module that links, for collecting to the link controlAfter the triggering message of part, corresponding Email is opened.
Compared with prior art, the including but not limited to following aspect of beneficial effects of the present invention:
In the present invention, user by instant messaging end establish association E-mail address, when user receive it is relevant i.e. with mailWhen communication information when, if association E-mail address in receive corresponding e-mail messages, exported in the instant messaging interface of userDuring the instant communication message, the link of the e-mail messages is opened in the corresponding position setting of instant communication message.Work as userWhen triggering the link, corresponding mail data can be directly opened, without register is carried out by mailbox server again, is usedThe simpler convenience of operating process at family.
Description of the drawings
Fig. 1 is a kind of method flow that mail data is opened by instant messaging tools provided in the embodiment of the present invention oneFigure;
Fig. 1-1 is the chain that the related data of instant communication message is set on to Email in the embodiment of the present invention oneThe schematic diagram connect;
Fig. 1-2 is to be corresponded in the embodiment of the present invention one at the position of instant communication message, generates to open electronics postalThe schematic diagram of the link control of part;
Fig. 2 is the knot of a kind of system that mail data is opened by instant messaging tools provided in the embodiment of the present invention twoStructure block diagram.
Specific embodiment
Embodiment of the present invention is described in detail with reference to the accompanying drawings and detailed description.
Referring to Fig. 1, which is that the one kind provided in the embodiment of the present invention one opens mail data by instant messaging toolsMethod flow diagram, be as follows described.
Whether S11, instant messaging end, which acquires, comes from the instant message of sender, judge to have in the instant message and postalThe relevant data information of part, if so, into next step;
When instant communications-user-receipt is to from instant message with sender, judge whether have in the instant messageWith the relevant data information of mail.Its specific determination method is:By system or user preset and the relevant data information of mail,Such as the character contents such as " mail ", " mailbox ", " mail ", " mailbox ";Then, it is determined that in the instant message content received whetherWith the information being consistent with preset data, if so, then can determine in instant message has and the relevant data information of mail.
S12 is judged in the association E-mail address that the instant messaging end is established, if is received with aforementioned sender or immediatelyThe corresponding Email of message content, if so, into next step;
Here, user needs the E-mail address being associated beforehand through instant communication client foundation.As an example andNon-limiting, the mode for establishing association E-mail address is:Acquisition user touches relevant mailbox setting control in instant messaging interfaceSend out message;The setting interface to establish association E-mail address is generated, the mailbox letter that acquisition user inputs in the setting interfaceBreath(Here the mailbox message inputted includes logging in the username and password information of mailbox);The instant messaging for obtaining the user is knownAlias is associated with being established between customer identification number and aforementioned mailbox message.The relevant mailbox setting control may be provided at immediatelyIt communicates in main panel, may also be arranged in the instant messaging interactive interface that user communicates with contact person.User passes through triggeringAfter the relevant mailbox setting control establishes association E-mail address, the corresponding instant communication client of the customer identification number can be straightObtain the data information taken in association E-mail address.
For example and without limitation, the mode of the foundation association E-mail address can also be:User is acquired to including postalThe triggering message of the instant message of part related data;The setting interface to establish association E-mail address is generated, acquisition user existsThe mailbox message inputted in the setting interface;Obtain the instant messaging identifier of the user and the transmitting side marking of instant messageInformation is associated with being established between customer identification number, transmitting side marking information and aforementioned mailbox message.Mail related data will be includedInstant message as setting association E-mail address operation entry, the association E-mail address only needle established by the operation entryTo the sender of the instant message, that is to say, that only just shown in the instant messaging interactive interface of user and described senderShow set association E-mail address.User and the association E-mail address of other contact persons need by corresponding instant message intoRow is reset.
For example and without limitation, judge described be associated in E-mail address and the corresponding Email of described senderProcess is:Obtain the corresponding sender information of mail data that the association E-mail address receives in preset time period;JudgementWhether the sender information is consistent with the instant message sender, if so, corresponding mail data to be determined as and send outThe corresponding Email in the side of sending.The preset time period refers to and receives the temporally adjacent near preset time of instant messageSection for example, preset time period is 24 hours, then refers to that user receives the adjoining period of 24 hours at instant message momentIt is interior.The sender information is consistent with the instant message sender to refer to that sender contacts with instant message sender to be samePeople.
For example and without limitation, judge described be associated in E-mail address and the corresponding Email of described senderProcess is:Judge whether there is the sender information consistent with the instant message sender in the association E-mail address, ifIt is that then acquisition is from timestamp information corresponding with the mail data of the sender;Obtain the timestamp of the instant messageInformation, timestamp information corresponding with the mail data of aforementioned sender are compared;Take both aforementioned time interval shortestMail data is determined as and the corresponding Email of described sender.The sender information is sent with the instant messageSide unanimously refers to sender and instant message sender is same contact person.
Judge that the sender information and the whether consistent mode of the instant message sender are one of:
Mode 1, by the title of sender and/or remark information and the title and/or remark information of instant message senderIt is compared, passes through if comparing, judge that sender information is consistent with instant message sender.For example, the name of mailbox senderReferred to as " Joy ", the remark information of instant message sender is " Joy ", then judges that sender is consistent with instant message sender.
Mode 2 is set by the user sender consistent with the instant message sender in association E-mail address.Work as userWhen for instant message sender, association E-mail address is set, it can be set and the instant message in E-mail address is associated with by userThe consistent sender information of sender.
For example and without limitation, judge described be associated in E-mail address and the aforementioned corresponding electronics of instant message contentThe process of mail is:It obtains in the corresponding mail matter topics of mail data that the association E-mail address receives in preset time periodHold;Judge whether the mail matter topics content has all or part of consistent data information with instant message content, if so,The mail is determined as and the corresponding Email of instant message content.For example, include data in instant message content" project 1 ";The corresponding mail matter topics content of mail data that association E-mail address receives also includes data " project 1 ", thenIt then can determine that the Email is corresponding with the instant message content.
For example and without limitation, judge described be associated in E-mail address and the aforementioned corresponding electronics of instant message contentThe process of mail is:Whether time and data information for Email is included in the received instant message content of judgement,If including acquiring the temporal information;Obtain the corresponding timestamp letter of the mail data received in the association E-mail addressBreath, whether judgement coincide with aforesaid time information, if so, the mail data is determined as corresponding with instant message contentEmail.For example, instant message content is:" contents of a project are dealt into your mailbox by 10 AM ", then then obtain" 10 AM " corresponding time and data information in message content, if in association E-mail address in the time corresponding threshold valueBetween in the range of receive Email, you can the received Email of judgement is corresponding with the instant message content.
S13 when instant messaging end exports the instant message, is corresponded at the position of the instant message, is set outOpen the link information of e-mail.
For example and without limitation, described set is to the mode for opening the link information of e-mail:By instituteIt states in instant message and establishes the link relationship between the relevant data information of mail, with the Email opening operation;It is adoptingAfter collecting the triggering message to the relevant data information of the mail, corresponding Email is directly opened.As Figure 1-1,Illustrate the schematic diagram for the link that the related data of instant communication message is set on to Email.As shown in the figure, immediatelyCommunication interface of the communication interaction interface 100 between user and contact person " Joy " is shown in message output window 110 whereinThe instant message of " Joy " transmission is shown with, includes data " mailbox " in the message content, is and the relevant data content of mail.In E-mail address is associated with have corresponding Email in the case of, by the data " mailbox " in the message content with it is correspondingEmail opening operation between establish the link relationship, by " mailbox " position set underscore and/or display it is otherColor shows to carry out differentiation.When user triggers " mailbox " position in the message content, that is, open corresponding mailData.
For example and without limitation, described set is to the mode for opening the link information of e-mail:It is correspondingAt the position for the instant message, link control of the generation comprising the mail icon and/or mail matter topics information;It is collecting pairAfter the triggering message of the link control, corresponding Email is opened.As shown in Figs. 1-2, it illustrates and corresponds to instant messagingAt the position of message, generate to open the schematic diagram of the link control of Email.As shown in the figure, instant messaging interactive interface100 communication interface between user and contact person " Joy " shows " Joy " transmission in message output window 110 whereinInstant message.In the case of there is corresponding Email in E-mail address is associated with, in the correspondence position of the instant messageGeneration link control 120 is put, the link control includes the mail icon and/or mail matter topics information.When instant message is correspondingWhen mail data is two or more, then corresponding two or more link control is generated, is exported by tabular form.When withWhen the link control 120 is triggered in family by cursor or touch point, that is, open corresponding Email.
In method described in the present embodiment, instant communication users pre-establish electronics postal associated with instant messaging accountCase;After instant communication users receive the instant message of sender, include the relevant data letter of mail in instant message contentIn the case of breath, whether there is corresponding Email in the established association E-mail address of inquiry;With in the case of,It when exporting the instant message in instant messaging interactive interface, corresponds at the position of instant message, sets to open aforementionedThe link information of Email;Instant communication users can open corresponding mail data by triggering the link information.
With reference to a kind of previously described embodiment of the method that mail data is opened by instant messaging tools, the present invention also carriesMating system is supplied.
Referring to Fig. 2, which is that the one kind provided in the embodiment of the present invention three opens mail data by instant messaging toolsSystem structure diagram, which includes:
Instant message identifying unit 210, for passing through the instant message that the acquisition of instant messaging end comes from sender, judgementWhether have and the relevant data information of mail in the instant message;
Email identifying unit 220 is connected with aforementioned instant message identifying unit 220, in aforementioned judgement resultIn the case of being, judge in the association E-mail address that the instant messaging end is established, if receive and aforementioned sender or i.e.When the corresponding Email of message content;
Link information setting unit 230 is connected with e-mail identifying unit 230, in aforementioned judgement resultIn the case of being, instant communication ends export the instant message when, correspond at the position of the instant message, set toOpen the link information of e-mail.
Wherein, the link information setting unit 230 includes following construction module:
Control generation module 231 is linked, for corresponding at the position of the instant message, generation includes the mail iconAnd/or the link control of mail matter topics information;
Email opening module 232 is connected with the aforementioned control generation module 231 that links, for collecting to describedAfter the triggering message for linking control, corresponding Email is opened.
In system described in the present embodiment, after instant communication ends receive the instant message for coming from sender, immediatelyMessage identifying unit 210 judges whether have and the relevant data information of mail in the instant message;With in the case of, electricitySub- mail identifying unit 220 is judged in the association E-mail address that the instant messaging end is established, if is received and aforementioned senderOr the corresponding Email of instant message content;It is if described i.e. in the output of instant communication ends with corresponding EmailWhen message when, link information setting unit 230 is corresponded at the position of the instant message, sets to open e-mailLink information.When setting link information, the position of the instant message is corresponded to by linking control generation module 231Place, link control of the generation comprising the mail icon and/or mail matter topics information;Disappear collecting to the triggering of the link controlAfter breath, Email opening module 232 opens corresponding Email.
The description of this invention above and non-limiting, the other embodiment based on inventive concept, in the present inventionProtection domain among.