CN107689908A - The acquisition methods and device of a kind of configuration information - Google Patents
The acquisition methods and device of a kind of configuration information Download PDFInfo
- Publication number
- CN107689908A CN107689908A CN201610626245.4A CN201610626245A CN107689908A CN 107689908 A CN107689908 A CN 107689908A CN 201610626245 A CN201610626245 A CN 201610626245A CN 107689908 A CN107689908 A CN 107689908A
- Authority
- CN
- China
- Prior art keywords
- configuration information
- domain name
- found
- connection
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
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/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- 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/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of acquisition methods of configuration information and device, this method includes:Mailbox domain name is determined according to the addresses of items of mail that user inputs;Search configuration information corresponding to the mailbox domain name;When not finding the configuration information, configuration information corresponding to the mailbox domain name of user's input is obtained;Connection is established according to configuration information mail server corresponding with the mailbox domain name;When according to the configuration information and the mail server successful connection, configuration information corresponding to the mailbox domain name of user's input is preserved, and the configuration information is sent to far-end server and preserved.
Description
Technical Field
The present invention relates to an email technology in the field of data communication, and in particular, to a method and an apparatus for acquiring configuration information.
Background
Electronic Mail (E-Mail) is a communication method based on electronic information exchange, and is widely used in daily offices and lives because of its convenience, rapidness, and low cost.
The electronic mail system mainly comprises a mail server and a mail client, wherein the mail server is responsible for sending and receiving mails; the user establishes connection with the mail server through a mail client installed on a Personal Computer (PC) or a mobile terminal, and can send and receive electronic mails on the PC or the mobile terminal.
When a connection is established between a mail client and a mail server, configuration information such as an address, a port number, a mail protocol, a security type, and the like of the mail server needs to be configured in the mail client, and in the existing configuration information acquisition method, the following two methods are generally adopted to acquire configuration information corresponding to a mailbox domain name:
1) and acquiring configuration information corresponding to a pre-stored mailbox domain name in the mail client based on the configuration information statically stored in the mail client. For example, when a user logs in an easy-to-net mailbox through a mail client, configuration information corresponding to the domain name of the easy-to-net mailbox can be acquired from the mail client, and connection is established between the configuration information found in the mail client and a mail server corresponding to the domain name of the easy-to-net mailbox; when a user logs in the Gmail box through the mail client, the configuration information corresponding to the Gmail box domain name can be obtained from the mail client, and the connection with the mail server corresponding to the Gmail box domain name is established according to the configuration information searched in the mail client. The configuration information refers to public information required by the connection between the mail client and the mail server. For example, the configuration information may include: the address and port number of the mail server, and the security type and mail protocol of the connection between the mail client and the mail server.
2) Acquiring configuration information corresponding to the mail address in the remote server based on the configuration information dynamically stored in the remote server, wherein the configuration information comprises: public configuration information and personal configuration information. For example, when a user logs in an internet mailbox through a mail client, configuration information corresponding to a mail address can be searched in a remote server; when the mailbox information corresponding to the mail address is not found in the remote server, the configuration information corresponding to the mail address input by the user can be obtained, the connection is established between the mailbox information input by the user and the mail server corresponding to the network easy mailbox domain name, and when the connection between the configuration information corresponding to the mail address input by the user and the mail server is successful, the configuration information corresponding to the mail address input by the user is stored in the remote server; and when the configuration information corresponding to the mail address is found in the remote server, establishing connection with the mail server according to the configuration information found in the remote server. It should be noted that, in the method for dynamically storing configuration information by a remote server, the public configuration information and the personal configuration information in the configuration information are stored in the remote server in a packaged manner, that is, one configuration information in the remote server can only correspond to one mailbox address, but cannot correspond to one mailbox domain name.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the above-mentioned existing method for acquiring configuration information, the configuration information corresponding to the mailbox domain name may be statically stored in the mail client, or the configuration information corresponding to the mail address may be dynamically stored in the remote server; however, whether the configuration information is statically stored at the mail client or dynamically stored at the remote server, it is impossible for both the mail client and the remote server to store the configuration information for all of the mail servers, and the number of mail servers may be increasing. Therefore, by adopting the existing method for acquiring the configuration information, when the configuration information corresponding to the mailbox domain name is not found in the mail client, the user is required to input the configuration information corresponding to the mailbox domain name; when the configuration information corresponding to the mail address is not found in the remote server, the user is required to input the configuration information corresponding to the mail address; moreover, when the mail client establishes connection with the mail server corresponding to the mailbox domain again, the user is required to input the configuration information again, so that the user is very inconvenient to log in the electronic mailbox, and the user experience is very poor.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for acquiring configuration information, which can effectively prevent a user from repeatedly inputting configuration information in a mail client, facilitate the user to log in an email box, and improve user experience.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for acquiring configuration information, which comprises the following steps:
determining a mailbox domain name according to a mail address input by a user;
searching configuration information corresponding to the mailbox domain name;
when the configuration information is not found, acquiring the configuration information corresponding to the mailbox domain name input by the user;
establishing connection with a mail server corresponding to the mailbox domain name according to the configuration information;
and when the connection with the mail server is successful according to the configuration information, storing the configuration information corresponding to the mailbox domain name input by the user, and sending the configuration information to a remote server for storage.
In the above embodiment, the searching for the configuration information corresponding to the mailbox domain name includes:
searching configuration information corresponding to the mailbox domain name in configuration information pre-stored by a mail client;
and when the configuration information is not found in the mail client, searching the configuration information in the configuration information pre-stored in the remote server.
In the above embodiment, the method further comprises:
when the configuration information is found in the mail client, establishing connection with the mail server according to the configuration information found in the mail client;
and when the connection with the mail server fails according to the configuration information searched in the mail client, searching the configuration information in the configuration information prestored in the remote server.
In the above embodiment, the method further comprises:
when the configuration information is found in the remote server, establishing connection with the mail server according to the configuration information found in the remote server;
and when the connection with the mail server fails according to the configuration information searched in the remote server, acquiring the configuration information corresponding to the mailbox domain name input by the user.
In the above embodiment, the method further comprises:
and when the connection with the mail server is successful according to the configuration information searched in the remote server, storing the configuration information searched in the remote server.
The embodiment of the invention also provides a device for acquiring the configuration information, which comprises: the device comprises a determining unit, a searching unit, an acquiring unit, a connecting unit and a storing unit; wherein,
the determining unit is used for determining a mailbox domain name according to the mail address input by the user and informing the searching unit of the mailbox domain name;
the searching unit is used for searching the configuration information corresponding to the mailbox domain name; when the configuration information is not found, sending an acquisition instruction to the acquisition unit;
the obtaining unit is configured to obtain the configuration information corresponding to the mailbox domain name input by the user after receiving the obtaining instruction, and send the configuration information corresponding to the mailbox domain name input by the user to the connecting unit;
the connection unit is used for establishing connection with a mail server corresponding to the mailbox domain name according to the configuration information, and sending the configuration information to the storage unit when the connection with the mail server is successful according to the configuration information;
the storage unit is used for storing the configuration information corresponding to the mailbox domain name input by the user and sending the configuration information to a remote server for storage.
In the above embodiment, the searching unit is specifically configured to search the configuration information corresponding to the mailbox domain name in the configuration information pre-stored in the mail client; and when the configuration information is not found in the mail client, searching the configuration information in the configuration information pre-stored in the remote server.
In the above embodiment, the searching unit is further configured to send the configuration information found in the mail client to the connecting unit when the configuration information is found in the mail client;
the connection unit is specifically configured to establish connection with the mail server according to the configuration information found in the mail client; when the connection with the mail server fails according to the configuration information searched in the mail client, sending a search instruction to the search unit;
the searching unit is further configured to search the configuration information in the configuration information pre-stored in the remote server after receiving the search instruction.
In the above embodiment, the searching unit is further configured to send the configuration information found in the remote server to the connecting unit when the configuration information is found in the remote server;
the connection unit is further configured to establish connection with the mail server according to the configuration information found in the remote server; when the connection with the mail server fails according to the configuration information searched in the remote server, sending the acquisition instruction to the acquisition unit;
the obtaining unit is further configured to obtain, after receiving the obtaining instruction, configuration information corresponding to the mailbox domain name input by the user.
In the above embodiment, the connection unit is further configured to send the configuration information found in the remote server to the storage unit when the connection with the mail server is successful according to the configuration information found in the remote server;
the storage unit is further configured to store the configuration information found in the remote server.
Therefore, in the technical scheme of the embodiment of the invention, the mailbox domain name is determined according to the mail address input by the user, then the configuration information corresponding to the mailbox domain name is searched, when the configuration information is not searched, the configuration information corresponding to the mailbox domain name input by the user can be obtained, then the connection is established with the mail server corresponding to the mailbox domain name according to the configuration information, when the connection with the mail server is successful according to the configuration information, the configuration information corresponding to the mailbox domain name input by the user is stored, and the configuration information is sent to the remote server for storage. That is to say, in the technical solution provided by the present invention, when the configuration information corresponding to the mailbox domain name is not found and the connection with the mail server is successful according to the configuration information corresponding to the mailbox domain name input by the user, the configuration information corresponding to the mailbox domain name input by the user can be stored, and the configuration information is sent to the remote server for storage. Therefore, when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the configuration information corresponding to the mailbox domain name can be found in the mail client without the need of repeatedly inputting the configuration information by a user. Unlike the prior art, the embodiment of the invention does not store the configuration information corresponding to the mailbox domain name input by the user at the mail client, but only the configuration information corresponding to the mail address is stored at the remote server, and when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the user needs to input the configuration information again.
Further, in the technical solution of the embodiment of the present application, after the configuration information corresponding to the mailbox domain name input by the user is stored in the mail client, the configuration information is sent to the remote server for storage, so that the remote server can more comprehensively obtain the configuration information corresponding to different mailbox domain names, and the requirement of obtaining the configuration information by more users can be met by sending the configuration information to the remote server for storage. Obviously, compared with the prior art, the method and the device for acquiring the configuration information provided by the embodiment of the invention can effectively avoid the repeated input of the configuration information by the user in the mail client, facilitate the user to log in the electronic mailbox and improve the user experience; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Drawings
Fig. 1 is a schematic flow chart of a first implementation of a method for acquiring configuration information according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a second implementation of the method for acquiring configuration information according to the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a configuration information obtaining apparatus according to an embodiment of the present invention.
Detailed Description
In various embodiments of the present invention, fig. 1 is a schematic flowchart of a first implementation flow of a method for acquiring configuration information in an embodiment of the present invention, and as shown in fig. 1, the method for acquiring configuration information may include the following steps:
step 101, determining a mailbox domain name according to a mail address input by a user.
In a specific embodiment of the present invention, the mailbox domain name may be determined according to the mail address input by the user. The mail address is as the letter commonly used by people in real life, and comprises the following components: a recipient address and a sender address. The format of the mail address comprises three parts: the first part is a user name, which represents the account number of the user mailbox, supports the combination of letters, numbers and underlines, and the account number is required to be unique for the same mail server; the second part is the separator "@"; the third part is a mailbox domain name used for marking the position of the mailbox. Such as: com is an email address, the user name of which is "support"; the mailbox domain name is "163. com". Therefore, the mail client can determine the mailbox domain name according to the mail address input by the user.
And 102, searching configuration information corresponding to the mailbox domain name.
In the specific embodiment of the present invention, after determining the mailbox domain name according to the mail address input by the user, configuration information corresponding to the mailbox domain name may be searched in the mail client and the remote server, respectively. Specifically, the configuration information corresponding to the mailbox domain name may be first searched for in the configuration information pre-stored in the mail client; when the configuration information corresponding to the mailbox domain name is not found in the mail client, the configuration information corresponding to the mailbox domain name can be further found in the configuration information pre-stored in the remote server. Wherein the configuration information may include: the address and port number of the mail server, and the security type and mail protocol of the connection between the mail client and the mail server.
And 103, when the configuration information is not found, acquiring the configuration information corresponding to the mailbox domain name input by the user.
In the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is not found in both the mail client and the remote server, it indicates that the mail client has not been connected to the mail server corresponding to the mailbox domain name and has been used successfully, or the configuration information corresponding to the mailbox domain name has changed, and at this time, it is necessary for the user to input the configuration information corresponding to the mailbox domain name in the mail client.
Further, in the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is found in the mail client, a connection may be established with the mail server according to the configuration information found in the mail client; when the connection with the mail server is successful according to the configuration information found in the mail client, the acquisition process of the configuration information can be ended; when the connection with the mail server fails according to the configuration information found in the mail client, the configuration information corresponding to the mailbox domain name can be further found in the configuration information pre-stored in the remote server.
Further, in the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is found in the remote server, a connection may be established with the mail server according to the configuration information found in the remote server; when the connection with the mail server is successful according to the configuration information searched in the remote server, the mail client can store the configuration information searched in the remote server; when the connection with the mail server fails according to the configuration information searched in the remote server, the configuration information corresponding to the mailbox domain name input by the user can be acquired.
And step 104, establishing connection with a mail server corresponding to the mailbox domain name according to the configuration information.
In the specific embodiment of the invention, after the configuration information corresponding to the mailbox domain name input by the user is acquired in the mail client, the connection can be established with the mail server corresponding to the mailbox domain name according to the configuration information; when the connection with the mail server is successful according to the configuration information, step 104 may be performed; when the connection with the mail server fails according to the configuration information, the acquisition flow of the configuration information may be ended.
And 105, when the connection with the mail server is successful according to the configuration information, storing the configuration information corresponding to the mailbox domain name input by the user, and sending the configuration information to the remote server for storage.
In the specific embodiment of the invention, when the connection with the mail server is successful according to the configuration information, the configuration information corresponding to the mailbox domain name input by the user can be stored, and the configuration information is sent to the remote server for storage; when the connection with the mail server fails according to the configuration information, the acquisition flow of the configuration information may be ended. That is to say, in the specific embodiment of the present invention, after the configuration information corresponding to the mailbox domain name input by the user is stored in the mail client, the configuration information is also sent to the remote server for storage, so that the remote server can more comprehensively obtain the configuration information corresponding to different mailbox domain names, and the requirement of obtaining the configuration information by more users can be met by sending the configuration information to the remote server for storage.
According to the above analysis, through the steps 101 to 105, when the configuration information corresponding to the mailbox domain name is not found in both the mail client and the mail server, the configuration information corresponding to the mailbox domain name input by the user can be obtained, and when the connection with the mail server according to the configuration information is successful, the configuration information corresponding to the mailbox domain name input by the user can be stored. Therefore, when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the configuration information corresponding to the mailbox domain name can be found in the mail client without repeatedly inputting the configuration information by a user, the user can conveniently log in the electronic mailbox, and the user experience is improved.
Fig. 2 is a schematic flow chart of a second implementation of the method for acquiring configuration information in the embodiment of the present invention, and as shown in fig. 2, the method for acquiring configuration information may include the following steps:
step 201, determining a mailbox domain name according to a mail address input by a user.
In a specific embodiment of the present invention, the mail client may determine the mailbox domain name according to the mail address input by the user. For example, assume that the email address obtained by the email client and input by the user is: support @163.com, in this step, it is possible to determine that the mailbox domain name is "163. com" from the mail address.
Step 202, the configuration information corresponding to the mailbox domain name is searched in the configuration information pre-stored in the mail client.
In the specific embodiment of the present invention, after the mailbox domain name is determined according to the mail address input by the user, the configuration information corresponding to the mailbox domain name may be searched in the configuration information pre-stored by the mail client.
Step 203, judging whether the configuration information corresponding to the mailbox domain name is found in the mail client; when the configuration information corresponding to the mailbox domain name is found in the mail client, executing step 204; when the configuration information corresponding to the mailbox domain name is not found in the mail client, step 206 is executed.
In this step, it may be determined whether the configuration information corresponding to the mailbox domain name is found in the mail client. For example, assume that the email address obtained by the email client and input by the user is: support @163.com, in this step, it can be judged whether the configuration information corresponding to the 163 mailbox domain name can be found in the mail client; when finding 163 the configuration information corresponding to the mailbox domain name in the mail client, executing step 204; when the configuration information corresponding to the mailbox domain name is not found 163 in the mail client, step 206 is executed.
And step 204, establishing connection with the mail server according to the configuration information searched in the mail client.
In this step, when the configuration information corresponding to the mailbox domain name is found in the mail client, a connection may be established with the mail server according to the configuration information found in the mail client. For example, after the configuration information corresponding to the 163 mailbox domain name is found in the mail client, a connection may be established with the mail server according to the configuration information corresponding to the 163 mailbox domain name found in the mail client.
Step 205, judging whether the connection with the mail server is successful according to the configuration information found in the mail client; when the connection between the mail client and the mail server is successful, step 215 is executed; when the connection between the mail client and the mail server fails, step 206 is performed.
In this step, after the connection is established with the mail server according to the configuration information found in the mail client, it can be determined whether the connection between the mail client and the mail server is successful. For example, after the connection is established with the mail server according to the configuration information corresponding to the 163 mailbox domain name found in the mail client, whether the connection between the mail client and the mail server is successful or not can be judged; when the connection between the mail client and the mail server is successful, step 215 is executed; when the connection between the mail client and the mail server fails, step 206 is performed.
Step 206, the configuration information corresponding to the mailbox domain name is searched in the configuration information pre-stored in the remote server.
In the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is not found in the mail client, or when the connection between the mail server and the configuration information found in the mail client fails, the configuration information corresponding to the mailbox domain name may be found in the configuration information pre-stored in the remote server. For example, if the configuration information corresponding to the 163 mailbox domain name is not found in the mail client, or when the connection between the configuration information corresponding to the 163 mailbox domain name found in the mail client and the mail server fails, the configuration information corresponding to the 163 mailbox domain name may be found in the configuration information pre-stored in the remote server.
Step 207, judging whether the configuration information corresponding to the mailbox domain name is found in the remote server; when the configuration information corresponding to the mailbox domain name is found in the remote server, executing step 208; when the configuration information corresponding to the mailbox domain name is not found in the remote server, step 211 is executed.
In the step, it may be determined whether the configuration information corresponding to the mailbox domain name is found in the remote server. For example, it may be determined whether configuration information corresponding to the mailbox domain name is found 163 in the remote server; when the configuration information corresponding to the mailbox domain name is found 163 in the remote server, executing step 208; when the configuration information corresponding to the mailbox domain name is not found 163 in the remote server, step 211 is executed.
And step 208, establishing connection with the mail server according to the configuration information searched in the remote server.
In the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is found in the remote server, a connection may be established with the mail server according to the configuration information found in the remote server. For example, after the configuration information corresponding to the 163 mailbox domain name is found in the remote server, a connection may be established with the mail server according to the configuration information corresponding to the 163 mailbox domain name found in the remote server.
Step 209, judging whether the connection with the mail server is successful according to the configuration information searched in the remote server; when the connection between the mail client and the mail server is successful, executing step 210; when the connection between the mail client and the mail server fails, step 211 is performed.
In the specific embodiment of the present invention, after the connection is established with the mail server according to the configuration information found in the remote server, it may be determined whether the connection between the mail client and the mail server is successful, for example, after the connection is established with the mail server according to the configuration information corresponding to the 163 mailbox domain name found in the remote server, it may be determined whether the connection between the mail client and the mail server is successful; when the connection between the mail client and the mail server is successful, executing step 210; when the connection between the mail client and the mail server fails, step 211 is performed.
Step 210, saving the configuration information found in the remote server in the mail client.
In the specific embodiment of the present invention, when the connection with the mail server is successful according to the configuration information found in the remote server, the configuration information found in the remote server may be saved in the mail client, and the acquisition process of the configuration information is ended. For example, when the connection with the mail server is successful according to the configuration information corresponding to the 163 mailbox domain name found in the remote server, the configuration information corresponding to the 163 mailbox domain name found in the remote server may be saved in the mail client, and the acquisition process of the configuration information is ended.
And step 211, acquiring configuration information corresponding to the mailbox domain name input by the user in the mail client.
In the specific embodiment of the present invention, when the configuration information corresponding to the mailbox domain name is not found in the remote server, or when the connection between the mail server and the configuration information found in the remote server fails, the configuration information corresponding to the mailbox domain name input by the user may be acquired in the mail client. For example, when the configuration information corresponding to the 163 mailbox domain name is not found in the remote server, or when the connection between the configuration information corresponding to the 163 mailbox domain name found in the remote server and the mail server fails, the configuration information corresponding to the 163 mailbox domain name input by the user may be acquired in the mail client.
And step 212, establishing connection with the mail server according to the configuration information corresponding to the mailbox domain name input by the user.
In a specific embodiment of the present invention, after configuration information corresponding to a mailbox domain name input by a user is acquired in a mail client, a connection may be established with a mail server according to the configuration information. For example, after the configuration information corresponding to the 163 mailbox domain name is acquired in the mail client, a connection may be established with the mail server according to the configuration information corresponding to the 163 mailbox domain name input by the user.
Step 213, judging whether the connection with the mail server is successful according to the configuration information; when the connection between the mail client and the mail server is successful, step 214 is executed; when the connection of the mail client to the mail server fails, step 215 is performed.
In this step, after establishing connection with the mail server according to the configuration information corresponding to the mailbox domain name input by the user, whether the connection between the mail client and the mail server is successful can be judged; when the connection between the mail client and the mail server is successful, step 214 is executed; when the connection of the mail client to the mail server fails, step 215 is performed.
And 214, storing the configuration information corresponding to the mailbox domain name input by the user, and sending the configuration information to the remote server for storage.
In the specific embodiment of the invention, when the connection with the mail server is successful according to the configuration information corresponding to the mailbox domain name input by the user, the configuration information corresponding to the mailbox domain name input by the user can be stored, and the configuration information is sent to the remote server for storage.
Step 215, the acquisition flow of the configuration information is ended.
In the specific embodiment of the present invention, when the connection with the mail server is successful according to the configuration information found at the mail client, or when the connection with the mail server is failed according to the configuration information input by the user, the acquisition process of the configuration information may be ended.
According to the analysis, through the steps 201 to 215, when the configuration information corresponding to the mailbox domain name is not found in the mail client and the mail server, the configuration information input by the user can be obtained, and when the connection with the mail server is successful according to the configuration information input by the user, the configuration information corresponding to the mailbox domain name input by the user can be stored and sent to the remote server for storage. Therefore, when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the configuration information corresponding to the mailbox domain name can be found in the mail client without repeatedly inputting the configuration information by a user, the user can conveniently log in the electronic mailbox, and the user experience is improved.
According to the method for acquiring the configuration information, when the configuration information corresponding to the mailbox domain name is not found and the connection with the mail server is successful according to the configuration information corresponding to the mailbox domain name input by the user, the configuration information corresponding to the mailbox domain name input by the user can be stored and sent to the remote server for storage. Therefore, when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the configuration information corresponding to the mailbox domain name can be found in the mail client without the need of repeatedly inputting the configuration information by a user. Unlike the prior art, the embodiment of the invention does not store the configuration information corresponding to the mailbox domain name input by the user at the mail client, but only the configuration information corresponding to the mail address is stored at the remote server, and when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the user needs to input the configuration information again.
Further, in the technical solution of the embodiment of the present application, after the configuration information corresponding to the mailbox domain name input by the user is stored in the mail client, the configuration information is sent to the remote server for storage, so that the remote server can more comprehensively obtain the configuration information corresponding to different mailbox domain names, and the requirement of obtaining the configuration information by more users can be met by sending the configuration information to the remote server for storage. Obviously, compared with the prior art, the method and the device for acquiring the configuration information provided by the embodiment of the invention can effectively avoid the repeated input of the configuration information by the user in the mail client, facilitate the user to log in the electronic mailbox and improve the user experience; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Fig. 3 is a schematic diagram of a configuration structure of an apparatus for acquiring configuration information according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a determination unit 301, a search unit 302, an acquisition unit 303, a connection unit 304, and a storage unit 305; wherein,
the determining unit 301 is configured to determine a mailbox domain name according to a mail address input by a user, and notify the searching unit 302 of the mailbox domain name;
the searching unit 302 is configured to search the configuration information corresponding to the mailbox domain name; when the configuration information is not found, an acquisition instruction is sent to the acquisition unit 303;
the obtaining unit 303 is configured to obtain, after receiving the obtaining instruction, configuration information corresponding to the mailbox domain name input by the user, and send the configuration information corresponding to the mailbox domain name input by the user to the connecting unit 304;
the connection unit 304 is configured to establish a connection with a mail server corresponding to the mailbox domain name according to the configuration information, and when the connection with the mail server according to the configuration information is successful, send the configuration information to the storage unit 305;
the storage unit 305 is configured to store the configuration information corresponding to the mailbox domain name input by the user, and send the configuration information to the remote server for storage.
Further, the searching unit 302 is specifically configured to search the configuration information in the configuration information pre-stored in the mail client; and when the configuration information is not found in the mail client, searching the configuration information in the configuration information pre-stored in the remote server.
Further, the searching unit 302 is further configured to, when the configuration information is found in the mail client, send the configuration information found in the mail client to the connecting unit 304;
the connection unit 304 is specifically configured to establish a connection with the mail server according to the configuration information found in the mail client; when the connection with the mail server fails according to the configuration information found in the mail client, sending a search instruction to the search unit 302;
the searching unit 302 is further configured to search the configuration information in the configuration information pre-stored in the remote server after receiving the search instruction.
Further, the searching unit 302 is further configured to, when the configuration information is found in the remote server, send the configuration information found in the remote server to the connecting unit 304;
the connection unit 304 is further configured to establish a connection with the mail server according to the configuration information found in the remote server; when the connection with the mail server fails according to the configuration information found in the remote server, the acquisition instruction is sent to the acquisition unit 303;
the obtaining unit 303 is further configured to obtain, after receiving the obtaining instruction, configuration information corresponding to the mailbox domain name input by the user.
Further, the connection unit 304 is further configured to, when the connection with the mail server is successful according to the configuration information found in the remote server, send the configuration information found in the remote server to the storage unit 305;
the storage unit 305 is further configured to store the configuration information found in the remote server.
In practical applications, the determining unit 301, the searching unit 302, the obtaining unit 303, the connecting unit 304 and the storing unit 305 may be implemented by a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like located in a PC or a mobile terminal.
The device for acquiring configuration information provided in the embodiment of the present invention may store the configuration information corresponding to the mailbox domain name input by the user and send the configuration information to the remote server for storage when the configuration information corresponding to the mailbox domain name input by the user is not found and the connection with the mail server is successful according to the configuration information corresponding to the mailbox domain name input by the user. Therefore, when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the configuration information corresponding to the mailbox domain name can be found in the mail client without the need of repeatedly inputting the configuration information by a user. Unlike the prior art, the embodiment of the invention does not store the configuration information corresponding to the mailbox domain name input by the user at the mail client, but only the configuration information corresponding to the mail address is stored at the remote server, and when the mail client establishes connection with the mail server corresponding to the mailbox domain name again, the user needs to input the configuration information again.
Further, in the technical solution of the embodiment of the present application, after the configuration information corresponding to the mailbox domain name input by the user is stored in the mail client, the configuration information is sent to the remote server for storage, so that the remote server can more comprehensively obtain the configuration information corresponding to different mailbox domain names, and the requirement of obtaining the configuration information by more users can be met by sending the configuration information to the remote server for storage. Obviously, compared with the prior art, the method and the device for acquiring the configuration information provided by the embodiment of the invention can effectively avoid the repeated input of the configuration information by the user in the mail client, facilitate the user to log in the electronic mailbox and improve the user experience; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. A method for acquiring configuration information is characterized by comprising the following steps:
determining a mailbox domain name according to a mail address input by a user;
searching configuration information corresponding to the mailbox domain name;
when the configuration information is not found, acquiring the configuration information corresponding to the mailbox domain name input by the user;
establishing connection with a mail server corresponding to the mailbox domain name according to the configuration information;
and when the connection with the mail server is successful according to the configuration information, storing the configuration information corresponding to the mailbox domain name input by the user, and sending the configuration information to a remote server for storage.
2. The method according to claim 1, wherein the searching for the configuration information corresponding to the mailbox domain name comprises:
searching configuration information corresponding to the mailbox domain name in configuration information pre-stored by a mail client;
and when the configuration information is not found in the mail client, searching the configuration information in the configuration information pre-stored in the remote server.
3. The method of claim 2, further comprising:
when the configuration information is found in the mail client, establishing connection with the mail server according to the configuration information found in the mail client;
and when the connection with the mail server fails according to the configuration information searched in the mail client, searching the configuration information in the configuration information prestored in the remote server.
4. The method of claim 3, further comprising:
when the configuration information is found in the remote server, establishing connection with the mail server according to the configuration information found in the remote server;
and when the connection with the mail server fails according to the configuration information searched in the remote server, acquiring the configuration information corresponding to the mailbox domain name input by the user.
5. The method of claim 4, further comprising:
and when the connection with the mail server is successful according to the configuration information searched in the remote server, storing the configuration information searched in the remote server.
6. An apparatus for acquiring configuration information, the apparatus comprising: the device comprises a determining unit, a searching unit, an acquiring unit, a connecting unit and a storing unit; wherein,
the determining unit is used for determining a mailbox domain name according to the mail address input by the user and informing the searching unit of the mailbox domain name;
the searching unit is used for searching the configuration information corresponding to the mailbox domain name; when the configuration information is not found, sending an acquisition instruction to the acquisition unit;
the obtaining unit is configured to obtain the configuration information corresponding to the mailbox domain name input by the user after receiving the obtaining instruction, and send the configuration information corresponding to the mailbox domain name input by the user to the connecting unit;
the connection unit is used for establishing connection with a mail server corresponding to the mailbox domain name according to the configuration information, and sending the configuration information to the storage unit when the connection with the mail server is successful according to the configuration information;
the storage unit is used for storing the configuration information corresponding to the mailbox domain name input by the user and sending the configuration information to a remote server for storage.
7. The apparatus according to claim 6, wherein the search unit is specifically configured to search configuration information corresponding to the mailbox domain name in configuration information pre-stored in a mail client; and when the configuration information is not found in the mail client, searching the configuration information in the configuration information pre-stored in the remote server.
8. The apparatus according to claim 7, wherein the searching unit is further configured to send the configuration information found in the mail client to the connecting unit when the configuration information is found in the mail client;
the connection unit is specifically configured to establish connection with the mail server according to the configuration information found in the mail client; when the connection with the mail server fails according to the configuration information searched in the mail client, sending a search instruction to the search unit;
the searching unit is further configured to search the configuration information in the configuration information pre-stored in the remote server after receiving the search instruction.
9. The apparatus according to claim 8, wherein the searching unit is further configured to send the configuration information found in the remote server to the connecting unit when the configuration information is found in the remote server;
the connection unit is further configured to establish connection with the mail server according to the configuration information found in the remote server; when the connection with the mail server fails according to the configuration information searched in the remote server, sending the acquisition instruction to the acquisition unit;
the obtaining unit is further configured to obtain, after receiving the obtaining instruction, configuration information corresponding to the mailbox domain name input by the user.
10. The apparatus according to claim 9, wherein the connection unit is further configured to send the configuration information found in the remote server to the storage unit when the connection with the mail server is successful according to the configuration information found in the remote server;
the storage unit is further configured to store the configuration information found in the remote server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610626245.4A CN107689908A (en) | 2016-08-03 | 2016-08-03 | The acquisition methods and device of a kind of configuration information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610626245.4A CN107689908A (en) | 2016-08-03 | 2016-08-03 | The acquisition methods and device of a kind of configuration information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107689908A true CN107689908A (en) | 2018-02-13 |
Family
ID=61150742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610626245.4A Withdrawn CN107689908A (en) | 2016-08-03 | 2016-08-03 | The acquisition methods and device of a kind of configuration information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107689908A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113269528A (en) * | 2021-05-28 | 2021-08-17 | 青岛海信移动通信技术股份有限公司 | Information processing method and device |
CN113852537A (en) * | 2021-08-31 | 2021-12-28 | 紫光云(南京)数字技术有限公司 | Method for App to adapt to multi-protocol mailboxes |
-
2016
- 2016-08-03 CN CN201610626245.4A patent/CN107689908A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113269528A (en) * | 2021-05-28 | 2021-08-17 | 青岛海信移动通信技术股份有限公司 | Information processing method and device |
CN113852537A (en) * | 2021-08-31 | 2021-12-28 | 紫光云(南京)数字技术有限公司 | Method for App to adapt to multi-protocol mailboxes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11889014B2 (en) | Method and apparatus for processing contact information using a wireless terminal | |
US10205779B2 (en) | Information sharing method, information sharing apparatus, and electronic device | |
CN101459628B (en) | Method and apparatus based on interconnection and intercommunication between mailbox and IM | |
CN104935502B (en) | The creation method and device of mail group | |
MX2014010229A (en) | Systems and methods for sharing data among multiple end user devices. | |
TWI587660B (en) | Methods, devices and systems for publishing information to websites | |
WO2015043392A1 (en) | Method, apparatus and system for forwarding messages | |
CN104980446A (en) | Detection method and system for malicious behavior | |
WO2015065852A2 (en) | User information classification method and apparatus, and user group information acquistion method and apparatus | |
US9485203B2 (en) | Method and system for attaching scanned documents to email replies via a mobile communications device | |
CN104243282B (en) | A kind of information notice method and server | |
US7958197B2 (en) | Dynamic type-ahead for lists of prior specified addressees | |
CN107689908A (en) | The acquisition methods and device of a kind of configuration information | |
CN103326927B (en) | A kind of method and apparatus withholding mail | |
CN106506774B (en) | Display method and device for contact persons in address list | |
WO2017201933A1 (en) | Method and apparatus for automatically configuring e-mail, and electronic device | |
CN106209583A (en) | A kind of message input method, device and user terminal thereof | |
CN114390452B (en) | Message sending method and related equipment | |
US20160204988A1 (en) | Intelligent Device Data Router | |
CN111095889A (en) | Multi-terminal message synchronization method, system, server and computer processing equipment | |
WO2020155443A1 (en) | Contact management method and device | |
US20190384465A1 (en) | Dynamic web actions palette | |
CN107835124B (en) | Mail sending method, device and system | |
CN105450474A (en) | Method and device for detecting e-mail server address | |
JP2009093573A (en) | E-mail management system |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180213 |
|
WW01 | Invention patent application withdrawn after publication |