Embodiment
Electronic mail service implementation method of the present invention has adopted the thought of boss's mailbox, and the master mailbox of foundation and sub voice mailbox related enriched the function of electronic mail service, is particularly useful for the E-mail address of forms such as family, the classmate of class.The following embodiment of the invention is the technical scheme that example is specifically introduced electronic mail service implementation method of the present invention with family's mailbox.
Electronic mail service implementation method embodiment one
Be illustrated in figure 1 as the flow chart of electronic mail service implementation method specific embodiment one of the present invention, related family's mailbox comprises main account and sub-account in the present embodiment.For example, generally use in the family on telephone wire or the broadband, then family's mailbox is that the network user of core provides with the family for these.Each family can have a main account, names with family's feature, can also have a plurality of sub-accounts, belongs to each kinsfolk, names with kinsfolk's feature.The E-mail address naming method of main account, sub-account can have two kinds.First kind is the secondary naming method, the E-mail address name form of main account is<main user name〉@<domain name 〉, main user name can family telephone number or other self-defining titles name, for example, 01066257777@cnc.com, sub-account is each kinsfolk's a privately owned mailbox, its E-mail address name form is<the child user name〉<separator〉<main user name〉@<domain name 〉, or<main user name〉<separator〉<the child user name〉@<domain name 〉, separator can be ". ", agreement symbol such as " _ " and "-", for example, the sub-account E-mail address of 01066257777@cnc.com can be lihua.01066257777@cnc.com and father.01066257777@cnc.com.Second kind can be the sepaerate order mode, the E-mail address that is main account and sub-account all adopts<user name〉@<domain name form, user name adopts family's feature or kinsfolk's feature to name respectively, need guarantee the uniqueness of user name on this mail server.For family's mailbox, it is core with the main account, and sub-account depends on main account, with main account be one to one or many-to-one relation.
The system that realizes the present embodiment electronic mail service is mainly mail server.In mail server, comprise user authentication module, mail service module, Web service module and Back Administration Module etc.User authentication module is responsible for subscriber authentication and mandate, the mail service module is responsible for the access mail, the Web service module is responsible for handling the Interface Microstructure and the logical process of browser mode access mail system, and Back Administration Module is used for Admin Administration's mailing system to be used.On user terminal, can also pass through Mail Clients, finish functions such as mail reception and transmission.
For family's mailbox, the storage mode of user message table can have multiple, wherein a kind of preferable way of realization is for adopting the self reference pattern, the information of each main account or the equal corresponding stored of the information of sub-account are in an information unit, comprise a major key field in this information unit, major key field can be used to store the main user name or the child user name of this information unit in the present embodiment, also comprise a foreign key field in this information unit, foreign key field can be used for storing the related child user name or the main user name of main user name of major key field or child user name in the present embodiment, the incidence relation that promptly is used for mark main account and sub-account, the child user name of its each sub-account for example can be set in the foreign key field of main account, the main user name of its main account can be set in the foreign key field of sub-account accordingly.Except that major key and external key, can also comprise the field of storage password, user type etc. in this information unit, as shown in Figure 2.The information unit form of main account and sub-account is in fact the same, stores in a database, can realize the incidence relation of the sub-account of main account by the self reference of information unit.
Adopt above-mentioned mail server to carry out the electronic mail service implementation method of present embodiment, its idiographic flow comprises the steps:
Step 10, user terminal be by the Web page of internet access mail server, when mail server receives that user terminal submits to E-mail address logging request, resolves from this E-mail address logging request and obtain E-mail address;
Step 20, mail server carry out the authentication of corresponding account according to E-mail address, are specifically as follows the checking of carrying out username and password;
Step 30, when authentication by the time, the type of mail server identification account, when recognizing the account when being main account, execution in step 40 is when recognizing the account when being sub-account, execution in step 50;
In step 30, the mode of mail server identification Account Type can have multiple.For example, when adopting first kind of naming method to name E-mail address, whether comprise separator in the user name of mail server identification E-mail address as if family's mailbox, if, then target setting E-mail address type is sub-account, and if not, then target setting E-mail address type is a main account.For example after this acquiescence ". " then when the user name part branch that recognizes E-mail address comprises ". ", then is about to carry out the browsing process of sub-account as separator.
When first kind of family's mailbox employing or second kind of naming method were named E-mail address, mail server can directly be resolved from the E-mail address logging request and be obtained the target electronic mailbox type.At this moment, the user is when sub-account of visit or main account, and except that the input E-mail address, the type that need indicate the E-mail address of being visited is sub-account or main account.
Perhaps, mail server can be inquired about in user message table according to the user name in the E-mail address, and when inquiring user information corresponding, the target electronic mailbox type is obtained in identification from the user profile respective field.
Step 40, this moment user capture be main account, mail server is inquired about each sub-account of this main account correspondence in user message table, for example inquire about the user name of corresponding sub-account of the account according to the information in the foreign key field, inquire about its user profile according to the user name of sub-account again, the E-mail address tabulation of then calling main account and each sub-account correspondence shows, and the E-mail address that main account is set is readable state, and login process finishes;
In above-mentioned steps 40, the E-mail address tabulation of calling main account and each sub-account correspondence shows, and the E-mail address that main account is set is a readable state, it specifically can be the email list that reads main account, show the mailbox tabulation of corresponding sub-account, and demonstrate the number of not reading Email in each sub-account E-mail address, and antithetical phrase account email list does not show.The E-mail address of so-called main account is set to readable state, promptly allows the user to read information such as Email exercise question among the E-mail addresses such as inbox, outbox or draft of main account, article receiving and sending people, content.Carry out above-mentioned login process, make user terminal when the visit main account, at first finish the main account authentication, then can see simultaneously the number of Email in the sub-account mailbox, the institute's mail that receives and send of promptly can seeing main account simultaneously, also can see the mail number that receives and send in each sub-account, as whether new mail etc. is arranged, but, have only the E-mail address of main account to be set to readable state, the user is that the user can only click the Email content of checking main account, and can not inquires about the Email content of sub-account, when need visit certain sub-account mailbox, need to submit to E-mail address logging request at sub-account, submit the child user name and the password of sub-account to, finish authentication, just can read the Email content of this sub-account this moment by user message table.
Step 50, this moment user capture be sub-account, mail server is inquired about the main account of this sub-account correspondence in user message table, and the authentication of giving tacit consent to this main account is also passed through, the E-mail address tabulation of then calling this sub-account and main account correspondence shows, and the E-mail address that this sub-account and main account be set is a readable state.For example, the email list that can read this main account and sub-account correspondence shows respectively, and then the E-mail address tabulation of these other sub-accounts of main account can also be shown.After the E-mail address of main account and this sub-account is set to readable state, can click the information such as exercise question, article receiving and sending people, content of inquiry Email for the user.
In above-mentioned steps 50, when the user logins sub-account, at first finish sub-account authentication; Then, obtain main account information according to foreign key field, acquiescence gives the access rights of main account to the user who logins this sub-account; The user of this sub-account can visit the Email of sub-account like this, also can visit the Email of corresponding main account.The user of sub-account can see the mail in body account and main account and inquire about reading.
Preferably, in step 50, can also further inquire about the Email of other sub-accounts of this main account, carrying out the mail number shows, but do not distribute readable authority, then to other sub-accounts under this main account, the user only can see the mail number and can not inquire about Mail Contents.Further, consider that user terminal is equipped with the situation of Mail Clients visit, after the E-mail address that mail server is provided with main account and sub-account is readable state, the Email of this sub-account is issued on the user terminal, and with this locality deletion of the Email of sub-account from mail server, mail server is issued to the Email of this main account on the user terminal simultaneously, and at the local Email that keeps this main account of mail server.That is, sub-account acquiescence can be downloaded mail and deletes from mail server to user terminal and with Email; The Email of main account only allows the user's download of this sub-account to user terminal, and does not allow to belong to from the mail server deletion Email of main account.When visiting other sub-account and main account like this, can guarantee that the Email of main account still can be accessed.Perhaps, when the user directly logins main account, then the email download of main account can be arrived local Mail Clients, and Email is removed from mail server.
The technical scheme of present embodiment provides solution for the family's mailbox towards the domestic consumer.It is recipient's mail carrying that family's mailbox both can be used for the family, has considered kinsfolk's personalized mail carrying again.Like this, family's mailbox both can receive the privately owned mail of kinsfolk, also can receive the public mail of issuing this family, for example can receive charges for water and electricity bill, community's notice, reception is from the commercial advertisement of market, hotel, movie theatre etc., moreover can receive from announcement such as the social life of district, municipal administration, electric power, waterpower etc., maybe can send newspaper and subscribe to mail etc., and each kinsfolk can in time handle the Email that belongs to family's main account after logining sub-account.The electronic mail service implementation method of present embodiment has been avoided needing to divide the cost that a plurality of subdomain spent, and is easy to apply, and can extends to any needs and take into account shared and situation private E-mail, for example groups of friends, schoolmates' address book etc.This technical scheme use main account and sub-account have realized the unified mailbox system between collective and its member, have taken into account the notion of shared information and individual privately owned mail, have realized the polymerization of information in colony uses.
Electronic mail service implementation method embodiment two
Email implementation method specific embodiment two of the present invention is specially the main account register flow path that mail server is realized based on the foregoing description one, is particularly useful for family's mailbox situation, comprises the steps:
Operator's management system is according to the physical characteristic of user terminal, and the used telephone number of for example will surfing the Net is that user terminal distributes main account as user name, and with the user profile stores synchronized of main account in the user message table of mail server.
The technical scheme of present embodiment specifically is to be the E-mail address that family set up and distributed a main account by carrier side.Can adopt the physical characteristic of this domestic consumer's terminal to set the user name of main account,, preferably can adopt the used telephone number of this domestic consumer's terminal online, or the IP address in broadband be used as its user name for guaranteeing uniqueness for it.At the identification card number of carrier side registration, property ownership certificate number or social welfare number etc., also can be the unique serial number that generates by operator's management system in the time of perhaps also can adopting the registration online of this family.
Adopt the technical scheme of present embodiment, can guarantee the uniqueness of family class main account E-mail address, be convenient to operator and manage.The registration of main account is created and can be adopted the mode of real name information to manage, and the user can the operations such as operator open, change, cancellation by selecting, and operator also can freeze and management such as recovery main account.
Electronic mail service implementation method embodiment three
Email implementation method specific embodiment three of the present invention is specially the main account register flow path that mail server is realized based on the foregoing description one, comprises the steps:
When mail server receives the main account register requirement of user terminal submission, from this main account register requirement, resolve the user profile of obtaining main account, after carrying out verification operations such as user name corresponding validity, uniqueness, be stored in the user message table, finish the main account registration, specifically can also correspond to it and set up the E-mail address, return the response etc. of succeeding in registration.
The technical scheme of present embodiment further allows user terminal can carry out the registration of main account by network, and is convenient for users to use.
Electronic mail service implementation method embodiment four
Email implementation method specific embodiment four of the present invention is specially the sub-Account Registration flow process that mail server is realized based on the foregoing description two or three after user's registration has main account, comprise the steps:
By after the logging request of certain main account, receive the sub-Account Registration request of the user terminal submission of this main account in the mail server authentication;
Mail server is resolved the user profile of obtaining sub-account from sub-Account Registration request, can be behind verification operations such as the validity of user name, uniqueness, be stored in the user message table, and the incidence relation of this sub-account of setting up registration and corresponding main account, promptly can be in user message table main account and the account information unit foreign key field in store the related information of sub-account and main account respectively.
The technical scheme of present embodiment has realized the registration of sub-account, and sub-account will depend on main account and produce, so can have the main account after the login directly to set up each sub-account, has demonstrated fully the control and the management of main account antithetical phrase account.
Electronic mail service implementation method embodiment five
Email implementation method specific embodiment five of the present invention is specially another seed Account Registration flow process that mail server is realized based on the foregoing description two or three after user's registration has main account, comprise the steps:
When sub-Account Registration request that mail server receives that user terminal submits to, from sub-Account Registration request, resolve the user profile of obtaining sub-account, and inquire about the main account of sub-account correspondence according to sub-Account Registration request, also can at first in user message table, inquire about according to the user profile of this sub-account herein, with the verification of bearing the same name, the corresponding main account of inquiry more then, the information of main account can be submitted to when user terminal is submitted sub-Account Registration request in the lump;
This mail server sends sub-Account Registration to main account and confirms request;
When mail server receives sub-Account Registration that main account replys when confirming response, the user profile of sub-account is stored in the user message table, and sets up this sub-account of registration and the incidence relation of main account.
The technical scheme of present embodiment has realized the directly sub-account of registration of user terminal, before the user profile of the sub-account of concrete storage, send the sub-Account Registration of an envelope by mail server to main account and confirm mail, information comprising the sub-account of this application registration, it has a member to be added to inform main account, replied after sub-Account Registration confirms response to mail server when the user terminal of main account, mail server then can continue to carry out the step of this sub-account of registration.
Present embodiment can make things convenient for user terminal can directly register sub-account in the time can't logining main account, but needs to obtain the permission of main account simultaneously.Both embody the flexibility of user's registration, also guaranteed the management and the control of main account antithetical phrase account.
Uniqueness for the user name that guarantees the sub-account of above-mentioned registration, user's digital form by name of main account can be set, distributed by operator's management system, simultaneously authority is set in mail server, the user name form of siding stopping Account Registration can not adopt digital form.Digital form will more help operator and go management.
Email implementation method embodiment six
Be illustrated in figure 3 as the flow chart of Email implementation method specific embodiment six of the present invention, present embodiment is further realized the E-mail address account cancellation process based on the foregoing description one~five, is specially:
Step B1, after user terminal login, when the cancellation request of mail server receives that user terminal submits to E-mail address, for example receive user terminal in " Web Mail " mode, the i.e. E-mail address cancellation request of submitting to by browser page is resolved from E-mail address cancellation request and is obtained E-mail address;
Step B2, mail server obtain the type of corresponding account according to E-mail address, and when recognizing account when being main account, execution in step B3 is when recognizing described account when being sub-account, execution in step B4;
Step B3, this moment the user need be with the main account cancellation, mail server is inquired about the sub-account of this main account correspondence in user message table, remove the E-mail address of this main account and its all sub-account correspondences, and from user message table the user profile of deletion this main account and each sub-account, the E-mail address account cancellation process finishes;
Step B4, this moment, the user need be with certain sub-account closing, mail server is inquired about the main account of this sub-account correspondence in user message table, remove the E-mail address of this sub-account correspondence, and from this user message table the user profile of this sub-account of deletion, and will this sub-account and the incidence relation of main account from the user profile of main account, delete.
Realized the cancellation of main account and sub-account in the present embodiment, because sub-account belongs to main account, so carry out the cancellation operation of its all sub-accounts during the main account cancellation in the lump, and only delete during sub-account closing himself Email and relevant information and with the incidence relation of main account.The technical scheme of present embodiment can guarantee the effective related of main account and sub-account, satisfies joint demand between the account of form E-mail addresses such as family's mailbox.
Email implementation method embodiment seven
Be illustrated in figure 4 as the flow chart of Email implementation method specific embodiment seven of the present invention, present embodiment realizes further that based on the foregoing description one~five E-mail address freezes flow process, is specially:
Step C1, after user terminal login, when mail server receives E-mail address that user terminal submits to when freezing to ask, for example receive the E-mail address that user terminal submits to by Web Mail and freeze request, freeze from the E-mail address to resolve the request and obtain E-mail address;
Step C2, mail server obtain the type of corresponding account according to E-mail address, and when recognizing account when being main account, execution in step C3 is when recognizing account when being sub-account, execution in step C4;
Step C3, this moment the user need freeze main account, mail server is inquired about the sub-account of this main account correspondence in user message table, the E-mail address that this main account and its all sub-account correspondences are set is for suspending user mode, i.e. receiving and dispatching mail again, even can not edit mail again, can not carry out any operation to the E-mail address, the E-mail address freezes flow process to be finished;
Step C4, this moment, the user need freeze sub-account, and the E-mail address that mail server is provided with this sub-account correspondence is for suspending user mode.
Realized freezing of main account and sub-account in the present embodiment, because sub-account belongs to main account, thus when freezing, main account freezes its all sub-accounts in the lump, and sub-account is only suspended himself Email and relevant information when freezing.Accordingly, when main account recovers from suspending user mode, its also full recovery of sub-account.The technical scheme of present embodiment can guarantee the effective related of main account and sub-account, satisfies joint demand between the account of form E-mail addresses such as family's mailbox.
Email implementation method embodiment eight
Be illustrated in figure 5 as the flow chart of Email implementation method specific embodiment eight of the present invention, present embodiment realizes further that based on the foregoing description one~five E-mail address freezes flow process, is specially:
Step D1, after user terminal login, when mail server receives E-mail address that user terminal submits to when freezing recovery request, for example receive user terminal and freeze recovery request, freeze from the E-mail address to resolve the recovery request and obtain E-mail address by the E-mail address that Web Mail submits to;
Step D2, mail server obtain the type of corresponding account according to E-mail address, and when recognizing account when being main account, execution in step D3 is when recognizing account when being sub-account, execution in step D4;
Step D3, this moment the user need recover main account, mail server is inquired about the sub-account of this main account correspondence in user message table, the E-mail address that this main account and its all sub-account correspondences are set is a upstate, promptly recover the operation to the E-mail address, the E-mail address freezes to recover flow process to be finished;
Step D4, this moment the user need recover sub-account, the E-mail address that mail server is provided with this sub-account correspondence is a upstate.
Realized in the present embodiment main account and sub-account freeze recover because sub-account belongs to main account, so main account recovers its all sub-accounts when recovering in the lump, and sub-account is only recovered himself Email and relevant information when recovering.The technical scheme of present embodiment can guarantee the effective related of main account and sub-account, satisfies joint demand between the account of form E-mail addresses such as family's mailbox.
Mail server embodiment
Be illustrated in figure 6 as the structural representation of mail server specific embodiment of the present invention, this mail service implement body comprises subscriber information storing module 100, E-mail address memory module 200, resolves acquisition module 300, authentication module 400, identification module 500, main account processing module 600 and sub-account processing module 700.Wherein, subscriber information storing module 100 is used to store the user profile of each main account and sub-account, and stores the incidence relation of this main account and sub-account; E-mail address memory module 200 is used to store the E-mail address of each main account and sub-account correspondence; Resolve acquisition module 300, be used for when the E-mail address operation requests that receives that user terminal submits to, E-mail address is obtained in parsing from the E-mail address operation requests; Authentication module 400 is used for carrying out the authentication of corresponding account according to the E-mail address that parsing acquisition module 300 gets access to; Identification module 500 is used for discerning according to the E-mail address that parsing acquisition module 300 gets access to the type of account; Main account processing module 600 comprises main account login unit 610, the E-mail address operation requests that main account login unit 610 is used for receiving when parsing acquisition module 300 is the E-mail address logging request, and identification module 500 recognizes account when being main account, the sub-account of inquiry main account correspondence in subscriber information storing module 100, the E-mail address tabulation of calling main account and sub-account correspondence from E-mail address memory module 200 shows, and the E-mail address that this main account is set is a readable state; Sub-account processing module 700 comprises sub-account login unit 710, the E-mail address operation requests that sub-account login unit 710 is used for receiving when parsing acquisition module 300 is the E-mail address logging request, and identification module 500 recognizes account when being sub-account, the main account of this sub-account correspondence of inquiry in subscriber information storing module 100, the E-mail address tabulation of calling sub-account and main account correspondence from E-mail address memory module 200 shows, and the E-mail address that this sub-account and main account be set is a readable state.
The mail server of present embodiment can be carried out the technical scheme of electronic mail service implementation method embodiment one of the present invention, during the login main account, can check the email list of main account and sub-account, but only can inquire about the content of main account Email, when logining sub-account, can main account and the email list of sub-account, and the content that can check this sub-account and main account Email.
Further, as shown in Figure 6, in mail server, this main account processing module 600 also comprises main account registering unit 620, and sub-account processing module 700 also comprises sub-Account Registration unit 720.Wherein, the E-mail address operation requests that main account registering unit 620 is used for receiving when parsing acquisition module 300 is the main account register requirement, from the main account register requirement that parsing acquisition module 300 receives, resolve the user profile of obtaining main account, be stored in the subscriber information storing module 100.Sub-Account Registration unit 720 is used for when resolving acquisition module 300 when receiving sub-Account Registration request that listed main account submits to as the E-mail address operation requests, from the sub-Account Registration request that parsing acquisition module 300 receives, resolve the user profile of obtaining sub-account, be stored in the subscriber information storing module 100, and set up the sub-account of registration and the incidence relation of main account.The mail server of this embodiment can be carried out electronic mail service implementation method embodiment three of the present invention or four technical scheme.
Further, as shown in Figure 6, in mail server, this main account processing module 600 also comprises main account cancellation unit 630, and sub-account processing module 700 also comprises sub-account closing unit 730.Wherein, the E-mail address operation requests that main account cancellation unit 630 is used for receiving when parsing acquisition module 300 is E-mail address cancellation request, and identification module 500 recognizes account when being main account, the sub-account of inquiry main account correspondence in subscriber information storing module 100, from E-mail address memory module 200, remove the E-mail address of this main account and sub-account correspondence, and from subscriber information storing module 100, delete the user profile of main account and sub-account.The E-mail address operation requests that sub-account closing unit 730 is used for receiving when parsing acquisition module 300 is E-mail address cancellation request, and identification module 500 recognizes account when being sub-account, the main account of this sub-account correspondence of inquiry in subscriber information storing module 100, from E-mail address memory module 200, remove the E-mail address of this sub-account correspondence, and the incidence relation of sub-account and main account is deleted from subscriber information storing module 100.The mail server of this embodiment can be carried out the technical scheme of electronic mail service implementation method embodiment six of the present invention.
Further, as shown in Figure 6, in mail server, this main account processing module 600 comprises that also main account freezes unit 640, and sub-account processing module 700 comprises that also sub-account freezes unit 740.Wherein, main account freezes unit 640, and to be used for when resolving the E-mail address operation requests that acquisition module 300 receives be that the E-mail address freezes request, and identification module 500 recognizes the account when being main account, the sub-account of this main account correspondence of inquiry in subscriber information storing module 100, the E-mail address that this main account and sub-account correspondence in the E-mail address memory module 200 are set is for suspending user mode.Sub-account is freezed unit 740, and to be used for when resolving the E-mail address operation requests that acquisition module 300 receives be that the E-mail address freezes request, and identification module 500 recognizes account when being sub-account, and the E-mail address that this sub-account correspondence in the E-mail address memory module 200 is set is for suspending user mode.The mail server of this embodiment can be carried out the technical scheme of electronic mail service implementation method embodiment seven of the present invention.
Further, as shown in Figure 6, in mail server, this main account processing module 600 comprises that also main account freezes recovery unit 650, and sub-account processing module 700 comprises that also sub-account freezes recovery unit 750.Wherein, main account freezes recovery unit 650, and to be used for when resolving the E-mail address operation requests that acquisition module 300 receives be that the E-mail address freezes recovery request, and identification module 500 recognizes account when being main account, the sub-account of this main account correspondence of inquiry in subscriber information storing module 100 is provided with that the E-mail address of this main account and sub-account correspondence is a upstate in the E-mail address memory module 200.Sub-account is freezed recovery unit 750, and to be used for when resolving the E-mail address operation requests that acquisition module 300 receives be that the E-mail address freezes recovery request, and identification module 500 recognizes account when being sub-account, and the E-mail address that this sub-account correspondence in the E-mail address memory module 200 is set is a upstate.The mail server of this embodiment can be carried out the technical scheme of electronic mail service implementation method embodiment eight of the present invention.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.