CN108055346B - Method for optimizing mail terminal link - Google Patents
Method for optimizing mail terminal link Download PDFInfo
- Publication number
- CN108055346B CN108055346B CN201711436081.XA CN201711436081A CN108055346B CN 108055346 B CN108055346 B CN 108055346B CN 201711436081 A CN201711436081 A CN 201711436081A CN 108055346 B CN108055346 B CN 108055346B
- Authority
- CN
- China
- Prior art keywords
- user
- terminal
- connection
- new
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 229920006395 saturated elastomer Polymers 0.000 claims description 16
- 238000003780 insertion Methods 0.000 claims description 4
- 230000001934 delay Effects 0.000 abstract description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
Images
Classifications
-
- 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/143—Termination or inactivation of sessions, e.g. event-controlled end of session
-
- 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/42—Mailbox-related aspects, e.g. synchronisation of mailboxes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method for optimizing mail terminal link includes authenticating terminal to mail server by IMAP/POP protocol port, judging whether account number of terminal is legal user by mail server, judging state of connected user if it is legal user, interrupting user not needing service, delaying connection later, finally sending mail attributed to account number authenticated by terminal to terminal by mail server. The invention judges the state of the connected user, interrupts the client which does not need service, delays the connection of the client which does not need service, and relieves the pressure of the mail server.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method for optimizing mail terminal link.
Background
Mail systems are becoming more and more important in everyday work, and employees in a business may use a variety of terminals (e.g., laptop, cell phone, tablet, etc.) to link to a mail server. With the increase of terminal devices, the load of the mail system and the reduction of the services provided by the mail system are very obvious under the condition of small user quantity or low hardware resources of the mail server.
The terminal is connected to the mail server, but does not receive the mail, namely, the long connection occupies the mail connection/service resource, so other normal users are extruded out of the mail system, the service cannot be used, a person who urgently needs to send the mail needs to wait for the time-out release of the invalid and useless connection, and then the person can be connected to the mail server.
Disclosure of Invention
The invention aims to provide a method for optimizing mail terminal link, which interrupts clients which do not need service by adding state judgment of a connected user, delays the connection of the clients which do not need service and relieves the pressure of a mail server.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for optimizing mail terminal link includes authenticating terminal to mail server by IMAP/POP protocol port, judging whether account number of terminal is legal user by mail server, judging state of connected user if it is legal user, interrupting user not needing service, delaying connection later, finally sending mail attributed to account number authenticated by terminal to terminal by mail server.
Preferably, the operation of judging the status of the connected user comprises the judgment of the saturation condition of the user link/set of bytes, the judgment of the arrival condition of the new mail of the login account, the check of the long-connected user and the judgment of the arrival condition of the new mail of the long-connected user.
Preferably, the method comprises a process for judging the saturation condition of the user link/set of bytes:
the mail server first judges whether the user link/set of bytes is saturated, and if not, the mail server directly allows new connection and provides normal service for receiving mails.
Preferably, the method comprises a judgment process of the arrival condition of the new mail of the login account:
if the user link/set byte is saturated, then judging whether the account number needing logging in by the terminal has a new mail in the mail system, if not, the mail server does not provide a priority queue-insertion service, and the user tries to log in and connect by himself.
Preferably, the method comprises the following steps of checking the long-connection user and judging the arrival condition of the new mail of the long-connection user:
if the account number needing to be logged in by the terminal has a new mail in the mail system, checking the connected user, judging whether the connected user belongs to a long connection user, if so, then judging whether the new mail is received, and if not, continuing to provide service for the long-connection online user in the process of receiving the mail without changing the connection; if the new mail is received, the user who has no new mail and is connected for a long time within the set period threshold value is interrupted.
Preferably, when the long connection interruption operation is performed, if the user connection is saturated, the access connection delaying the interrupted user account within the set cycle threshold is started; and returning to the judgment step of the saturation condition of the user link/set of bytes when the user link is not saturated.
Drawings
FIG. 1 is a flow chart of the optimized automatic reply mail of the present invention.
Wherein: mail server 1, terminal 2.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
The method for optimizing the link of the mail terminal comprises a mail server 1 and a terminal 2, wherein the terminal 2 authenticates the mail server 1 through an IMAP/POP protocol port, the mail server 1 judges whether an account number of the terminal 2 is a legal user, if the account number is the legal user, the state of a connected user is judged, the users which do not need service are interrupted, the connection is delayed and carried out later, and finally the mail server 1 sends a mail to which the authenticated account number of the terminal 2 belongs to the terminal 2.
Preferably, the operation of judging the status of the connected user comprises the judgment of the saturation condition of the user link/set of bytes, the judgment of the arrival condition of the new mail of the login account, the check of the long-connected user and the judgment of the arrival condition of the new mail of the long-connected user.
Preferably, the method comprises a process for judging the saturation condition of the user link/set of bytes:
the mail server 1 first determines whether the user link/set of bytes is saturated, and if not, the mail server 1 directly allows a new connection and provides a normal service of receiving mail.
Preferably, the method comprises a judgment process of the arrival condition of the new mail of the login account:
if the user link/set byte is saturated, then judging whether the account number needing to be logged in by the terminal 2 has a new mail in the mail system, if not, the mail server 1 does not provide a priority queue insertion service, and the user tries to log in and connect by himself.
Preferably, the method comprises the following steps of checking the long-connection user and judging the arrival condition of the new mail of the long-connection user:
if the account number which the terminal 2 needs to log in has a new mail in the mail system, checking the connected user, judging whether the connected user belongs to a long connection user, if so, then judging whether the new mail is received, if not, continuously providing service for the long-connection online user in the mail receiving process without changing the connection; if the new mail is received, the user who has no new mail and is connected for a long time within the set period threshold value is interrupted.
A method for optimizing mail terminal link includes carrying out authentication on terminal 2 to mail server 1 by mail server 1 and terminal 2, judging whether account number of terminal 2 is legal user by mail server 1, judging state of connected user if it is legal user, interrupting user not needing service, delaying connection later, finally sending mail attributed to account number authenticated by terminal 2 to terminal 2 by mail server 1.
Preferably, the operation of judging the status of the connected user comprises the judgment of the saturation condition of the user link/set of bytes, the judgment of the arrival condition of the new mail of the login account, the check of the long-connected user and the judgment of the arrival condition of the new mail of the long-connected user.
Preferably, the method comprises a process for judging the saturation condition of the user link/set of bytes:
the mail server 1 first determines whether the user link/set of bytes is saturated, and if not, the mail server 1 directly allows a new connection and provides a normal service of receiving mail.
Preferably, the method comprises a judgment process of the arrival condition of the new mail of the login account:
if the user link/set byte is saturated, then judging whether the account number needing to be logged in by the terminal 2 has a new mail in the mail system, if not, the mail server 1 does not provide a priority queue insertion service, and the user tries to log in and connect by himself.
Preferably, the method comprises the following steps of checking the long-connection user and judging the arrival condition of the new mail of the long-connection user:
if the account number which the terminal 2 needs to log in has a new mail in the mail system, checking the connected user, judging whether the connected user belongs to a long connection user, if so, then judging whether the new mail is received, if not, continuously providing service for the long-connection online user in the mail receiving process without changing the connection; if the new mail is received, the user who has no new mail and is connected for a long time within the set period threshold value is interrupted.
Preferably, when the long connection interruption operation is performed, if the user connection is saturated, the access connection delaying the interrupted user account within the set cycle threshold is started; and returning to the judgment step of the saturation condition of the user link/set of bytes when the user link is not saturated.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.
Claims (6)
1. A method for optimizing mail terminal link includes mail server and terminal, and is characterized by: the terminal authenticates to the mail server through an IMAP/POP protocol port, the mail server judges whether the account number of the terminal is a legal user or not, if so, then the status of the connected legitimate user is determined, including determining whether the user link/set of bytes is saturated, if the account is saturated, then judging whether the account which the terminal needs to log in has a new mail in the mail system, if so, checking the connected users, judging whether the connected users belong to long connection users, if so, then judging whether new mails are received, if not, interrupting the long connection operation for the users who have no new mails and are connected for a long time within a set period threshold, and interrupting users without service, delaying the connection later, and finally sending the mail to which the account authenticated by the terminal belongs by the mail server.
2. The method of claim 1, wherein the method further comprises the steps of:
the operation of judging the state of the connected user comprises the judgment of the saturation condition of a user link/set of bytes, the judgment of the arrival condition of a new mail of a login account, the check of a long-connected user and the judgment of the arrival condition of the new mail of the long-connected user.
3. A method for optimizing mail terminal links according to claim 2, characterized in that:
the method comprises a process for judging the saturation condition of the user link/set of bytes:
the mail server first judges whether the user link/set of bytes is saturated, and if not, the mail server directly allows new connection and provides normal service for receiving mails.
4. A method for optimizing mail terminal links according to claim 2, characterized in that:
the method comprises a judgment process of the arrival condition of the new mail of the account number which needs to be logged in by the terminal:
if the user link/set byte is saturated, then judging whether the account number needing logging in by the terminal has a new mail in the mail system, if not, the mail server does not provide a priority queue-insertion service, and the user tries to log in and connect by himself.
5. A method for optimizing mail terminal links according to claim 2, characterized in that:
the method comprises the following steps of checking the long connection user and judging the arrival condition of the new mail of the long connection user:
if the account number needing to be logged in by the terminal has a new mail in the mail system, checking the connected user, judging whether the connected user belongs to a long connection user, if so, then judging whether the new mail is received, and if so, continuing to provide service for the long-connection online user in the process of receiving the mail without changing the connection; and if no new mail is received, interrupting the long connection operation for the user who has no new mail and is connected for a long time within the set cycle threshold.
6. The method of claim 5, wherein the method further comprises:
when the interruption long connection operation is carried out, under the condition that the user connection is saturated, starting the access connection of the user account with the interruption delay within a set period threshold; and returning to the judgment step of the saturation condition of the user link/set of bytes when the user link is not saturated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711436081.XA CN108055346B (en) | 2017-12-26 | 2017-12-26 | Method for optimizing mail terminal link |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711436081.XA CN108055346B (en) | 2017-12-26 | 2017-12-26 | Method for optimizing mail terminal link |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108055346A CN108055346A (en) | 2018-05-18 |
CN108055346B true CN108055346B (en) | 2020-12-22 |
Family
ID=62128090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711436081.XA Active CN108055346B (en) | 2017-12-26 | 2017-12-26 | Method for optimizing mail terminal link |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055346B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003078652A (en) * | 2001-09-04 | 2003-03-14 | Sharp Corp | Electronic mail confirmation system, electronic mail system adopting the electronic mail confirmation system, communication terminal, internet access device, and server device for electronic mail |
CN1527539A (en) * | 2003-03-03 | 2004-09-08 | �ձ�������ʽ���� | Long-distance switching-in server with quantity of logic chain-circuit source greater than physical chain-circuit source |
CN1930545A (en) * | 2003-10-20 | 2007-03-14 | 特里诺尔公司 | Backward and forward non-normalized link weight analysis method, system, and computer program product |
US7398297B2 (en) * | 2001-01-10 | 2008-07-08 | Panasonic Communications Co., Ltd. | Email receiver and method of receiving email |
CN101252499A (en) * | 2008-03-28 | 2008-08-27 | 程凯征 | Mail server dynamic state polling method for checking whether mail server has new mail arrive or not |
CN101754112A (en) * | 2008-12-05 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for processing mobile electronic mail service |
CN102546538A (en) * | 2010-12-15 | 2012-07-04 | 中兴通讯股份有限公司 | Business continuity implementation method and business continuity implementation system |
CN102932444A (en) * | 2012-10-29 | 2013-02-13 | 上海银商资讯有限公司 | Load balancing module in financial real-time trading system |
CN104253739A (en) * | 2013-06-28 | 2014-12-31 | 中国移动通信集团公司 | Implementing method, system and device of always online services |
JP2015111329A (en) * | 2013-11-06 | 2015-06-18 | 株式会社あいびし | Network service providing system, network service providing method, and program |
CN107104889A (en) * | 2017-07-06 | 2017-08-29 | 青岛海信移动通信技术股份有限公司 | A kind of rough draft mail synchronization method, device and terminal based on IMAP protocol |
CN107135279A (en) * | 2017-07-07 | 2017-09-05 | 网宿科技股份有限公司 | It is a kind of to handle the method and apparatus that request is set up in long connection |
-
2017
- 2017-12-26 CN CN201711436081.XA patent/CN108055346B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7398297B2 (en) * | 2001-01-10 | 2008-07-08 | Panasonic Communications Co., Ltd. | Email receiver and method of receiving email |
JP2003078652A (en) * | 2001-09-04 | 2003-03-14 | Sharp Corp | Electronic mail confirmation system, electronic mail system adopting the electronic mail confirmation system, communication terminal, internet access device, and server device for electronic mail |
CN1527539A (en) * | 2003-03-03 | 2004-09-08 | �ձ�������ʽ���� | Long-distance switching-in server with quantity of logic chain-circuit source greater than physical chain-circuit source |
CN1930545A (en) * | 2003-10-20 | 2007-03-14 | 特里诺尔公司 | Backward and forward non-normalized link weight analysis method, system, and computer program product |
CN101252499A (en) * | 2008-03-28 | 2008-08-27 | 程凯征 | Mail server dynamic state polling method for checking whether mail server has new mail arrive or not |
CN101754112A (en) * | 2008-12-05 | 2010-06-23 | 中兴通讯股份有限公司 | Method and device for processing mobile electronic mail service |
CN102546538A (en) * | 2010-12-15 | 2012-07-04 | 中兴通讯股份有限公司 | Business continuity implementation method and business continuity implementation system |
CN102932444A (en) * | 2012-10-29 | 2013-02-13 | 上海银商资讯有限公司 | Load balancing module in financial real-time trading system |
CN104253739A (en) * | 2013-06-28 | 2014-12-31 | 中国移动通信集团公司 | Implementing method, system and device of always online services |
JP2015111329A (en) * | 2013-11-06 | 2015-06-18 | 株式会社あいびし | Network service providing system, network service providing method, and program |
CN107104889A (en) * | 2017-07-06 | 2017-08-29 | 青岛海信移动通信技术股份有限公司 | A kind of rough draft mail synchronization method, device and terminal based on IMAP protocol |
CN107135279A (en) * | 2017-07-07 | 2017-09-05 | 网宿科技股份有限公司 | It is a kind of to handle the method and apparatus that request is set up in long connection |
Non-Patent Citations (1)
Title |
---|
"电子邮件推送业务的研究和设计";王曼莉;《中国优秀硕士学位论文全文数据库》;20100331;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN108055346A (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2882233B1 (en) | Service agent method, modem, and terminal | |
US5870540A (en) | Low overhead method for detecting communication failures on a network | |
US9197678B2 (en) | Method and system for data transmission | |
WO2014110820A1 (en) | Notification push method, device, and system | |
RU2005120667A (en) | INFRASTRUCTURE TO ENSURE ANTI-SPAM TECHNOLOGY INTEGRATION | |
CN104348811A (en) | Method and device for detecting attack of DDoS (distributed denial of service) | |
KR102208935B1 (en) | Messaging api over http protocol to establish context for data exchange | |
CN101252499A (en) | Mail server dynamic state polling method for checking whether mail server has new mail arrive or not | |
WO2013078823A1 (en) | Method and device for sending instant message | |
CN107872396B (en) | Communication method with timeout control, processing device, terminal device and server | |
CN107360239A (en) | A kind of client connection status detection method and system | |
CN104486243A (en) | Data transmission method, equipment and system | |
CN103036885B (en) | Sip server overload protective device and method | |
CN111541555A (en) | Group chat optimization method and related product | |
US10135939B2 (en) | Method and apparatus for sending delivery notification of network application-related product | |
WO2019047345A1 (en) | Method of generating one-time password sending policy, and one-time password sending method | |
CN108055346B (en) | Method for optimizing mail terminal link | |
CN101754112A (en) | Method and device for processing mobile electronic mail service | |
CN107211274A (en) | A kind of equipment correlating method and relevant device | |
CN101436953B (en) | Management method and processing module for on-line announcement message of network appliance | |
CN116860466A (en) | Asynchronous communication to synchronous communication method based on MQTT | |
CN104348780A (en) | Login method and system thereof | |
CN103581131A (en) | Method for processing automatic repeated logins in mobile environment | |
CN115361455A (en) | Data transmission and storage method and device and computer equipment | |
CN111200583A (en) | Crank call processing method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240108 Address after: Room 202, 2nd floor, building 1, No.24, Donger Road, Dongzhen, Torch Development Zone, Zhongshan City, Guangdong Province, 528400 Patentee after: Guangdong Zhijiang Network Co.,Ltd. Address before: 528000 7-8 / F, Dongjiang International District a office building, 121 Lingnan Avenue North, Chancheng District, Foshan City, Guangdong Province Patentee before: GUANGDONG EFLYCLOUD COMPUTING Co.,Ltd. |
|
TR01 | Transfer of patent right |