CN108322385A - A kind of new mail arrival notice method, system and device - Google Patents
A kind of new mail arrival notice method, system and device Download PDFInfo
- Publication number
- CN108322385A CN108322385A CN201810054979.9A CN201810054979A CN108322385A CN 108322385 A CN108322385 A CN 108322385A CN 201810054979 A CN201810054979 A CN 201810054979A CN 108322385 A CN108322385 A CN 108322385A
- Authority
- CN
- China
- Prior art keywords
- browser
- server
- new mail
- message body
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/56—Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of new mail arrival notice method, system and device, the logging request that the method includes being inputted in response to terminating subscriber, browser logs in the corresponding mailbox of logging request described in mailing system;The browser is established to connect with the full-duplex communication of the server of the mailing system;In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module, and the Mail Contents for extracting the new mail generate message body;Wherein, the Mail Contents include addresser, theme and file;The message body is sent to the server by the delivery module;The message body is pushed to the browser by the server, so that the message body is pushed to user by the browser.Active push new e-mail messages can be realized to browser by above method server, and after browser is disconnected with the server, server can also release immediately resource, improve the resource utilization of mailing system.
Description
Technical field
The present invention relates to E-mail service technical fields, and in particular to a kind of new mail arrival notice method, system with
Device.
Background technology
Email is the important component that people carry out communication exchanges in daily life.Email is not only
It is simple message, it has become indispensable means of communication as phone.Email is inexpensive, simple because of it
Property, ease for use and the whole world compatibility and be adopted to message transmission standard.And exist in electronic mail service system a kind of new
Mail notification service may remind the user that by new mail notice service and know in time and check and accept new mail.
Currently, existing new mail notice method includes using long poll scheme, i.e., client opens one and arrives server
AJAX (asynchronous JavaScript and XML) request then wait-for-response;Server needs some specific functions to allow to ask
It asks and is suspended, as long as when subscriber mailbox receives new mail, server will send response back to and be closed in the request of hang-up and is somebody's turn to do
Request.Client JavaScript response processing function can send out request again after the information for having handled server return, weight
It is new to establish connection, carry out next wait-for-response flow.There are following defects for existing new mail notice method:Server needs
Connection is hung up, when the connection that browser is initiated is more, server can keep multiple connections for a long time, and consume more
System resource has certain risk.Browser initiates the request of long poll to server, and server can the company of hang-up temporarily
Connect, will respond the request after server receives new mail, but due to this long poll be based on HTTP request, because
The content that this content that will appear request is returned far more than server, waste bandwidth.One is maintained between browser and server
Long connection can carry out some uncertainties for communication band, because data transmission is random, client cannot know when server
There is data transmission.Server is necessary to ensure that the resource that the distribution of this client is released to when client no longer works, and prevents interior
Deposit leakage.
Invention content
The object of the present invention is to provide a kind of new mail arrival notice method, system and device, servers can realize master
Dynamic push new e-mail messages are to browser, and after browser is disconnected with the server, server can also release immediately
Resource improves the resource utilization of mailing system.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of new mail arrival notice method, including:
In response to the logging request of terminating subscriber input, browser logs in the corresponding postal of logging request described in mailing system
Case;
The browser is established to connect with the full-duplex communication of the server of the mailing system;
In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module, and is carried
The Mail Contents of the new mail are taken to generate message body;Wherein, the Mail Contents include addresser, theme and file;
The message body is sent to the server by the delivery module;
The message body is pushed to the browser by the server, so that the browser pushes away the message body
Give user.
Preferably, described to establish the browser and connect with the full-duplex communication of the server of the mailing system, specifically
Including:
According to websocket protocol, the full-duplex communication for establishing the browser and the server of the mailing system connects
It connects.
Preferably, the new mail arrival notice method further includes:
After establishing the browser and being connect with the full-duplex communication of the server of the mailing system, the browser to
The server subscribes to new mail and reaches theme;Wherein, the new mail reaches the webosocket of theme and the browser
Connecting pin has unique communication relationship;
Wherein, the message body is sent to the server by the delivery module, is specifically included:
The message body is sent to the corresponding new mail of mailbox described in the server and reaches master by the delivery module
Topic;
The message body is pushed to the browser by the server, so that the browser pushes away the message body
User is given, is specifically included:
The whois lookup and the new mail reach the corresponding connecting pins webosocket of theme, and by the message
Body is sent to the connecting pins webosocket, so that the message body is pushed to and the connecting pins pair webosocket
The browser answered.
Preferably, the message body is pushed to the browser by the server, so that the message body is pushed
To user, further include:
The browser extracts the Mail Contents of the message body and generates prompt message;Wherein, the prompt message packet
Include addresser, theme and file;
The prompt message is pushed to the current display page of the browser, so that the prompt message is pushed
To user.
Preferably, the new mail arrival notice method further includes:
When new mail is sent to the mailbox by the delivery module, the new mail is sent to the mailing system
The module that is locally stored stored.
The embodiment of the present invention also provides a kind of new mail arrival notice system, including:
Browser, the logging request for being inputted in response to terminating subscriber log in logging request pair described in mailing system
The mailbox answered;
The browser, the full-duplex communication for being additionally operable to establish the server of the browser and the mailing system connect
It connects;
Delivery module, in response to transmitting request for sending E-mail input by user, new mail to be sent to the mailbox,
And the Mail Contents for extracting the new mail generate message body;Wherein, the Mail Contents include addresser, theme and file
Folder;
The delivery module is additionally operable to the message body being sent to the server;
The server, for the message body to be pushed to the browser, so that the browser disappears described
Breath body is pushed to user.
Preferably, the browser includes that module is established in communication connection, and the communication connection establishes module for basis
Websocket protocol is established the browser and is connect with the full-duplex communication of the server of the mailing system.
Preferably, the browser further includes theme subscribing module, when establishing the browser and the mailing system
After the full-duplex communication connection of server, the theme subscribing module of the browser, for subscribing to new mail to the server
Reach theme;Wherein, the new mail reaches theme and the connecting pins webosocket of the browser are closed with unique communication
System;
Wherein, the delivery module includes first message sending module, and the first message sending module is used for will be described
Message body is sent to the corresponding new mail of mailbox described in the server and reaches theme;
The server includes second message sending module, and the second message sending module is for searching and the new stamp
Part reaches the corresponding connecting pins webosocket of theme, and the message body is sent to the connecting pins webosocket, with
So that the message body is pushed to browser corresponding with the connecting pins webosocket.
Preferably, the browser includes prompt message extraction module and prompt message pushing module,
The prompt message extraction module of the browser, Mail Contents for extracting the message body simultaneously generate prompt letter
Breath;Wherein, the prompt message includes addresser, theme and file;
The prompt message pushing module of the browser, for the prompt message to be pushed to the current of the browser
The page is shown, so that the prompt message is pushed to user.
Preferably, the delivery module includes new mail transmission unit, and the new mail transmission unit is used to work as the throwing
When passing module new mail being sent to the mailbox, by the new mail be sent to the mailing system be locally stored module into
Row storage.
The embodiment of the present invention also provides a kind of new mail arrival notice device, including processor, memory and is stored in
In the memory and it is configured as the computer program executed by the processor, the processor executes the computer journey
When sequence, above-mentioned new mail arrival notice method is realized.
Compared with the existing technology, a kind of advantageous effect of new mail arrival notice method provided in an embodiment of the present invention exists
In:The new mail arrival notice method includes the logging request inputted in response to terminating subscriber, and browser logs in mailing system
Described in the corresponding mailbox of logging request;The full-duplex communication for establishing the browser and the server of the mailing system connects
It connects;In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module, and described in extraction
The Mail Contents of new mail generate message body;Wherein, the Mail Contents include addresser, theme and file;The throwing
It passs module and the message body is sent to the server;The message body is pushed to the browser by the server, with
So that the message body is pushed to user by the browser.Active push new mail can be realized by above method server
For message to browser, after browser is disconnected with the server, server can also release immediately resource, improve mail
The resource utilization of system.The embodiment of the present invention also provides a kind of new mail arrival notice system and device.
Description of the drawings
Fig. 1 is a kind of flow chart of new mail arrival notice method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of new mail arrival notice system provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of new mail arrival notice device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it is a kind of flow chart of new mail arrival notice method provided in an embodiment of the present invention, it is described new
E-mail arrival notice method includes:
S100:In response to the logging request of terminating subscriber input, browser logs in logging request pair described in mailing system
The mailbox answered;
S200:The browser is established to connect with the full-duplex communication of the server of the mailing system;
S300:In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module,
And the Mail Contents for extracting the new mail generate message body;Wherein, the Mail Contents include addresser, theme and file
Folder;
S400:The message body is sent to the server by the delivery module;
S500:The message body is pushed to the browser by the server, so that the browser disappears described
Breath body is pushed to user.
In the present embodiment, when the browser log in the mailing system after, the browser automatically with the mail
The siosvr servers (real-time messages push server) of system establish full-duplex communication connection, at this point, the browser and institute
State siosvr servers and may be implemented bidirectional data transfers, the siosvr servers can with real time push message to browser,
It is described after browser and the siosvr servers disconnect (i.e. when browser log off the mailing system)
Siosvr servers can also release immediately resource, improve the resource utilization of mailing system.
In a kind of optional embodiment, S200:It is described to establish the browser and the server of the mailing system
Full-duplex communication connects, and specifically includes:
According to websocket protocol, the full-duplex communication for establishing the browser and the server of the mailing system connects
It connects.
In the present embodiment, according to websocket protocol, the browser and the server of the mailing system are established
Full-duplex communication connects, and specifically includes:
The browser sends websocket handshake requests to the server;
The server responds the websocket handshake requests, and extracts in the websocket handshake requests
Websocket initial keys carry out coding to the initial key and calculate generation websocket authentication secrets;
The server returns to the websocket handshake requests message of the response comprising the authentication secret described
Browser;
The websocket initial keys and the websocket authentication secrets are carried out the matching analysis by the browser;
When the websocket initial keys are matched with the websocket authentication secrets, the browser is held with the server
Hand success, the browser are established full-duplex communication with the server and are connect.
It is logical that the similar full duplex by TCP connection of the websocket full-duplex channels to be formed is connected according to full-duplex communication
Road can extract the correlation of new mail by the websocket full-duplex channels after server receives new mail
Mail Contents produce message body, and the message body is actively pushed to the browser, reach real-time informing effect.
In a kind of optional embodiment, the new mail arrival notice method further includes:
After establishing the browser and being connect with the full-duplex communication of the server of the mailing system, the browser to
The server subscribes to new mail and reaches theme;Wherein, the new mail reaches the webosocket of theme and the browser
Connecting pin has unique communication relationship;
Wherein, the message body is sent to the server by the delivery module, is specifically included:
The message body is sent to the corresponding new mail of mailbox described in the server and reaches master by the delivery module
Topic;
The message body is pushed to the browser by the server, so that the browser pushes away the message body
User is given, is specifically included:
The whois lookup and the new mail reach the corresponding connecting pins webosocket of theme, and by the message
Body is sent to the connecting pins webosocket, so that the message body is pushed to and the connecting pins pair webosocket
The browser answered.
In a kind of optional embodiment, the message body is pushed to the browser by the server, so that will
The message body is pushed to user, further includes:
The browser extracts the Mail Contents of the message body and generates prompt message;Wherein, the prompt message packet
Include addresser, theme and file;
The prompt message is pushed to the current display page of the browser, so that the prompt message is pushed
To user.
In a kind of optional embodiment, the new mail arrival notice method further includes:
When new mail is sent to the mailbox by the delivery module, the new mail is sent to the mailing system
The module that is locally stored stored.
Referring to Fig. 2, it is a kind of schematic diagram of new mail arrival notice system provided in an embodiment of the present invention, it is described new
E-mail arrival notice system includes:
Browser 1, the logging request for being inputted in response to terminating subscriber log in logging request pair described in mailing system
The mailbox answered;
The browser 1 is additionally operable to establish the full-duplex communication of the server 2 of the browser 1 and the mailing system
Connection;
Delivery module 2, in response to transmitting request for sending E-mail input by user, new mail to be sent to the postal
Case, and the Mail Contents for extracting the new mail generate message body;Wherein, the Mail Contents include addresser, theme and
File;
The delivery module 3 is additionally operable to the message body being sent to the server 2;
The server 2, for the message body to be pushed to the browser 1, so that the browser 1 will be described
Message body is pushed to user.
In the present embodiment, when the browser log in the mailing system after, the browser automatically with the mail
The siosvr servers (real-time messages push server) of system establish full-duplex communication connection, at this point, the browser and institute
State siosvr servers and may be implemented bidirectional data transfers, the siosvr servers can with real time push message to browser,
It is described after browser and the siosvr servers disconnect (i.e. when browser log off the mailing system)
Siosvr servers can also release immediately resource, improve the resource utilization of mailing system.
In a kind of optional embodiment, the browser includes that module is established in communication connection, and the communication connection is established
The full-duplex communication that module is used to establish the browser and the server of the mailing system according to websocket protocol connects
It connects.
In the present embodiment, it is described communication connection establish module include the handshake request module for being set to the browser,
Key verification module is set to the handshake response module of the server;
The handshake request module of the browser, for sending websocket handshake requests to the server;
The handshake response module of the server, for responding the websocket handshake requests, and described in extraction
Websocket initial keys in websocket handshake requests carry out coding to the initial key and calculate generation
Websocket authentication secrets;
The handshake response module of the server is additionally operable to that the response websocket of the authentication secret will be included
Handshake request message returns to the browser;
The key verification module of the browser, for testing the websocket initial keys with the websocket
It demonstrate,proves key and carries out the matching analysis;It is described when the websocket initial keys are matched with the websocket authentication secrets
Browser is established full-duplex communication with the server and is connect with server handshaking success, the browser.
It is logical that the similar full duplex by TCP connection of the websocket full-duplex channels to be formed is connected according to full-duplex communication
Road can extract the correlation of new mail by the websocket full-duplex channels after server receives new mail
Mail Contents produce message body, and the message body is actively pushed to the browser, reach real-time informing effect.
In a kind of optional embodiment, the browser further includes theme subscribing module, when establish the browser with
After the full-duplex communication connection of the server of the mailing system, the theme subscribing module of the browser is used for the clothes
Business device subscribes to new mail and reaches theme;Wherein, the new mail reaches the connecting pins webosocket of theme and the browser
With unique communication relationship;
Wherein, the delivery module includes first message sending module, and the first message sending module is used for will be described
Message body is sent to the corresponding new mail of mailbox described in the server and reaches theme;
The server includes second message sending module, and the second message sending module is for searching and the new stamp
Part reaches the corresponding connecting pins webosocket of theme, and the message body is sent to the connecting pins webosocket, with
So that the message body is pushed to browser corresponding with the connecting pins webosocket.
In a kind of optional embodiment, the browser includes prompt message extraction module and prompt message push mould
Block,
The prompt message extraction module of the browser, Mail Contents for extracting the message body simultaneously generate prompt letter
Breath;Wherein, the prompt message includes addresser, theme and file;
The prompt message pushing module of the browser, for the prompt message to be pushed to the current of the browser
The page is shown, so that the prompt message is pushed to user.
In a kind of optional embodiment, the delivery module includes new mail transmission unit, and the new mail sends single
Member is for when new mail is sent to the mailbox by the delivery module, the mailing system to be sent to by the new mail
Module is locally stored to be stored.
The embodiment of the present invention also provides a kind of new mail arrival notice device, including processor, memory and is stored in
In the memory and it is configured as the computer program executed by the processor, the processor executes the computer journey
When sequence, above-mentioned new mail arrival notice method is realized.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the new mail arrival notice device.For example, referring to Fig. 3, the computer journey
Sequence can be divided into login module 11, and the logging request for being inputted in response to terminating subscriber logs in mail by browser
The corresponding mailbox of logging request described in system;Module 12 is established in communication connection, for establishing the browser and the mail
The full-duplex communication of the server of system connects;Delivery module 21, in response to transmitting request for sending E-mail input by user,
New mail is sent to the mailbox, and the Mail Contents for extracting the new mail generate message body;Wherein, the Mail Contents
Including addresser, theme and file;The delivery module 21 is additionally operable to the message body being sent to the server;
The message body is pushed to the browser, so that the browsing by message pushing module 31 for passing through the server
The message body is pushed to user by device;Theme subscribing module 13 establishes the browser and the mailing system for working as
After the full-duplex communication connection of server, subscribes to new mail to the server and reach theme;Wherein, the new mail reaches master
Topic and the connecting pins webosocket of the browser have unique communication relationship;Wherein, the delivery module 21 includes first
Message transmission module, the first message sending module are used to the message body being sent to mailbox pair described in the server
The new mail answered reaches theme;The message pushing module 31 includes second message sending module, and the second message sends mould
Block reaches the corresponding connecting pins webosocket of theme for searching with the new mail, and described in the message body is sent to
The connecting pins webosocket, so that the message body is pushed to browser corresponding with the connecting pins webosocket.
Prompt message extraction module 14, Mail Contents for extracting the message body simultaneously generate prompt message;Wherein, the prompt letter
Breath includes addresser, theme and file;Prompt message pushing module 15, it is described clear for the prompt message to be pushed to
The current display page of device is look at, so that the prompt message is pushed to user.The delivery module 21 is sent out including new mail
Unit, the new mail transmission unit is sent to be used for when new mail is sent to the mailbox by the delivery module, it will be described new
The module that is locally stored that mail is sent to the mailing system is stored.
The new mail arrival notice device can be desktop PC, notebook, palm PC and cloud server
Equal computing devices.The new mail arrival notice device may include, but be not limited only to, processor, memory.People in the art
Member is appreciated that the schematic diagram 3 is only the example of new mail arrival notice device, does not constitute to new mail arrival notice
The restriction set may include components more more or fewer than diagram, either combine certain components or different components, such as
The new mail arrival notice device can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre of the new mail arrival notice device, entirely new using various interfaces and connection
The various pieces of e-mail arrival notice device.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of new mail arrival notice device.The memory can include mainly storing program area and storage data field, wherein
Storing program area can storage program area, (for example sound-playing function, image play the application program needed at least one function
Function etc.) etc.;Storage data field can be stored uses created data (such as audio data, phone directory etc.) according to mobile phone
Deng.Can also include nonvolatile memory in addition, memory may include high-speed random access memory, such as hard disk, interior
It deposits, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card,
Flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if the new mail arrival notice device it is integrated module/unit it is real in the form of SFU software functional unit
Now and when sold or used as an independent product, it can be stored in a computer read/write memory medium.Based in this way
Understanding, the present invention realize above-described embodiment method in all or part of flow, can also be instructed by computer program
Relevant hardware is completed, and the computer program can be stored in a computer readable storage medium, the computer program
When being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer
Program code, the computer program code can be source code form, object identification code form, executable file or certain centres
Form etc..The computer-readable medium may include:Can carry the computer program code any entity or device,
Recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software
Distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according to making laws in jurisdiction
Requirement with patent practice carries out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer
Readable medium does not include electric carrier signal and telecommunication signal.
Compared with the existing technology, a kind of advantageous effect of new mail arrival notice method provided in an embodiment of the present invention exists
In:The new mail arrival notice method includes the logging request inputted in response to terminating subscriber, and browser logs in mailing system
Described in the corresponding mailbox of logging request;The full-duplex communication for establishing the browser and the server of the mailing system connects
It connects;In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module, and described in extraction
The Mail Contents of new mail generate message body;Wherein, the Mail Contents include addresser, theme and file;The throwing
It passs module and the message body is sent to the server;The message body is pushed to the browser by the server, with
So that the message body is pushed to user by the browser.Active push new mail can be realized by above method server
For message to browser, after browser is disconnected with the server, server can also release immediately resource, improve mail
The resource utilization of system.The embodiment of the present invention also provides a kind of new mail arrival notice system.
It is the preferred embodiment of the present invention above, it is noted that for those skilled in the art,
Various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as this hair
Bright protection domain.
Claims (10)
1. a kind of new mail arrival notice method, which is characterized in that including:
In response to the logging request of terminating subscriber input, browser logs in the corresponding mailbox of logging request described in mailing system;
The browser is established to connect with the full-duplex communication of the server of the mailing system;
In response to transmitting request for sending E-mail input by user, new mail is sent to the mailbox by delivery module, and extracts institute
The Mail Contents for stating new mail generate message body;Wherein, the Mail Contents include addresser, theme and file;
The message body is sent to the server by the delivery module;
The message body is pushed to the browser by the server, so that the message body is pushed to by the browser
User.
2. new mail arrival notice method as described in claim 1, which is characterized in that it is described establish the browser with it is described
The full-duplex communication of the server of mailing system connects, and specifically includes:
According to websocket protocol, establishes the browser and connect with the full-duplex communication of the server of the mailing system.
3. new mail arrival notice method as claimed in claim 2, which is characterized in that the new mail arrival notice method is also
Including:
After establishing the browser and being connect with the full-duplex communication of the server of the mailing system, the browser is to described
Server subscribes to new mail and reaches theme;Wherein, the new mail reaches theme and is connect with the webosocket of the browser
End has unique communication relationship;
Wherein, the message body is sent to the server by the delivery module, is specifically included:
The message body is sent to the corresponding new mail of mailbox described in the server and reaches theme by the delivery module;
The message body is pushed to the browser by the server, so that the message body is pushed to by the browser
User specifically includes:
The whois lookup connecting pins webosocket corresponding with new mail arrival theme, and the message body is sent out
The connecting pins webosocket are sent to, so that the message body is pushed to corresponding with the connecting pins webosocket
Browser.
4. new mail arrival notice method as claimed in claim 3, which is characterized in that the server pushes away the message body
It is sent to the browser, so that the message body is pushed to user, further includes:
The browser extracts the Mail Contents of the message body and generates prompt message;Wherein, the prompt message includes hair
Believe people, theme and file;
The prompt message is pushed to the current display page of the browser, so that the prompt message is pushed to use
Family.
5. new mail arrival notice method as described in claim 1, which is characterized in that the new mail arrival notice method is also
Including:
When new mail is sent to the mailbox by the delivery module, the new mail is sent to the sheet of the mailing system
Ground memory module is stored.
6. a kind of new mail arrival notice system, which is characterized in that including:
It is corresponding to log in logging request described in mailing system for browser, the logging request for being inputted in response to terminating subscriber
Mailbox;
The browser, is additionally operable to establish the browser and is connect with the full-duplex communication of the server of the mailing system;
Delivery module, in response to transmitting request for sending E-mail input by user, new mail being sent to the mailbox, and carry
The Mail Contents of the new mail are taken to generate message body;Wherein, the Mail Contents include addresser, theme and file;
The delivery module is additionally operable to the message body being sent to the server;
The server, for the message body to be pushed to the browser, so that the browser is by the message body
It is pushed to user.
7. new mail arrival notice system as claimed in claim 6, which is characterized in that the browser includes that communication connection is built
Formwork erection block, the communication connection establish module for according to websocket protocol, establishing the browser and the mailing system
Server full-duplex communication connection.
8. new mail arrival notice system as claimed in claim 7, which is characterized in that the browser further includes that theme is subscribed to
Module, after establishing the browser and being connect with the full-duplex communication of the server of the mailing system, the master of the browser
Subscribing module is inscribed, theme is reached for subscribing to new mail to the server;Wherein, the new mail reach theme with it is described clear
Look at device the connecting pins webosocket have unique communication relationship;
Wherein, the delivery module includes first message sending module, and the first message sending module is used for the message
Body is sent to the corresponding new mail of mailbox described in the server and reaches theme;
The server includes second message sending module, and the second message sending module is arrived for searching with the new mail
The connecting pins webosocket are sent to up to the corresponding connecting pins webosocket of theme, and by the message body, so that
The message body is pushed to browser corresponding with the connecting pins webosocket.
9. new mail arrival notice system as claimed in claim 6, which is characterized in that the browser includes that prompt message carries
Modulus block and prompt message pushing module,
The prompt message extraction module of the browser, Mail Contents for extracting the message body simultaneously generate prompt message;
Wherein, the prompt message includes addresser, theme and file;
The prompt message pushing module of the browser, the current display for the prompt message to be pushed to the browser
The page, so that the prompt message is pushed to user.
10. a kind of new mail arrival notice device, which is characterized in that including processor, memory and be stored in the storage
In device and it is configured as the computer program executed by the processor, it is real when the processor executes the computer program
The now new mail arrival notice method as described in claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810054979.9A CN108322385A (en) | 2018-01-19 | 2018-01-19 | A kind of new mail arrival notice method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810054979.9A CN108322385A (en) | 2018-01-19 | 2018-01-19 | A kind of new mail arrival notice method, system and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108322385A true CN108322385A (en) | 2018-07-24 |
Family
ID=62887096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810054979.9A Pending CN108322385A (en) | 2018-01-19 | 2018-01-19 | A kind of new mail arrival notice method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108322385A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026628A (en) * | 2007-01-11 | 2007-08-29 | 华为技术有限公司 | Metod and system for transmitting message for obtaining mail, and mail proxy server |
CN101039283A (en) * | 2006-03-14 | 2007-09-19 | 腾讯科技(深圳)有限公司 | Method for processing e-mail |
CN101394365A (en) * | 2007-09-17 | 2009-03-25 | 上海华为技术有限公司 | A message association method, user terminal and server |
CN101674266A (en) * | 2009-10-22 | 2010-03-17 | 中国电信股份有限公司 | Mail synchronization method and device based on mailbox active notification |
US8463848B2 (en) * | 2009-07-15 | 2013-06-11 | Hippocrene Llc | System and method of transmitting data over a computer network including for presentations over multiple channels in parallel |
CN103401942A (en) * | 2013-08-12 | 2013-11-20 | 网宿科技股份有限公司 | Method and system for achieving web application acceleration of content distribution network node |
CN103685269A (en) * | 2013-12-12 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for both-way communication between web browser and server |
CN104660486A (en) * | 2013-11-22 | 2015-05-27 | 华为技术有限公司 | Mail pushing method, mobile terminal and gateway |
CN106973076A (en) * | 2016-10-26 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of information synchronization method and device |
CN107370663A (en) * | 2017-07-03 | 2017-11-21 | 中国南方电网有限责任公司 | A kind of browser instant messaging services distributed deployment method |
US20180007061A1 (en) * | 2012-07-16 | 2018-01-04 | Mcafee, Inc. | Cloud email message scanning with local policy application in a network environment |
-
2018
- 2018-01-19 CN CN201810054979.9A patent/CN108322385A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039283A (en) * | 2006-03-14 | 2007-09-19 | 腾讯科技(深圳)有限公司 | Method for processing e-mail |
CN101026628A (en) * | 2007-01-11 | 2007-08-29 | 华为技术有限公司 | Metod and system for transmitting message for obtaining mail, and mail proxy server |
CN101394365A (en) * | 2007-09-17 | 2009-03-25 | 上海华为技术有限公司 | A message association method, user terminal and server |
US8463848B2 (en) * | 2009-07-15 | 2013-06-11 | Hippocrene Llc | System and method of transmitting data over a computer network including for presentations over multiple channels in parallel |
CN101674266A (en) * | 2009-10-22 | 2010-03-17 | 中国电信股份有限公司 | Mail synchronization method and device based on mailbox active notification |
US20180007061A1 (en) * | 2012-07-16 | 2018-01-04 | Mcafee, Inc. | Cloud email message scanning with local policy application in a network environment |
CN103401942A (en) * | 2013-08-12 | 2013-11-20 | 网宿科技股份有限公司 | Method and system for achieving web application acceleration of content distribution network node |
CN104660486A (en) * | 2013-11-22 | 2015-05-27 | 华为技术有限公司 | Mail pushing method, mobile terminal and gateway |
CN103685269A (en) * | 2013-12-12 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for both-way communication between web browser and server |
CN106973076A (en) * | 2016-10-26 | 2017-07-21 | 阿里巴巴集团控股有限公司 | A kind of information synchronization method and device |
CN107370663A (en) * | 2017-07-03 | 2017-11-21 | 中国南方电网有限责任公司 | A kind of browser instant messaging services distributed deployment method |
Non-Patent Citations (1)
Title |
---|
廖清平: "《基于Web的服务器的Push技术研究和应用》", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1711784B (en) | System and method for sending SMS and text messages | |
EP1469436A3 (en) | Remote authentication of gaming software in a gaming system environment | |
EP1956778A2 (en) | Method and system for reducing the proliferation of electronic messages | |
CN106331276B (en) | Device and method for sending electronic business card through Bluetooth headset | |
CN109087194A (en) | Invoice checking method, device, computer equipment and storage medium | |
CN104010068A (en) | Text message processing method and device for mobile terminal | |
CN107395495A (en) | The instant communicating system and method that a kind of power industry intranet and extranet interconnect | |
EP3105891A1 (en) | Instant messaging with non subscriber users | |
CN111277483B (en) | Multi-terminal message synchronization method, server and storage medium | |
CN108235293A (en) | Business card interaction method and device and intelligent terminal | |
CN110519151A (en) | Controllable good friend's adding method, device, terminal device and storage medium | |
CN108055653A (en) | cloud broadcasting method and system | |
CN101510895A (en) | System and method for managing mobile address book based on internet | |
CN109766315A (en) | Document presentation method and terminal, computer storage medium, computer equipment | |
EP1988671A1 (en) | Spam short message blocking system using a call back short message and a method thereof | |
CN114095463B (en) | Data processing methods, devices, equipment and media based on instant messaging | |
CN106921557A (en) | A kind of e-mail sending method and equipment | |
CN113449829A (en) | Data transmission method based on optical character recognition technology and related device | |
CN102300181B (en) | Mobile phone instant information transceiver system based on data communication mode and method thereof | |
CN108322385A (en) | A kind of new mail arrival notice method, system and device | |
CN112929257A (en) | Multi-scenario message sending method, device, server and storage medium | |
CN107730380B (en) | Method, system and server for processing joint account | |
CN101184262A (en) | Mobile message receive and reject method using mobile message receive system | |
CN116055403A (en) | Message data transmission method, device and server | |
CN202841524U (en) | Mobile phone instant information receiving and sending system based on data communication mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180724 |
|
RJ01 | Rejection of invention patent application after publication |