WO2017114365A1 - Mail attachment filing method and cloud storage server - Google Patents

Mail attachment filing method and cloud storage server Download PDF

Info

Publication number
WO2017114365A1
WO2017114365A1 PCT/CN2016/112151 CN2016112151W WO2017114365A1 WO 2017114365 A1 WO2017114365 A1 WO 2017114365A1 CN 2016112151 W CN2016112151 W CN 2016112151W WO 2017114365 A1 WO2017114365 A1 WO 2017114365A1
Authority
WO
WIPO (PCT)
Prior art keywords
mail
cloud storage
account
server
identifier
Prior art date
Application number
PCT/CN2016/112151
Other languages
French (fr)
Chinese (zh)
Inventor
邓立
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017114365A1 publication Critical patent/WO2017114365A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to the field of communications and, more particularly, to a method of archiving a mail attachment and a cloud storage server.
  • Email plays a very important role in daily work and business activities.
  • files are generally delivered as email attachments. Since email attachments generally include some important files, archiving email attachments on a regular basis has become a common practice for mail clients.
  • email attachments can be archived to the mail client local, mail server, or cloud storage server.
  • the mail client When an email attachment is archived to a cloud storage server, similar to the email attachment being archived locally, the mail client periodically cleans up the locally cached email attachments. When the user needs to find the attachment, the mail client preferentially retrieves from the local, and when the local search fails, the email attachment is retrieved from the cloud storage server, and the email attachment is downloaded from the cloud storage server.
  • the method of archiving such email attachments to the cloud storage server avoids some local archiving, that is, the problem of mail client archiving, but its archiving efficiency is very low, which wastes the bandwidth consumption and system resources of the mail client. And when multiple mail clients archive the same email, the concurrent load and resource consumption of the mail server and the cloud storage server are increased.
  • the embodiment of the invention provides a method for archiving an email attachment and a cloud storage server, which can save storage space and traffic bandwidth of the mail client.
  • a method for archiving an email attachment is provided, which is applied to a cloud storage server, wherein a cloud storage server records a correspondence between a cloud storage account and a mail account, and the cloud storage account and the email account are respectively a user in the cloud storage server and
  • the account registered by the mail server includes: receiving the mail identifier and the cloud storage account sent by the mail client, the mail identifier is an identifier of the target mail received by the mail client; determining whether the target mail is stored in the cloud storage server according to the mail identifier Corresponding target attachment; when determining that the target attachment is not stored in the cloud storage server, determining the email account corresponding to the cloud storage account; logging in to the mail server according to the email account; sending the email identifier to the mail server; downloading the target attachment from the mail server according to the email identifier ; establish the correspondence between the target attachment and the mail identifier.
  • the target attachment by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the method further includes: generating N file metadata and N file metadata identifier IDs according to N files in the target attachment, where, The files correspond to the N file metadata one by one, the N file metadata and the N file metadata IDs correspond one-to-one, N ⁇ 1; store N file metadata IDs and N file metadata, wherein N The file metadata ID and the mail identifier are the corresponding storage locations.
  • the cloud storage account or the email account corresponding to the cloud storage account can share a target attachment stored only on the cloud storage server.
  • the second possibility in the first aspect The method further includes: when it is determined that the target attachment is stored in the cloud storage server, obtaining a file metadata identifier ID corresponding to the mail identifier according to the mail identifier; and acquiring, according to the file metadata ID, the file metadata ID File metadata; store file metadata to the storage space of a cloud storage account that does not store file metadata.
  • the method further includes: receiving an access request sent by a mail client, where the access request is used to request access to the N files. Part or all of the data information of the at least one file; searching for part or all of the data information of the at least one of the N files according to the access request; and transmitting some or all of the data information of the at least one of the N files to the mail client.
  • the mail client When the mail client needs to access the file, it only needs to search on the cloud storage server, so that the retrieval scope is wider and more efficient, and the local resource consumption of the mail client can be reduced.
  • the second aspect provides a method for archiving an email attachment, which is applied to a mail client, where a correspondence between a cloud storage account and a mail account is recorded in the mail client, and the cloud storage account and the email account are respectively the user in the cloud storage server and
  • the account registered by the mail server includes: receiving the remaining part of the target mail except the target attachment of the target mail, the rest of the target mail includes the mail header of the target mail; obtaining the mail identifier from the mail header of the target mail;
  • the cloud storage server sends the email identifier and the cloud storage account, so that the cloud storage server downloads the target attachment from the mail server according to the email identifier and the cloud storage account.
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the method further includes: acquiring an operation of the client user; and generating an access corresponding to the operation according to the operation Obtaining, the access request is used to request access to part or all of the data information of at least one of the N files stored by the cloud storage server; sending an access request to the cloud storage server; receiving the N files sent by the cloud storage server according to the access request Part or all of the data information for at least one file.
  • the third aspect provides a method for archiving an email attachment, which is applied to a mail server, and the method includes: receiving a login request of the email account; performing login authentication on the email account according to the login request; and receiving the cloud when the login authentication is successful
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • the fourth aspect provides a cloud storage server, where the cloud storage server records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively registered by the user on the cloud storage server and the mail server, including:
  • the receiving unit is configured to receive the mail identifier and the cloud storage user information sent by the mail client, where the mail identifier is an identifier of the target mail received by the mail client, and the determining unit is configured to determine, according to the mail identifier, whether the target corresponding to the target mail is stored
  • the determining unit is further configured to: when it is determined that the target accessory is not stored, determine a mail account corresponding to the cloud storage account; the login unit is configured to log in to the mail server according to the mail account; and the sending unit is configured to send the mail identifier to the mail server;
  • the unit is configured to download a target attachment from the mail server according to the mail identifier; and establish a unit, configured to establish a correspondence between the target attachment and the mail identifier.
  • the target attachment by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the cloud storage server of the fourth aspect may comprise means for performing the method of the first aspect or any of the possible implementations of the first aspect, for performing a first aspect or a possible implementation of any of the aspects of the first aspect The method in .
  • a mail client wherein a correspondence between a cloud storage account and a mail account is recorded in the mail client, and the cloud storage account and the mail account are respectively an account registered by the user on the cloud storage server and the mail server, and the email is
  • the client includes: a receiving unit, configured to receive a remaining part of the target mail except the target attachment of the target mail, the rest of the target mail includes a mail header of the target mail; and an obtaining unit, configured to obtain the mail header of the target mail
  • the mailing unit is configured to send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the mail client of the fifth aspect may comprise means for performing the method of the second aspect or any of the possible implementations of the second aspect, for performing a possible implementation of the second aspect or any aspect of the second aspect The method in .
  • a mail server includes: a receiving unit, configured to receive a login request of a mail account; and an authentication unit configured to perform login authentication on the mail account according to the login request;
  • the receiving unit is further configured to receive a download request sent by the cloud storage server, where the download request carries the mail identifier, and the sending unit is configured to send the target attachment corresponding to the mail identifier to the cloud storage server.
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • the mail server of the sixth aspect may include the third aspect or the third aspect for performing A unit of a method in any of the possible implementations, for performing the method in a possible implementation of the third aspect or any aspect of the third aspect.
  • the seventh aspect provides a cloud storage server, wherein the cloud storage server records a correspondence between a cloud storage account and a mail account, where the cloud storage account and the email account are respectively an account registered by the user on the cloud storage server and the mail server,
  • the cloud storage server includes: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for executing the computer instructions to perform any of the first aspect or the first aspect The method in the implementation.
  • a mail client where a correspondence between a cloud storage account and a mail account is recorded, and the cloud storage account and the mail account are respectively an account registered by the user on the cloud storage server and the mail server,
  • the mail client includes: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for operating the computer instructions to perform any of the second or second aspects The method in the implementation.
  • a mail server comprising: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for executing the computer instructions to perform any of the third or third aspects The method in the implementation.
  • a tenth aspect a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • a computer readable medium for storing a computer program comprising instructions for performing the method of any of the second aspect or any of the possible implementations of the second aspect.
  • a twelfth aspect a computer readable medium for storing a computer program, the computer program comprising any possible implementation for performing the third aspect or the third aspect The instructions of the method in the way.
  • FIG. 1 is a schematic flow chart of a method of archiving a mail attachment according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method of archiving a mail attachment according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method of archiving a mail attachment according to another embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a cloud storage server in accordance with an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a mail client in accordance with an embodiment of the present invention.
  • FIG. 6 is a schematic block diagram of a mail server in accordance with an embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of a cloud storage server according to another embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of a mail client according to another embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a mail server in accordance with another embodiment of the present invention.
  • FIG. 1 is a schematic flow diagram of a method of archiving an email attachment according to an embodiment of the present invention Figure.
  • the method of Figure 1 is primarily performed by a mail client, a mail server, and a cloud storage server.
  • the mail client receives the target mail except for the target attachment of the target mail, and the rest of the target mail includes the mail header of the target mail.
  • the target mail is the new mail received by the mail client, and the target attachment is the attachment in the new mail.
  • the target attachment entity is not included in the mail received by the mail client, and may only include information related to the target attachment entity.
  • the attachment archive is not required. Therefore, the embodiment of the present invention only describes the case where there is information related to the attachment entity in the mail.
  • the mail client obtains the mail identifier from the mail header of the target mail.
  • the mail identifier corresponds to the target mail, that is, the unique target mail can be determined according to the mail identifier.
  • the mail identifier may include information related to the target attachment, and the target attachment may be determined according to the information, or the target attachment may be directly determined according to the mail identifier.
  • the mail client sends the mail identifier and the cloud storage user information to the cloud storage server.
  • Cloud storage user information can be used to indicate cloud storage users.
  • the cloud storage user information may include an account and/or password of the cloud storage user.
  • the mail client can send the mail identifier and cloud storage user information by calling the archive interface of the cloud storage server.
  • the archive interface of the cloud storage server can be the standard interface of the cloud storage server that has been defined.
  • the cloud storage server determines, according to the mail identifier, whether the target attachment is stored in the cloud storage server.
  • the cloud storage server may determine that the target attachment is not stored in the cloud storage server by determining an unstored mail identifier in the cloud storage server. That is to say, as long as there is no mail identifier in the cloud storage server, there is no target attachment in the cloud storage server. As long as there is a mail identifier in the cloud storage server, there is a target attachment in the cloud storage server.
  • the cloud storage server can also set the (attachment) archive corresponding to the mail identifier. status.
  • the archive status indicates the archive status of the attachment, which can be both in the archive and in the archived case.
  • Archived indicates that the attachment has been downloaded and stored in the cloud storage server; the archive is indicating that the attachment is being downloaded, and if the download is completed, the archive status is automatically updated to archived.
  • the cloud storage server does not need to store the target attachment.
  • the cloud storage server determines that the target attachment is not stored in the cloud storage server, the cloud storage server sends the client user information and the attachment download request to the mail server.
  • the attachment download request can carry the email identifier.
  • the client user information can be used to indicate a client user corresponding to the cloud storage user.
  • the attachment download request may be used to request the mail server to send the target attachment corresponding to the mail identifier when the login authentication of the client user is successful.
  • the cloud storage server searches for client user information of the client user corresponding to the cloud storage through the cloud storage user information, and sends the client user information and the attachment download request to the mail server, for example, sending the email server to the email server.
  • the mail server performs login authentication on the client user or the mail server determines whether the client user has successfully authenticated, and after the authentication succeeds or determines that the client user has successfully authenticated, sends the message according to the received cloud storage server.
  • the message ID in the attachment download request finds the target message.
  • the mail server sends the target attachment to the cloud storage server according to the attachment download request.
  • the mail server can know the attachment that the cloud storage server needs to download according to the email identifier carried in the download request, that is, the target attachment, and send the target attachment to the cloud storage server after finding the target attachment.
  • the cloud storage server stores the target attachment and the email identifier in the cloud storage server.
  • the cloud storage server After receiving the target attachment sent by the mail server, the cloud storage server stores the target attachment to the cloud storage server and stores the mail identifier.
  • the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target is directly downloaded from the mail server. Attachments, so that you do not need to go through the target attachment of the mail client, which can save the storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the method for archiving an email attachment provided by the embodiment of the present invention has a breakpoint download function, which can cope with network instability or various abnormalities, can save traffic consumption and shorten download time to a certain extent, thereby improving user experience. .
  • the method may further include the following steps 201-205.
  • the mail client receives a first login request of the client user.
  • the first login request can carry client user information.
  • the client user information may indicate the client user, and the client user information may include the account number and/or password of the client user.
  • the mail server performs first login authentication on the mail client according to the first login request.
  • login authentication is first performed on the mail client to verify the real identity of the mail client that issues the login request.
  • the mail server is used to authenticate the mail client.
  • the mail server can use the previously saved account and the corresponding password to compare with the account of the client user carried in the login request and the password corresponding thereto, and carry the account and the login request saved before the mail server.
  • the identity authentication can be passed, that is, the login authentication succeeds.
  • the mail client sends the cloud storage server to the cloud storage server.
  • the second login request and client user information of the cloud storage user are the same.
  • the login request that is, the second login request, carries cloud storage user information, and the cloud storage user information may include an account of the cloud storage user and a password corresponding thereto.
  • the cloud storage server performs login authentication on the cloud storage user.
  • the embodiment of the present invention performs login authentication on the cloud storage user to verify the real identity of the cloud storage user who issues the login request.
  • the cloud storage server used in the login authentication authenticates the cloud storage user.
  • the cloud storage server can use the previously saved account and the corresponding password to compare with the account of the cloud storage user and the password corresponding to the login request, and the account and login request saved before the cloud storage server.
  • the identity authentication can be passed, that is, the authentication succeeds.
  • the cloud storage server saves the cloud storage user information and the client user information correspondingly.
  • the cloud storage server completes the binding of the client user and the cloud storage user.
  • the cloud storage server saves the binding relationship between the client user and the cloud storage user, that is, the cloud storage user information and the client user information can be saved correspondingly.
  • the mail client also stores cloud storage user information and client user information correspondingly.
  • the cloud storage server After the first binding of the client user and the cloud storage user is completed, the cloud storage server automatically performs login authentication on the cloud storage user bound to the client user as long as the client user logs in to the mail client. In other words, as long as the client user successfully logs in, the cloud storage user will automatically log in to the cloud storage server.
  • FIG. 3 is a schematic flowchart of a method of archiving a mail attachment according to another embodiment of the present invention.
  • the method shown in FIG. 3 can be executed by a mail server.
  • the cloud storage server records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively the accounts registered by the user on the cloud storage server and the mail server.
  • the cloud storage user information may be included in the step 103, and the cloud storage user information may include a cloud storage account.
  • the cloud storage user information may include a cloud storage account.
  • step 104 shown in FIG. 1 For details, refer to step 104 shown in FIG. 1 for details. For brevity, details are not described herein again.
  • steps 105 to 350 may be specifically referred to the step 105 shown in FIG. 1 .
  • steps 105 to 350 may be specifically referred to the step 105 shown in FIG. 1 .
  • details are not described herein again.
  • step 106 shown in FIG. 1 For details, refer to step 106 shown in FIG. 1 for details. For brevity, details are not described herein again.
  • the corresponding relationship between the target attachment and the mail identifier can be established and saved in the steps 107 and 107 shown in FIG. 1 .
  • the steps 107 and 107 shown in FIG. 1 For brevity, details are not described herein again.
  • the target attachment by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the method may further include the following steps: the cloud storage server generates N file metadata and N files according to the N files in the target attachment.
  • the metadata identifier ID wherein the N files are in one-to-one correspondence with the N file metadata, the N file metadata and the N file metadata IDs are in one-to-one correspondence, N ⁇ 1; and the cloud storage server stores N file metadata IDs.
  • N file metadata wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
  • the cloud storage server can also save file metadata (file description information) of files in the target attachment.
  • Table 1 below is an example of file metadata in the target attachment. It should be noted that the example of Table 1 is not restrictive, and the file metadata of the embodiment of the present invention is not limited thereto, and some fields may be deleted as needed, or other fields may be added.
  • each file metadata corresponds to a file metadata ID
  • the cloud storage server stores the file metadata together with the mail identifier and the storage file metadata ID.
  • the cloud storage server may store the correspondence between the mail identifier and the file metadata ID in the form of a table. In this way, according to the stored mail identifier, the file metadata ID can be found, and the corresponding file metadata can be found.
  • the method may further include: when the cloud storage server determines that the target attachment is stored in the cloud storage server, the cloud storage server acquires a file metadata identifier ID corresponding to the mail identifier according to the mail identifier; The storage server acquires file metadata corresponding to the file metadata ID according to the file metadata ID; the cloud storage server stores the file metadata to a storage space of the cloud storage account of the file metadata.
  • the cloud storage account does not store the file metadata before, and belongs to the first save. In fact, only Need to save once.
  • the cloud storage server may pre-store the correspondence between the mail identifier and the file metadata ID in a form of a table.
  • the cloud storage server may pre-store the correspondence between the mail identifier and the file metadata ID in a form of a table.
  • the cloud storage server needs to find the file metadata, the file metadata ID corresponding to the mail identifier may be found according to the mail identifier, and the corresponding file metadata may be found according to the file metadata ID.
  • the file metadata is then stored to the storage space of the cloud storage account.
  • the file metadata may include an owner identification ID. Then, after the cloud storage user copies the file metadata, the owner ID in the file metadata can be changed to its own ID, and the other file metadata remains unchanged.
  • the cloud storage server when different client users receive the same email, the cloud storage server only needs to download the target attachment from the mail server, and by setting the file metadata reference relationship, multiple client users can be implemented. Share the goal. Thereby, the network bandwidth, storage space and system resource consumption of the mail client can be saved.
  • the method may further include: the mail client acquires an operation of the client user; the mail client generates an access request corresponding to the operation according to the operation, and the access request is used to request access to the N stored by the cloud storage server. Part or all of the data information of at least one of the files; the mail client sends an access request to the cloud storage server; and the mail client receives part or all of the data of at least one of the N files sent by the cloud storage server according to the access request information.
  • Client users can access files saved by the cloud storage server, such as online preview or download.
  • a client user can access a file in a file list of a mail client, and the file list can be a client user saved by the cloud storage service.
  • the file name of the file is also composed of the keywords of the file.
  • the client user performs a double-click operation on a file name in the file list.
  • the mail client can generate an access request corresponding to the operation according to the operation, and send the request to the cloud storage server.
  • the cloud storage server searches for the data information in the file according to the access request, and sends the data information in the file to the mail client.
  • the client user may only need to view some content (data information) in the file, then the online preview function of the cloud storage server may be utilized, and the content in the file may be viewed without downloading the entire file. In this way, the traffic consumption of the mail client can be saved.
  • the file retrieval interface (standard interface) of the cloud storage server can be directly called, and the file browsing interface can be used for file browsing or downloading.
  • FIG. 4 shows a schematic block diagram of a cloud storage server 400 in accordance with an embodiment of the present invention.
  • the cloud storage service 400 records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively the accounts registered by the user on the cloud storage server and the mail server.
  • the cloud storage server 400 includes a receiving unit 410, a determining unit 420, a login unit 430, a transmitting unit 440, a downloading unit 450, and an establishing unit 460.
  • the receiving unit 410 can receive the mail identifier and the cloud storage user information sent by the mail client, and the mail identifier is an identifier of the target mail received by the mail client.
  • the determining unit 420 may determine whether the target attachment corresponding to the target mail has been stored according to the mail identifier.
  • the determining unit 420 may also determine a mail account corresponding to the cloud storage account.
  • the login unit 430 can log in to the mail server according to the mail account.
  • the sending unit 440 can send a mail identifier to the mail server.
  • the download unit 450 can download the target attachment from the mail server according to the mail identifier.
  • the establishing unit 460 can establish a correspondence between the target attachment and the mail identifier.
  • the target attachment by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the cloud storage server 400 may further include: a generating unit and a first storage unit.
  • the generating unit may generate N file metadata and N file metadata identifier IDs according to the N files in the target attachment, wherein the N files are in one-to-one correspondence with the N file metadata, and the N file metadata and the The N file metadata IDs correspond one-to-one, N ⁇ 1;
  • the first storage unit can store N file metadata IDs and N file metadata, wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
  • the cloud storage server 400 may further include: an obtaining unit and a second storage unit.
  • the obtaining unit may obtain the file metadata identifier ID corresponding to the mail identifier according to the mail identifier; the obtaining unit may further acquire the file element according to the file metadata ID acquired by the obtaining unit.
  • the file metadata corresponding to the data ID; the second storage unit may store the file metadata to a storage space of the cloud storage account that does not store the file metadata.
  • the receiving unit 410 may further receive an access request sent by the mail client, where the access request is used to request access to some or all of the data information of the at least one of the N files.
  • the cloud storage server may further include a search unit.
  • the searching unit may search for part or all of the data information of at least one of the N files according to the access request received by the receiving unit 410; the sending unit 440 may further send part or all of the at least one of the N files to the mail client. Data information.
  • the cloud storage server 400 herein is embodied in the form of a functional unit.
  • the term "unit” herein may refer to an application specific integrated circuit (Application Specific) Integrated Circuit (ASIC), electronic circuitry, processor (eg, shared processor, proprietary processor or group processor, etc.) and memory, merge logic, and/or other support for executing one or more software or firmware programs A suitable component of the described functionality.
  • a person skilled in the art can understand that the cloud storage server 300 can be used to perform various processes and/or steps corresponding to the cloud storage server in the foregoing method embodiments. To avoid repetition, details are not described herein again.
  • FIG. 5 shows a schematic block diagram of a mail client 500 in accordance with an embodiment of the present invention.
  • the mail client 500 records the correspondence between the cloud storage account and the mail account, and the cloud storage account and the mail account are respectively the accounts registered by the user on the cloud storage server and the mail server.
  • the mail client 500 includes a receiving unit 510, an obtaining unit 520, and a transmitting unit 530.
  • the receiving unit 510 can receive the remaining part of the target mail except the target attachment of the target mail, and the rest of the target mail includes the mail header of the target mail.
  • the obtaining unit 520 can obtain the mail identifier from the mail header of the target mail.
  • the sending unit 530 can send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
  • the embodiment of the invention directly downloads the target attachment from the mail server, so that the mail client does not need to transit the target attachment, thereby saving the storage space and the traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the obtaining unit 520 is further configured to: acquire an operation of the client user.
  • the mail client 500 may further include a generating unit, configured to generate an access request corresponding to the operation according to the operation, where the access request is used to request access to part or all of the data information of the at least one of the N files stored by the cloud storage server.
  • the sending unit 530 is further configured to send an access request to the cloud storage server; the receiving unit 510 is further configured to receive part or all of the data information of the at least one of the N files sent by the cloud storage server according to the access request.
  • the mail client 500 herein is embodied in the form of a functional unit.
  • the term "unit” herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group). Processors, etc.) and memory, merge logic, and/or other suitable components that support the described functionality.
  • a person skilled in the art can understand that the mail client 500 can be used to perform various processes and/or steps corresponding to the mail client in the foregoing method embodiments. To avoid repetition, details are not described herein again.
  • FIG. 6 shows a schematic block diagram of a mail server 600 including a receiving unit 610, an authentication unit 620, and a transmitting unit 630, in accordance with an embodiment of the present invention.
  • the receiving unit 610 can receive a login request of the mail account.
  • the authentication unit 620 can perform login authentication on the mail account according to the login request.
  • the receiving unit 610 may further receive a download request sent by the cloud storage server, where the download request carries the mail identifier.
  • the sending unit 630 may send the target attachment corresponding to the mail identifier to the cloud storage server.
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • the mail server 600 herein is embodied in the form of a functional unit.
  • the term "unit” herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group). Processors, etc.) and memory, merge logic, and/or other suitable components that support the described functionality.
  • a person skilled in the art can understand that the mail server 600 can be used to perform various processes and/or steps corresponding to the mail server in the foregoing method embodiments. To avoid repetition, details are not described herein again.
  • FIG. 7 is a schematic block diagram of a cloud storage server 700 according to an embodiment of the present invention.
  • the cloud storage server 700 records the correspondence between the cloud storage account and the email account, and the cloud storage account And the mail account is the account registered by the user on the cloud storage server and the mail server respectively.
  • the cloud storage server 700 includes a transmitter 710, a receiver 720, a processor 730, a memory 740, and a bus system 750.
  • the transmitter 710, the receiver 720, the processor 730, and the memory 740 are connected by a bus system 750 for storing computer instructions for executing instructions stored in the memory 740 to control the transmitter.
  • 710 transmits a signal and controls the receiver 720 to receive the signal.
  • the receiver 720 can receive the mail identifier and the cloud storage user information sent by the mail client, and the mail identifier is the identifier of the target mail received by the mail client.
  • the processor 730 may determine, according to the mail identifier, whether the target attachment corresponding to the target email has been stored; when it is determined that the target attachment is not stored, determine the email account corresponding to the cloud storage account; and log in to the mail server according to the email account.
  • the sender 710 can send a mail identification to the mail server.
  • the processor 730 can also download the target attachment from the mail server according to the mail identifier; establish a correspondence between the target attachment and the mail identifier.
  • the target attachment by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the cloud storage server 700 may be specifically the cloud storage server 400 in the foregoing embodiment, and may be used to perform various steps and/or processes corresponding to the cloud storage server in the foregoing method embodiments.
  • the memory 740 can include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory.
  • the memory can also store information of the device type.
  • the processor 730 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
  • FIG. 8 is a schematic block diagram of a mail client 800 in accordance with an embodiment of the present invention.
  • the mail client 800 records the correspondence between the cloud storage account and the mail account, and the cloud storage account and the mail account are respectively the accounts registered by the user on the cloud storage server and the mail server.
  • the mail client 800 includes a transmitter 810, a receiver 820, a processor 830, a memory 840, and a bus system 850.
  • the transmitter 810, the receiver 820, the processor 830, and the memory 840 are connected by a bus system 850 for storing computer instructions for executing instructions stored in the memory 840 to control the transmitter.
  • 810 transmits a signal and controls the receiver 820 to receive the signal.
  • the receiver 820 can receive the remaining portion of the target mail except the target attachment of the target mail, and the rest of the target mail includes the header of the target mail.
  • the processor 830 can obtain the mail identifier from the mail header of the target mail.
  • the sender 810 can send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
  • the embodiment of the invention directly downloads the target attachment from the mail server, so that the mail client does not need to transit the target attachment, thereby saving the storage space and the traffic bandwidth of the mail client.
  • target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
  • the mail client 800 may be specifically the mail client 500 in the above embodiment, and may be used to perform various steps and/or processes corresponding to the mail client in the above method embodiment.
  • the memory 840 can include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory.
  • the memory can also store information of the device type.
  • the processor 830 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
  • FIG. 9 is a schematic block diagram of a mail server 900 in accordance with an embodiment of the present invention.
  • Mail service The 900 includes a transmitter 910, a receiver 920, a processor 930, a memory 940, and a bus system 950.
  • the transmitter 910, the receiver 920, the processor 930, and the memory 940 are connected by a bus system 950 for storing computer instructions for executing instructions stored in the memory 940 to control the transmitter.
  • 910 transmits a signal and controls the receiver 920 to receive the signal.
  • Receiver 920 can receive a login request for a mail account.
  • the processor 930 can perform login authentication on the mail account according to the login request.
  • the receiver 920 may further receive a download request sent by the cloud storage server, where the download request carries the email identifier.
  • the sender 910 can send a target attachment corresponding to the mail identifier to the cloud storage server.
  • the embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
  • the mail server 900 may be specifically the mail server 600 in the above embodiment, and may be used to perform various steps and/or processes corresponding to the mail server in the foregoing method embodiments.
  • the memory 940 can include read only memory and random access memory and provides instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory.
  • the memory can also store information of the device type.
  • the processor 930 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
  • the processor may be a central processing unit (CPU), and the processor may also be other general purpose processors, digital signal processors (DSPs), and application specific integrated circuits (ASICs). ), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the steps of the method may be directly implemented by the hardware processor, or by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in a memory, and the processor executes instructions in the memory, in combination with hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be directed to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed system, mobile terminal, and method may be implemented in other manners.
  • the mobile terminal embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, such as multiple units or groups. Pieces can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through a number of interfaces, mobile terminals or units, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • This functionality if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a mail attachment filing method and a cloud storage server. The method comprises: receiving a mail identifier and a cloud storage account sent by a mail client, the mail identifier being an identifier of a target mail received by the mail client; determining, according to the mail identifier, whether a target attachment corresponding to the target mail has been stored in a cloud storage server; when it is determined that the target attachment is not stored in the cloud storage server, determining a mail account corresponding to the cloud storage account; logging into a mail server according to the mail account; sending the mail identifier to the mail server; downloading the target attachment from the mail server according to the mail identifier; and establishing a correlation between the target attachment and the mail identifier. The embodiment of the present invention can save the storage space and the traffic bandwidth of a mail client by means of directly downloading a target attachment from a mail server.

Description

归档邮件附件的方法和云存储服务器Method of archiving email attachments and cloud storage server 技术领域Technical field
本发明涉及通信领域,并且更具体地,涉及归档邮件附件的方法和云存储服务器。The present invention relates to the field of communications and, more particularly, to a method of archiving a mail attachment and a cloud storage server.
背景技术Background technique
在日常工作和商务活动中,邮件扮演着非常重要的角色。在邮件沟通过程中,文件一般作为邮件附件传递。由于邮件附件中一般会包括一些重要的文件,定期将邮件附件进行归档已经成为邮件客户端的通用做法。一般情况下,邮件附件可以归档到邮件客户端本地、邮件服务器或者云存储服务器。Mail plays a very important role in daily work and business activities. In the process of mail communication, files are generally delivered as email attachments. Since email attachments generally include some important files, archiving email attachments on a regular basis has become a common practice for mail clients. In general, email attachments can be archived to the mail client local, mail server, or cloud storage server.
现有的邮件客户端在归档邮件附件时,主要有归档到本地和归档到云存储服务器这两种做法。但是,将邮件附件归档在本地,文件易丢失,并且检索附件的速度也比较慢。由于存储容量有限,邮件客户端还会定期清理本地缓存的邮件附件。那么对于已删除的文件,用户无法进行检索或访问。并且在本地存储的邮件附件,容易被窥探,个人隐私无法很好的得到保护。When an existing mail client archives a mail attachment, there are mainly two methods of archiving to the local and archiving to the cloud storage server. However, archiving email attachments locally, files are easily lost, and attachments are slower to retrieve. Due to limited storage capacity, the mail client also periodically cleans up locally cached email attachments. Then the user cannot retrieve or access the deleted file. And the mail attachments stored locally are easy to be snooped, and personal privacy cannot be well protected.
当邮件附件归档到云存储服务器时,与邮件附件归档到本地类似,邮件客户端也会定期清理本地缓存的邮件附件。当用户需要查找该附件时,邮件客户端优先从本地检索,本地检索不到时,再从云存储服务器中检索邮件附件,并从云存储服务器中下载邮件附件。这种邮件附件归档到云存储服务器的方法,虽然规避了一些本地归档即邮件客户端归档的问题,但其归档的效率非常低,浪费了邮件客户端的带宽消耗和系统资源。并且当多个邮件客户端归档同一封邮件时,会加大邮件服务器和云存储服务器的并发负荷和资源消耗。When an email attachment is archived to a cloud storage server, similar to the email attachment being archived locally, the mail client periodically cleans up the locally cached email attachments. When the user needs to find the attachment, the mail client preferentially retrieves from the local, and when the local search fails, the email attachment is retrieved from the cloud storage server, and the email attachment is downloaded from the cloud storage server. The method of archiving such email attachments to the cloud storage server avoids some local archiving, that is, the problem of mail client archiving, but its archiving efficiency is very low, which wastes the bandwidth consumption and system resources of the mail client. And when multiple mail clients archive the same email, the concurrent load and resource consumption of the mail server and the cloud storage server are increased.
发明内容Summary of the invention
本发明实施例提供了一种归档邮件附件的方法和云存储服务器,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the invention provides a method for archiving an email attachment and a cloud storage server, which can save storage space and traffic bandwidth of the mail client.
第一方面,提供了一种归档邮件附件的方法,应用于云存储服务器,云存储服务器中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,该方法包括:接收邮件客户端发送的邮件标识和云存储账号,邮件标识为邮件客户端接收到的目标邮件的标识;根据邮件标识确定云存储服务器中是否已存储目标邮件对应的目标附件;当确定云存储服务器中未存储目标附件时,确定云存储账号对应的邮件账号;根据邮件账号登录邮件服务器;向邮件服务器发送邮件标识;根据邮件标识从邮件服务器中下载目标附件;建立目标附件与邮件标识的对应关系。In a first aspect, a method for archiving an email attachment is provided, which is applied to a cloud storage server, wherein a cloud storage server records a correspondence between a cloud storage account and a mail account, and the cloud storage account and the email account are respectively a user in the cloud storage server and The account registered by the mail server includes: receiving the mail identifier and the cloud storage account sent by the mail client, the mail identifier is an identifier of the target mail received by the mail client; determining whether the target mail is stored in the cloud storage server according to the mail identifier Corresponding target attachment; when determining that the target attachment is not stored in the cloud storage server, determining the email account corresponding to the cloud storage account; logging in to the mail server according to the email account; sending the email identifier to the mail server; downloading the target attachment from the mail server according to the email identifier ; establish the correspondence between the target attachment and the mail identifier.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
结合第一方面,在第一方面的第一种可能的实现方式中,该方法还包括:根据目标附件中的N个文件生成N个文件元数据和N个文件元数据标识ID,其中,N个文件与N个文件元数据一一对应,N个文件元数据与N个文件元数据ID一一对应,N≥1;存储N个文件元数据ID和N个文件元数据,其中,N个文件元数据ID和邮件标识是对应存储地。With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes: generating N file metadata and N file metadata identifier IDs according to N files in the target attachment, where, The files correspond to the N file metadata one by one, the N file metadata and the N file metadata IDs correspond one-to-one, N≥1; store N file metadata IDs and N file metadata, wherein N The file metadata ID and the mail identifier are the corresponding storage locations.
通过设置云存储账号和元数据的引用(对应)关系,使得云存储账号或者与云存储账号对应的邮件账号可以共享只在云存储服务器上存储的一份目标附件。By setting a reference (correspondence) relationship between the cloud storage account and the metadata, the cloud storage account or the email account corresponding to the cloud storage account can share a target attachment stored only on the cloud storage server.
结合第一方面的上述可能的实现方式,在第一方面的第二种可能 的实现方式中,该方法还包括:当确定云存储服务器中已存储了目标附件时,根据邮件标识获取与邮件标识对应的文件元数据标识ID;根据文件元数据ID获取与文件元数据ID对应的文件元数据;将文件元数据存储至未存储文件元数据的云存储账号的存储空间。In combination with the above possible implementation of the first aspect, the second possibility in the first aspect The method further includes: when it is determined that the target attachment is stored in the cloud storage server, obtaining a file metadata identifier ID corresponding to the mail identifier according to the mail identifier; and acquiring, according to the file metadata ID, the file metadata ID File metadata; store file metadata to the storage space of a cloud storage account that does not store file metadata.
结合第一方面的上述可能的实现方式,在第一方面的第三种可能的实现方式中,该方法还包括:接收邮件客户端发送的访问请求,访问请求用于请求访问N个文件中的至少一个文件的部分或全部数据信息;根据访问请求查找N个文件中的至少一个文件的部分或全部数据信息;向邮件客户端发送N个文件中的至少一个文件的部分或全部数据信息。With reference to the foregoing possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes: receiving an access request sent by a mail client, where the access request is used to request access to the N files. Part or all of the data information of the at least one file; searching for part or all of the data information of the at least one of the N files according to the access request; and transmitting some or all of the data information of the at least one of the N files to the mail client.
邮件客户端需要访问文件时,只需要在云存储服务器进行检索,这样检索范围更广、效率更高,同时能够减少邮件客户端本地的资源消耗。When the mail client needs to access the file, it only needs to search on the cloud storage server, so that the retrieval scope is wider and more efficient, and the local resource consumption of the mail client can be reduced.
第二方面,提供了一种归档邮件附件的方法,应用于邮件客户端,邮件客户端中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,该方法包括:接收目标邮件中除了目标邮件的目标附件之外的其余部分,目标邮件的其余部分包括目标邮件的邮件头;从目标邮件的邮件头中获取邮件标识;向云存储服务器发送邮件标识和云存储账号,以便于云存储服务器根据所述邮件标识和云存储账号从邮件服务器中下载目标附件。The second aspect provides a method for archiving an email attachment, which is applied to a mail client, where a correspondence between a cloud storage account and a mail account is recorded in the mail client, and the cloud storage account and the email account are respectively the user in the cloud storage server and The account registered by the mail server, the method includes: receiving the remaining part of the target mail except the target attachment of the target mail, the rest of the target mail includes the mail header of the target mail; obtaining the mail identifier from the mail header of the target mail; The cloud storage server sends the email identifier and the cloud storage account, so that the cloud storage server downloads the target attachment from the mail server according to the email identifier and the cloud storage account.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
结合第二方面,在第二方面的第一种可能的实现方式中,该方法还包括:获取客户端用户的操作;根据操作生成与操作对应的访问请 求,访问请求用于请求访问云存储服务器存储的N个文件中的至少一个文件的部分或全部数据信息;向云存储服务器发送访问请求;接收云存储服务器根据访问请求发送的N个文件中的至少一个文件的部分或全部数据信息。With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: acquiring an operation of the client user; and generating an access corresponding to the operation according to the operation Obtaining, the access request is used to request access to part or all of the data information of at least one of the N files stored by the cloud storage server; sending an access request to the cloud storage server; receiving the N files sent by the cloud storage server according to the access request Part or all of the data information for at least one file.
第三方面,提供了一种归档邮件附件的方法,应用于邮件服务器,该方法包括:接收邮件账号的登录请求;根据登录请求对邮件账号进行登录鉴权;在登录鉴权成功时,接收云存储服务器发送的下载请求,其中,下载请求携带邮件标识;向云存储服务器发送与邮件标识对应的目标附件。The third aspect provides a method for archiving an email attachment, which is applied to a mail server, and the method includes: receiving a login request of the email account; performing login authentication on the email account according to the login request; and receiving the cloud when the login authentication is successful The download request sent by the storage server, wherein the download request carries the mail identifier; and the target attachment corresponding to the mail identifier is sent to the cloud storage server.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
第四方面,提供了一种云存储服务器,云存储服务器中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,包括:接收单元,用于接收邮件客户端发送的邮件标识和云存储用户信息,邮件标识为邮件客户端接收到的目标邮件的标识;确定单元,用于根据邮件标识确定是否已存储目标邮件对应的目标附件;确定单元还用于,当确定未存储目标附件时,确定云存储账号对应的邮件账号;登录单元,用于根据邮件账号登录邮件服务器;发送单元,用于向邮件服务器发送邮件标识;下载单元,用于根据邮件标识从邮件服务器中下载目标附件;建立单元,用于建立目标附件与邮件标识的对应关系。The fourth aspect provides a cloud storage server, where the cloud storage server records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively registered by the user on the cloud storage server and the mail server, including: The receiving unit is configured to receive the mail identifier and the cloud storage user information sent by the mail client, where the mail identifier is an identifier of the target mail received by the mail client, and the determining unit is configured to determine, according to the mail identifier, whether the target corresponding to the target mail is stored The determining unit is further configured to: when it is determined that the target accessory is not stored, determine a mail account corresponding to the cloud storage account; the login unit is configured to log in to the mail server according to the mail account; and the sending unit is configured to send the mail identifier to the mail server; The unit is configured to download a target attachment from the mail server according to the mail identifier; and establish a unit, configured to establish a correspondence between the target attachment and the mail identifier.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。 On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
第四方面的云存储服务器可以包括用于执行第一方面或第一方面的任一可能的实现方式中的方法的单元,用于执行第一方面或第一方面的任一方面的可能实现方式中的方法。The cloud storage server of the fourth aspect may comprise means for performing the method of the first aspect or any of the possible implementations of the first aspect, for performing a first aspect or a possible implementation of any of the aspects of the first aspect The method in .
第五方面,提供了一种邮件客户端,邮件客户端中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,该邮件客户端包括:接收单元,用于接收目标邮件中除了目标邮件的目标附件之外的其余部分,目标邮件的其余部分包括目标邮件的邮件头;获取单元,用于从目标邮件的邮件头中获取邮件标识;发送单元,用于向云存储服务器发送邮件标识和云存储账号,以便于云存储服务器根据所述邮件标识和云存储账号从邮件服务器中下载目标附件。In a fifth aspect, a mail client is provided, wherein a correspondence between a cloud storage account and a mail account is recorded in the mail client, and the cloud storage account and the mail account are respectively an account registered by the user on the cloud storage server and the mail server, and the email is The client includes: a receiving unit, configured to receive a remaining part of the target mail except the target attachment of the target mail, the rest of the target mail includes a mail header of the target mail; and an obtaining unit, configured to obtain the mail header of the target mail The mailing unit is configured to send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
第五方面的邮件客户端可以包括用于执行第二方面或第二方面的任一可能的实现方式中的方法的单元,用于执行第二方面或第二方面的任一方面的可能实现方式中的方法。The mail client of the fifth aspect may comprise means for performing the method of the second aspect or any of the possible implementations of the second aspect, for performing a possible implementation of the second aspect or any aspect of the second aspect The method in .
第六方面,提供了一种邮件服务器,该邮件服务器包括:接收单元,用于接收邮件账号的登录请求;鉴权单元,用于根据登录请求对所述邮件账号进行登录鉴权;在登录鉴权成功时,接收单元还用于接收云存储服务器发送的下载请求,其中,下载请求携带邮件标识;发送单元,用于向云存储服务器发送与邮件标识对应的目标附件。According to a sixth aspect, a mail server is provided, the mail server includes: a receiving unit, configured to receive a login request of a mail account; and an authentication unit configured to perform login authentication on the mail account according to the login request; When the right is successful, the receiving unit is further configured to receive a download request sent by the cloud storage server, where the download request carries the mail identifier, and the sending unit is configured to send the target attachment corresponding to the mail identifier to the cloud storage server.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
第六方面的邮件服务器可以包括用于执行第三方面或第三方面 的任一可能的实现方式中的方法的单元,用于执行第三方面或第三方面的任一方面的可能实现方式中的方法。The mail server of the sixth aspect may include the third aspect or the third aspect for performing A unit of a method in any of the possible implementations, for performing the method in a possible implementation of the third aspect or any aspect of the third aspect.
第七方面,提供了一种云存储服务器,该云存储服务器中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,该云存储服务器包括:发送器、接收器、处理器,存储器和总线系统。其中,该接收器、该发送器、该存储器和该处理器通过该总线系统相连,该存储器用于存储计算机指令,该处理器用于运行该计算机指令执行第一方面或第一方面的任意可能的实现方式中的方法。The seventh aspect provides a cloud storage server, wherein the cloud storage server records a correspondence between a cloud storage account and a mail account, where the cloud storage account and the email account are respectively an account registered by the user on the cloud storage server and the mail server, The cloud storage server includes: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for executing the computer instructions to perform any of the first aspect or the first aspect The method in the implementation.
第八方面,提供了一种邮件客户端,该邮件客户端中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号,该邮件客户端包括:发送器、接收器、处理器,存储器和总线系统。其中,该接收器、该发送器、该存储器和该处理器通过该总线系统相连,该存储器用于存储计算机指令,该处理器用于运行该计算机指令执行第二方面或第二方面的任意可能的实现方式中的方法。In an eighth aspect, a mail client is provided, where a correspondence between a cloud storage account and a mail account is recorded, and the cloud storage account and the mail account are respectively an account registered by the user on the cloud storage server and the mail server, The mail client includes: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for operating the computer instructions to perform any of the second or second aspects The method in the implementation.
第九方面,提供了一种邮件服务器,该邮件服务器包括:发送器、接收器、处理器,存储器和总线系统。其中,该接收器、该发送器、该存储器和该处理器通过该总线系统相连,该存储器用于存储计算机指令,该处理器用于运行该计算机指令执行第三方面或第三方面的任意可能的实现方式中的方法。In a ninth aspect, a mail server is provided, the mail server comprising: a transmitter, a receiver, a processor, a memory, and a bus system. Wherein the receiver, the transmitter, the memory and the processor are connected by the bus system for storing computer instructions for executing the computer instructions to perform any of the third or third aspects The method in the implementation.
第十方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。A tenth aspect, a computer readable medium for storing a computer program, the computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
第十一方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。In an eleventh aspect, a computer readable medium is provided for storing a computer program comprising instructions for performing the method of any of the second aspect or any of the possible implementations of the second aspect.
第十二方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第三方面或第三方面的任意可能的实现 方式中的方法的指令。A twelfth aspect, a computer readable medium for storing a computer program, the computer program comprising any possible implementation for performing the third aspect or the third aspect The instructions of the method in the way.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.
图1是根据本发明一个实施例的归档邮件附件的方法的示意性流程图。1 is a schematic flow chart of a method of archiving a mail attachment according to an embodiment of the present invention.
图2是根据本发明另一个实施例的归档邮件附件的方法的示意性流程图。2 is a schematic flow chart of a method of archiving a mail attachment according to another embodiment of the present invention.
图3是根据本发明另一个实施例的归档邮件附件的方法的示意性流程图。3 is a schematic flow chart of a method of archiving a mail attachment according to another embodiment of the present invention.
图4是根据本发明实施例的云存储服务器的示意性框图。4 is a schematic block diagram of a cloud storage server in accordance with an embodiment of the present invention.
图5是根据本发明实施例的邮件客户端的示意性框图。Figure 5 is a schematic block diagram of a mail client in accordance with an embodiment of the present invention.
图6是根据本发明实施例的邮件服务器的示意性框图。6 is a schematic block diagram of a mail server in accordance with an embodiment of the present invention.
图7是根据本发明另一实施例的云存储服务器的示意性框图。FIG. 7 is a schematic block diagram of a cloud storage server according to another embodiment of the present invention.
图8是根据本发明另一实施例的邮件客户端的示意性框图。FIG. 8 is a schematic block diagram of a mail client according to another embodiment of the present invention.
图9是根据本发明另一实施例的邮件服务器的示意性框图。9 is a schematic block diagram of a mail server in accordance with another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1是根据本发明实施例的归档邮件附件的方法的示意性流程 图。图1的方法主要由邮件客户端、邮件服务器和云存储服务器执行。1 is a schematic flow diagram of a method of archiving an email attachment according to an embodiment of the present invention Figure. The method of Figure 1 is primarily performed by a mail client, a mail server, and a cloud storage server.
101,邮件客户端接收目标邮件除了目标邮件的目标附件之外的其余部分,目标邮件的其余部分包括目标邮件的邮件头。101. The mail client receives the target mail except for the target attachment of the target mail, and the rest of the target mail includes the mail header of the target mail.
目标邮件是指邮件客户端接收到的新邮件,目标附件是新邮件中的附件。邮件客户端接收的邮件中不包括目标附件实体,可以只包括与目标附件实体有关的信息。The target mail is the new mail received by the mail client, and the target attachment is the attachment in the new mail. The target attachment entity is not included in the mail received by the mail client, and may only include information related to the target attachment entity.
需要说明的是,如果邮件客户端接收到的邮件没有与附件实体相关的信息,也就不需要进行附件归档。因此,本发明实施例仅描述邮件中存在附件实体相关的信息的情况。It should be noted that if the mail received by the mail client does not have information related to the attached entity, the attachment archive is not required. Therefore, the embodiment of the present invention only describes the case where there is information related to the attachment entity in the mail.
102,邮件客户端从目标邮件的邮件头中获取邮件标识。102. The mail client obtains the mail identifier from the mail header of the target mail.
通过解析邮件,可以从邮件头中获取邮件标识。邮件标识与目标邮件对应,即根据邮件标识能确定唯一的目标邮件。邮件标识中可以包括与目标附件有关的信息,根据该信息可以确定该目标附件,也可以直接根据该邮件标识可以确定目标附件。By parsing the message, you can get the message ID from the message header. The mail identifier corresponds to the target mail, that is, the unique target mail can be determined according to the mail identifier. The mail identifier may include information related to the target attachment, and the target attachment may be determined according to the information, or the target attachment may be directly determined according to the mail identifier.
103,邮件客户端向云存储服务器发送邮件标识和云存储用户信息。103. The mail client sends the mail identifier and the cloud storage user information to the cloud storage server.
云存储用户信息可以用于指示云存储用户。例如,云存储用户信息中可以包括云存储用户的账号和/或密码。Cloud storage user information can be used to indicate cloud storage users. For example, the cloud storage user information may include an account and/or password of the cloud storage user.
邮件客户端可以通过调用云存储服务器的归档接口发送邮件标识和云存储用户信息。云存储服务器的归档接口可以是已经定义的云存储服务器的标准接口。The mail client can send the mail identifier and cloud storage user information by calling the archive interface of the cloud storage server. The archive interface of the cloud storage server can be the standard interface of the cloud storage server that has been defined.
104,云存储服务器根据邮件标识确定云存储服务器中是否已存储目标附件。104. The cloud storage server determines, according to the mail identifier, whether the target attachment is stored in the cloud storage server.
可选地,作为一个实施例,云存储服务器可以通过确定云存储服务器中未存储邮件标识确定云存储服务器中未存储目标附件。也就是说,只要云存储服务器中没有邮件标识,就说明云存储服务器中没有目标附件。只要云存储服务器中有邮件标识,就说明云存储服务器中有目标附件。Optionally, as an embodiment, the cloud storage server may determine that the target attachment is not stored in the cloud storage server by determining an unstored mail identifier in the cloud storage server. That is to say, as long as there is no mail identifier in the cloud storage server, there is no target attachment in the cloud storage server. As long as there is a mail identifier in the cloud storage server, there is a target attachment in the cloud storage server.
另外,云存储服务器还可以设置与邮件标识对应的(附件)归档 状态。归档状态表示附件的归档情况,可以是正在归档中和已归档两种情况。已归档表示该附件已经完成下载,并被存储在云存储服务器中;正在归档中表示该附件正在下载中,如果完成下载,归档状态自动更新为已归档。但无论是哪种归档状态,只要云存储服务器中存在归档状态,云存储服务器都不需要再存储目标附件。In addition, the cloud storage server can also set the (attachment) archive corresponding to the mail identifier. status. The archive status indicates the archive status of the attachment, which can be both in the archive and in the archived case. Archived indicates that the attachment has been downloaded and stored in the cloud storage server; the archive is indicating that the attachment is being downloaded, and if the download is completed, the archive status is automatically updated to archived. However, regardless of the archival status, as long as there is an archive state in the cloud storage server, the cloud storage server does not need to store the target attachment.
105,当云存储服务器确定云存储服务器中未存储目标附件时,云存储服务器向邮件服务器发送客户端用户信息和附件下载请求。105. When the cloud storage server determines that the target attachment is not stored in the cloud storage server, the cloud storage server sends the client user information and the attachment download request to the mail server.
附件下载请求可以携带邮件标识。客户端用户信息可以用于指示与云存储用户对应的客户端用户。附件下载请求可以用于请求邮件服务器在对客户端用户登录鉴权成功时发送与邮件标识对应的目标附件。The attachment download request can carry the email identifier. The client user information can be used to indicate a client user corresponding to the cloud storage user. The attachment download request may be used to request the mail server to send the target attachment corresponding to the mail identifier when the login authentication of the client user is successful.
具体地,云存储服务器通过云存储用户信息查找已存储地与云存储对应的客户端用户的客户端用户信息,并向邮件服务器发送该客户端用户信息和附件下载请求,例如向邮件服务器发送该客户端用户的账号和密码以及该附件下载请求。邮件服务器对该客户端用户进行登录鉴权或者邮件服务器判断该客户端用户是否已鉴权成功,并在鉴权成功后或者确定客户端用户已经鉴权成功后,根据接收到的云存储服务器发送的附件下载请求中的邮件标识查找目标邮件。Specifically, the cloud storage server searches for client user information of the client user corresponding to the cloud storage through the cloud storage user information, and sends the client user information and the attachment download request to the mail server, for example, sending the email server to the email server. The client user's account and password and the attachment download request. The mail server performs login authentication on the client user or the mail server determines whether the client user has successfully authenticated, and after the authentication succeeds or determines that the client user has successfully authenticated, sends the message according to the received cloud storage server. The message ID in the attachment download request finds the target message.
106,邮件服务器根据附件下载请求,向云存储服务器发送目标附件。106. The mail server sends the target attachment to the cloud storage server according to the attachment download request.
邮件服务器根据下载请求中携带的邮件标识,可以知道云存储服务器需要下载的附件,即该目标附件,并在查找到该目标附件后将该目标附件发送至云存储服务器。The mail server can know the attachment that the cloud storage server needs to download according to the email identifier carried in the download request, that is, the target attachment, and send the target attachment to the cloud storage server after finding the target attachment.
107,云存储服务器将目标附件与邮件标识存储在云存储服务器中。107. The cloud storage server stores the target attachment and the email identifier in the cloud storage server.
云存储服务器在接收到邮件服务器发送的目标附件后,将目标附件存储至该云存储服务器上,并存储该邮件标识。After receiving the target attachment sent by the mail server, the cloud storage server stores the target attachment to the cloud storage server and stores the mail identifier.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标 附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target is directly downloaded from the mail server. Attachments, so that you do not need to go through the target attachment of the mail client, which can save the storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
另外,从邮件服务器中下载邮件附件,大部分情况下都没有提供断点下载特性。如果下载过程中网络中断或者程序异常,则很有可能前功尽弃,需要重新下载。而本发明实施例提供的归档邮件附件的方法,云存储服务器具有断点下载功能,可以应对网络不稳定或者各类异常,在一定程度上能够节省流量消耗,缩短下载时间,从而能够提高用户体验。In addition, downloading email attachments from the mail server does not provide a breakpoint download feature in most cases. If the network is interrupted or the program is abnormal during the download process, it is very likely that you will lose all your efforts and need to download again. The method for archiving an email attachment provided by the embodiment of the present invention has a breakpoint download function, which can cope with network instability or various abnormalities, can save traffic consumption and shorten download time to a certain extent, thereby improving user experience. .
可选地,作为一个实施例,如图2所示,在101中,邮件客户端接收目标邮件除了所目标邮件的目标附件之外的其余部分之前,该方法还可以包括以下201~205步骤。Optionally, as an embodiment, as shown in FIG. 2, in 101, before the mail client receives the remaining part of the target mail except the target attachment of the target mail, the method may further include the following steps 201-205.
201,邮件客户端接收客户端用户的第一登录请求。201. The mail client receives a first login request of the client user.
第一登录请求可以携带客户端用户信息。客户端用户信息可以指示客户端用户,客户端用户信息中可以包括客户端用户的账号和/或密码。The first login request can carry client user information. The client user information may indicate the client user, and the client user information may include the account number and/or password of the client user.
202,根据第一登录请求,邮件服务器对邮件客户端进行第一登录鉴权。202. The mail server performs first login authentication on the mail client according to the first login request.
本发明实施例首先对邮件客户端进行登录鉴权,以验证发出登录请求的邮件客户端的真实身份。登录鉴权中利用邮件服务器对邮件客户端进行身份认证。此时,邮件服务器可以利用之前保存的账号和与之对应的密码与登录请求中携带的客户端用户的账号和与之对应的密码进行比对,当邮件服务器之前保存的账号和登录请求中携带的客户端用户的账号相同,并且邮件服务器之前保存的该账号的密码和登录请求中携带的客户端用户的账号的密码相同时,身份认证就可通过,即登录鉴权成功。In the embodiment of the present invention, login authentication is first performed on the mail client to verify the real identity of the mail client that issues the login request. In the login authentication, the mail server is used to authenticate the mail client. At this time, the mail server can use the previously saved account and the corresponding password to compare with the account of the client user carried in the login request and the password corresponding thereto, and carry the account and the login request saved before the mail server. When the account of the client user is the same, and the password of the account saved by the mail server and the password of the account of the client user carried in the login request are the same, the identity authentication can be passed, that is, the login authentication succeeds.
203,在第一登录鉴权成功时,邮件客户端向云存储服务器发送 云存储用户的第二登录请求和客户端用户信息。203. When the first login authentication succeeds, the mail client sends the cloud storage server to the cloud storage server. The second login request and client user information of the cloud storage user.
也就是说,当邮件服务器对邮件客户端鉴权成功后,云存储用户进行登录请求。该登录请求即第二登录请求携带云存储用户信息,该云存储用户信息可以包括云存储用户的账号和与之对应的密码。That is to say, after the mail server successfully authenticates the mail client, the cloud storage user makes a login request. The login request, that is, the second login request, carries cloud storage user information, and the cloud storage user information may include an account of the cloud storage user and a password corresponding thereto.
204,云存储服务器对云存储用户进行登录鉴权。204. The cloud storage server performs login authentication on the cloud storage user.
本发明实施例在对邮件客户端进行登录鉴权成功后,对云存储用户进行登录鉴权,以验证发出登录请求的云存储用户的真实身份。登录鉴权中利用的云存储服务器对云存储用户进行身份认证。此时,云存储服务器可以利用之前保存的账号和与之对应的密码与登录请求中携带的云存储用户的账号和与之对应的密码进行比对,当云存储服务器之前保存的账号和登录请求中携带的云存储用户的账号相同,并且云存储服务器之前保存的该账号的密码和登录请求中携带的云存储用户的账号的密码相同时,身份认证就可通过,即鉴权成功。After performing login authentication on the mail client, the embodiment of the present invention performs login authentication on the cloud storage user to verify the real identity of the cloud storage user who issues the login request. The cloud storage server used in the login authentication authenticates the cloud storage user. At this time, the cloud storage server can use the previously saved account and the corresponding password to compare with the account of the cloud storage user and the password corresponding to the login request, and the account and login request saved before the cloud storage server. When the account of the cloud storage user is the same, and the password of the account saved by the cloud storage server is the same as the password of the account of the cloud storage user carried in the login request, the identity authentication can be passed, that is, the authentication succeeds.
205,在登录鉴权成功时,云存储服务器对应地保存云存储用户信息和客户端用户信息。205. When the login authentication succeeds, the cloud storage server saves the cloud storage user information and the client user information correspondingly.
登录鉴权成功的同时,云存储服务器也就完成了客户端用户和云存储用户的绑定。同时,云存储服务器会保存客户端用户和云存储用户的绑定关系,即可以对应地保存云存储用户信息和客户端用户信息。与此同时,邮件客户端也会对应地保存云存储用户信息和客户端用户信息。At the same time that the login authentication succeeds, the cloud storage server completes the binding of the client user and the cloud storage user. At the same time, the cloud storage server saves the binding relationship between the client user and the cloud storage user, that is, the cloud storage user information and the client user information can be saved correspondingly. At the same time, the mail client also stores cloud storage user information and client user information correspondingly.
在完成客户端用户和云存储用户的首次绑定之后,只要该客户端用户在邮件客户端登录,云存储服务器就会自动对与该客户端用户绑定的云存储用户进行登录鉴权。也就是说,只要客户端用户成功登录,云存储用户就会自动登录云存储服务器。After the first binding of the client user and the cloud storage user is completed, the cloud storage server automatically performs login authentication on the cloud storage user bound to the client user as long as the client user logs in to the mail client. In other words, as long as the client user successfully logs in, the cloud storage user will automatically log in to the cloud storage server.
图3是根据本发明另一实施例的归档邮件附件的方法的示意性流程图。图3所示的方法可以由邮件服务器执行,该云存储服务器中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号。FIG. 3 is a schematic flowchart of a method of archiving a mail attachment according to another embodiment of the present invention. The method shown in FIG. 3 can be executed by a mail server. The cloud storage server records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively the accounts registered by the user on the cloud storage server and the mail server.
310,接收邮件客户端发送的邮件标识和云存储账号,邮件标识 为邮件客户端接收到的目标邮件的标识。310, receiving a mail identifier and a cloud storage account sent by the mail client, and the mail identifier The ID of the destination message received for the mail client.
具体地,该步骤具体可以参照图1所示的步骤103,103中的云存储用户信息可以包括云存储账号,为了简洁,在此不再赘述。Specifically, the cloud storage user information may be included in the step 103, and the cloud storage user information may include a cloud storage account. For brevity, details are not described herein again.
320,根据邮件标识确定云存储服务器中是否已存储目标邮件对应的目标附件。320. Determine, according to the email identifier, whether the target attachment corresponding to the target email is stored in the cloud storage server.
具体地,该步骤具体可以参照图1所示的步骤104,为了简洁,在此不再赘述。For details, refer to step 104 shown in FIG. 1 for details. For brevity, details are not described herein again.
330,当确定云存储服务器中未存储目标附件时,确定云存储账号对应的邮件账号。330. When it is determined that the target attachment is not stored in the cloud storage server, determine a mail account corresponding to the cloud storage account.
340根据邮件账号登录邮件服务器。340 Log in to the mail server according to the mail account.
350,向邮件服务器发送邮件标识。350. Send a mail identifier to the mail server.
具体地,步骤330~350具体可以参照图1所示的步骤105,为了简洁,在此不再赘述。For details, the steps 105 to 350 may be specifically referred to the step 105 shown in FIG. 1 . For brevity, details are not described herein again.
360,根据邮件标识从邮件服务器中下载目标附件。360, download the target attachment from the mail server according to the mail identifier.
具体地,该步骤具体可以参照图1所示的步骤106,为了简洁,在此不再赘述。For details, refer to step 106 shown in FIG. 1 for details. For brevity, details are not described herein again.
370,建立目标附件与邮件标识的对应关系。370. Establish a correspondence between the target attachment and the email identifier.
具体地,该步骤具体可以参照图1所示的步骤107,107中可以建立并保存目标附件与邮件标识的对应关系,为了简洁,在此不再赘述。Specifically, in this step, the corresponding relationship between the target attachment and the mail identifier can be established and saved in the steps 107 and 107 shown in FIG. 1 . For brevity, details are not described herein again.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
可选地,作为一个实施例,该方法还可以包括以下步骤:云存储服务器根据目标附件中的N个文件生成N个文件元数据和N个文件 元数据标识ID,其中,N个文件与N个文件元数据一一对应,N个文件元数据与N个文件元数据ID一一对应,N≥1;云存储服务器存储N个文件元数据ID和N个文件元数据,其中,N个文件元数据ID和邮件标识是对应存储地。Optionally, as an embodiment, the method may further include the following steps: the cloud storage server generates N file metadata and N files according to the N files in the target attachment. The metadata identifier ID, wherein the N files are in one-to-one correspondence with the N file metadata, the N file metadata and the N file metadata IDs are in one-to-one correspondence, N≥1; and the cloud storage server stores N file metadata IDs. And N file metadata, wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
除了目标附件实体之外,云存储服务器同时可以保存目标附件中的文件的文件元数据(文件描述信息)。In addition to the target attachment entity, the cloud storage server can also save file metadata (file description information) of files in the target attachment.
下面的表1是目标附件中的文件元数据的一个例子。应注意,表1的例子不是限制性的,本发明实施例的文件元数据不限于此,可以根据需要删除部分字段,或者增加其他字段。Table 1 below is an example of file metadata in the target attachment. It should be noted that the example of Table 1 is not restrictive, and the file metadata of the embodiment of the present invention is not limited thereto, and some fields may be deleted as needed, or other fields may be added.
表1 文件元数据Table 1 File metadata
序号Serial number 字段Field 字段描述Field description
11 文件IDFile ID 文件的唯一标识Unique identifier of the file
22 文件名file name 文件名称file name
33 文件大小File size 文件的大小File size
44 文件类型file type 文件的类型Type of file
55 更新时间Update time 文件内容的更新时间Update time of file content
66 路径path 文件的存储路径File storage path
另外,每个文件元数据会对应一个文件元数据ID,云存储服务器在存储文件元数据的同时也会将邮件标识和存储文件元数据ID对应地进行存储。例如,云存储服务器可以表格的形式存储邮件标识和文件元数据ID之间的对应关系。这样根据存储邮件标识就可以找到文件元数据ID,进而可以找到对应地文件元数据。In addition, each file metadata corresponds to a file metadata ID, and the cloud storage server stores the file metadata together with the mail identifier and the storage file metadata ID. For example, the cloud storage server may store the correspondence between the mail identifier and the file metadata ID in the form of a table. In this way, according to the stored mail identifier, the file metadata ID can be found, and the corresponding file metadata can be found.
可选地,作为一个实施例,该方法还可以包括:当云存储服务器确定云存储服务器中已存储了目标附件时,云存储服务器根据邮件标识获取与邮件标识对应的文件元数据标识ID;云存储服务器根据文件元数据ID获取与文件元数据ID对应的文件元数据;云存储服务器将文件元数据存储至文件元数据的云存储账号的存储空间。其中,该云存储账号之前未存储该文件元数据,属于首次保存,实际上,也只 需要保存一次。Optionally, as an embodiment, the method may further include: when the cloud storage server determines that the target attachment is stored in the cloud storage server, the cloud storage server acquires a file metadata identifier ID corresponding to the mail identifier according to the mail identifier; The storage server acquires file metadata corresponding to the file metadata ID according to the file metadata ID; the cloud storage server stores the file metadata to a storage space of the cloud storage account of the file metadata. The cloud storage account does not store the file metadata before, and belongs to the first save. In fact, only Need to save once.
当云存储服务器确定云存储服务器中已存储了目标附件时,就不需要再从邮件服务器下载目标附件了,而是只需要找到目标附件中的文件的文件元数据,并将该元数据复制一份到自己的账户,即该云存储账号即可。例如,云存储服务器可预先以表格地形式存储地邮件标识和文件元数据ID之间的对应关系。当云存储服务器需要查找该文件元数据时,可以根据邮件标识找到与该邮件标识对应地文件元数据ID,进而可以根据文件元数据ID找到对应地文件元数据。然后将该文件元数据存储到该云存储账号的存储空间。When the cloud storage server determines that the target attachment is already stored in the cloud storage server, it is no longer necessary to download the target attachment from the mail server, but only needs to find the file metadata of the file in the target attachment, and copy the metadata. Share it to your account, that is, the cloud storage account. For example, the cloud storage server may pre-store the correspondence between the mail identifier and the file metadata ID in a form of a table. When the cloud storage server needs to find the file metadata, the file metadata ID corresponding to the mail identifier may be found according to the mail identifier, and the corresponding file metadata may be found according to the file metadata ID. The file metadata is then stored to the storage space of the cloud storage account.
可选地,文件元数据可以包括拥有者标识ID。那么,在该云存储用户复制文件元数据后,可以将文件元数据中的拥有者标识ID更改为自己的ID,其他文件元数据保持不变。Alternatively, the file metadata may include an owner identification ID. Then, after the cloud storage user copies the file metadata, the owner ID in the file metadata can be changed to its own ID, and the other file metadata remains unchanged.
在本发明实施例中,当不同的客户端用户收到同一封邮件时,云存储服务器只需要从邮件服务器下载一次目标附件,并通过设置文件元数据引用关系,就可以实现多个客户端用户共享目标。从而可以节省邮件客户端的网络带宽、存储空间以及系统资源的消耗。In the embodiment of the present invention, when different client users receive the same email, the cloud storage server only needs to download the target attachment from the mail server, and by setting the file metadata reference relationship, multiple client users can be implemented. Share the goal. Thereby, the network bandwidth, storage space and system resource consumption of the mail client can be saved.
需要说明的是,当不同的客户端用户收到同一封邮件时,只有最先调用归档接口的请求,也就是最先进行归档邮件的客户端用户,才会触发云存储服务器从邮件服务器下载附件并生成文件元数据的动作。It should be noted that when different client users receive the same email, only the first request to invoke the archive interface, that is, the client user who first archives the email, will trigger the cloud storage server to download the attachment from the mail server. And the action of generating file metadata.
可选地,作为一个实施例,该方法还可以包括:邮件客户端获取客户端用户的操作;邮件客户端根据操作生成与操作对应的访问请求,访问请求用于请求访问云存储服务器存储的N个文件中的至少一个文件的部分或全部数据信息;邮件客户端向云存储服务器发送访问请求;邮件客户端接收云存储服务器根据访问请求发送的N个文件中的至少一个文件的部分或全部数据信息。Optionally, as an embodiment, the method may further include: the mail client acquires an operation of the client user; the mail client generates an access request corresponding to the operation according to the operation, and the access request is used to request access to the N stored by the cloud storage server. Part or all of the data information of at least one of the files; the mail client sends an access request to the cloud storage server; and the mail client receives part or all of the data of at least one of the N files sent by the cloud storage server according to the access request information.
客户端用户可以对云存储服务器保存的文件进行访问,例如在线预览或者下载。例如,客户端用户可以对邮件客户端的文件列表中的文件进行访问,文件列表可以是由云存储服务保存的该客户端用户的 文件的文件名构成的,也可以是文件的关键字构成的。Client users can access files saved by the cloud storage server, such as online preview or download. For example, a client user can access a file in a file list of a mail client, and the file list can be a client user saved by the cloud storage service. The file name of the file is also composed of the keywords of the file.
例如,在本发明实施例中,客户端用户对文件列表中的某一个文件名进行双击操作,此时,邮件客户端根据该操作可以生成与该操作对应的访问请求,并发送至云存储服务器。云存储服务器根据访问请求查找该文件中的数据信息,并向邮件客户端发送该文件中的数据信息。For example, in the embodiment of the present invention, the client user performs a double-click operation on a file name in the file list. At this time, the mail client can generate an access request corresponding to the operation according to the operation, and send the request to the cloud storage server. . The cloud storage server searches for the data information in the file according to the access request, and sends the data information in the file to the mail client.
需要说明的是,客户端用户可能只需要查看文件中的部分内容(数据信息),那么就可以利用云存储服务器的在线预览功能,不需要下载整个文件,就可以查看文件中的内容。这样,可以节省邮件客户端的流量消耗。It should be noted that the client user may only need to view some content (data information) in the file, then the online preview function of the cloud storage server may be utilized, and the content in the file may be viewed without downloading the entire file. In this way, the traffic consumption of the mail client can be saved.
还需要说明的是,邮件客户端需要检索邮件附件时,可以直接调用云存服务器的文件检索接口(标准接口),通过文件检索接口可以进行文件浏览或下载操作。It should also be noted that when the mail client needs to retrieve the mail attachment, the file retrieval interface (standard interface) of the cloud storage server can be directly called, and the file browsing interface can be used for file browsing or downloading.
上文中结合图1至图3,详细描述了根据本发明实施例的归档邮件附件的方法,下面将结合图4,详细描述根据本发明实施例的云存储服务器。The method for archiving an email attachment according to an embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 3, and a cloud storage server according to an embodiment of the present invention will be described in detail below with reference to FIG.
图4示出了本发明实施例的云存储服务器400的示意性框图。该云存储服务400中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号。该云存储服务器400包括接收单元410、确定单元420、登录单元430、发送单元440、下载单元450和建立单元460。FIG. 4 shows a schematic block diagram of a cloud storage server 400 in accordance with an embodiment of the present invention. The cloud storage service 400 records the correspondence between the cloud storage account and the email account, and the cloud storage account and the email account are respectively the accounts registered by the user on the cloud storage server and the mail server. The cloud storage server 400 includes a receiving unit 410, a determining unit 420, a login unit 430, a transmitting unit 440, a downloading unit 450, and an establishing unit 460.
接收单元410可接收邮件客户端发送的邮件标识和云存储用户信息,邮件标识为邮件客户端接收到的目标邮件的标识。The receiving unit 410 can receive the mail identifier and the cloud storage user information sent by the mail client, and the mail identifier is an identifier of the target mail received by the mail client.
确定单元420可根据邮件标识确定是否已存储目标邮件对应的目标附件。The determining unit 420 may determine whether the target attachment corresponding to the target mail has been stored according to the mail identifier.
当确定未存储目标附件时,确定单元420还可确定云存储账号对应的邮件账号。When it is determined that the target attachment is not stored, the determining unit 420 may also determine a mail account corresponding to the cloud storage account.
登录单元430可根据邮件账号登录邮件服务器。The login unit 430 can log in to the mail server according to the mail account.
发送单元440可向邮件服务器发送邮件标识。 The sending unit 440 can send a mail identifier to the mail server.
下载单元450可根据邮件标识从邮件服务器中下载目标附件。The download unit 450 can download the target attachment from the mail server according to the mail identifier.
建立单元460可建立目标附件与邮件标识的对应关系。The establishing unit 460 can establish a correspondence between the target attachment and the mail identifier.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
可选地,作为一个实施例,云存储服务器400还可以包括:生成单元和第一存储单元。此时,生成单元可根据目标附件中的N个文件生成N个文件元数据和N个文件元数据标识ID,其中,N个文件与N个文件元数据一一对应,N个文件元数据与N个文件元数据ID一一对应,N≥1;第一存储单元可存储N个文件元数据ID和N个文件元数据,其中,N个文件元数据ID和邮件标识是对应存储地。Optionally, as an embodiment, the cloud storage server 400 may further include: a generating unit and a first storage unit. At this time, the generating unit may generate N file metadata and N file metadata identifier IDs according to the N files in the target attachment, wherein the N files are in one-to-one correspondence with the N file metadata, and the N file metadata and the The N file metadata IDs correspond one-to-one, N≥1; the first storage unit can store N file metadata IDs and N file metadata, wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
可选地,作为一个实施例,云存储服务器400还可以包括:获取单元和第二存储单元。此时,当确定单元420确定已存储了目标附件时,获取单元可以根据邮件标识获取与邮件标识对应的文件元数据标识ID;获取单元还可以根据获取单元获取的文件元数据ID获取与文件元数据ID对应的文件元数据;第二存储单元可以根据将文件元数据存储至未存储文件元数据的云存储账号的存储空间。Optionally, as an embodiment, the cloud storage server 400 may further include: an obtaining unit and a second storage unit. At this time, when the determining unit 420 determines that the target attachment has been stored, the obtaining unit may obtain the file metadata identifier ID corresponding to the mail identifier according to the mail identifier; the obtaining unit may further acquire the file element according to the file metadata ID acquired by the obtaining unit. The file metadata corresponding to the data ID; the second storage unit may store the file metadata to a storage space of the cloud storage account that does not store the file metadata.
可选地,作为一个实施例,接收单元410还可以接收邮件客户端发送的访问请求,访问请求用于请求访问N个文件中的至少一个文件的部分或全部数据信息。此时,云存储服务器还可以包括查找单元。查找单元可以根据接收单元410接收的访问请求查找与N个文件中的至少一个文件的部分或全部数据信息;发送单元440还可以向邮件客户端发送N个文件中的至少一个文件的部分或全部数据信息。Optionally, as an embodiment, the receiving unit 410 may further receive an access request sent by the mail client, where the access request is used to request access to some or all of the data information of the at least one of the N files. At this time, the cloud storage server may further include a search unit. The searching unit may search for part or all of the data information of at least one of the N files according to the access request received by the receiving unit 410; the sending unit 440 may further send part or all of the at least one of the N files to the mail client. Data information.
需要说明的是,这里的云存储服务器400以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(Application Specific  Integrated Circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。本领域技术人员可以理解,云存储服务器300可以用于执行上述方法实施例中与云存储服务器对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be noted that the cloud storage server 400 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an application specific integrated circuit (Application Specific) Integrated Circuit (ASIC), electronic circuitry, processor (eg, shared processor, proprietary processor or group processor, etc.) and memory, merge logic, and/or other support for executing one or more software or firmware programs A suitable component of the described functionality. A person skilled in the art can understand that the cloud storage server 300 can be used to perform various processes and/or steps corresponding to the cloud storage server in the foregoing method embodiments. To avoid repetition, details are not described herein again.
图5示出了本发明实施例的邮件客户端500的示意性框图。该邮件客户端500中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号。该邮件客户端500包括接收单元510、获取单元520和发送单元530。FIG. 5 shows a schematic block diagram of a mail client 500 in accordance with an embodiment of the present invention. The mail client 500 records the correspondence between the cloud storage account and the mail account, and the cloud storage account and the mail account are respectively the accounts registered by the user on the cloud storage server and the mail server. The mail client 500 includes a receiving unit 510, an obtaining unit 520, and a transmitting unit 530.
接收单元510可接收目标邮件中除了目标邮件的目标附件之外的其余部分,目标邮件的其余部分包括目标邮件的邮件头。The receiving unit 510 can receive the remaining part of the target mail except the target attachment of the target mail, and the rest of the target mail includes the mail header of the target mail.
获取单元520可从目标邮件的邮件头中获取邮件标识。The obtaining unit 520 can obtain the mail identifier from the mail header of the target mail.
发送单元530可向云存储服务器发送邮件标识和云存储账号,以便于云存储服务器根据邮件标识和云存储账号从邮件服务器中下载目标附件。The sending unit 530 can send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
本发明实施例直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the invention directly downloads the target attachment from the mail server, so that the mail client does not need to transit the target attachment, thereby saving the storage space and the traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
可选地,作为一个实施例,获取单元520还用于:获取客户端用户的操作。此时,邮件客户端500还可以包括生成单元,可用于根据操作生成与操作对应的访问请求,访问请求用于请求访问云存储服务器存储的N个文件中的至少一个文件的部分或全部数据信息;发送单元530还可用于向云存储服务器发送访问请求;接收单元510还可用于接收云存储服务器根据访问请求发送的N个文件中的至少一个文件的部分或全部数据信息。 Optionally, as an embodiment, the obtaining unit 520 is further configured to: acquire an operation of the client user. At this time, the mail client 500 may further include a generating unit, configured to generate an access request corresponding to the operation according to the operation, where the access request is used to request access to part or all of the data information of the at least one of the N files stored by the cloud storage server. The sending unit 530 is further configured to send an access request to the cloud storage server; the receiving unit 510 is further configured to receive part or all of the data information of the at least one of the N files sent by the cloud storage server according to the access request.
需要说明的是,这里的邮件客户端500以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(Application Specific Integrated Circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。本领域技术人员可以理解,邮件客户端500可以用于执行上述方法实施例中与邮件客户端对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be noted that the mail client 500 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group). Processors, etc.) and memory, merge logic, and/or other suitable components that support the described functionality. A person skilled in the art can understand that the mail client 500 can be used to perform various processes and/or steps corresponding to the mail client in the foregoing method embodiments. To avoid repetition, details are not described herein again.
图6示出了本发明实施例的邮件服务器600的示意性框图,该邮件服务器600包括接收单元610、鉴权单元620和发送单元630。FIG. 6 shows a schematic block diagram of a mail server 600 including a receiving unit 610, an authentication unit 620, and a transmitting unit 630, in accordance with an embodiment of the present invention.
接收单元610可接收邮件账号的登录请求。The receiving unit 610 can receive a login request of the mail account.
鉴权单元620可根据登录请求对所述邮件账号进行登录鉴权。The authentication unit 620 can perform login authentication on the mail account according to the login request.
在鉴权单元620对登录鉴权成功时,接收单元610还可接收云存储服务器发送的下载请求,其中,下载请求携带邮件标识。When the authentication unit 620 successfully authenticates the login, the receiving unit 610 may further receive a download request sent by the cloud storage server, where the download request carries the mail identifier.
发送单元630可向云存储服务器发送与邮件标识对应的目标附件。The sending unit 630 may send the target attachment corresponding to the mail identifier to the cloud storage server.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
需要说明的是,这里的邮件服务器600以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(Application Specific Integrated Circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。本领域技术人员可以理解,邮件服务器600可以用于执行上述方法实施例中与邮件服务器对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be noted that the mail server 600 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group). Processors, etc.) and memory, merge logic, and/or other suitable components that support the described functionality. A person skilled in the art can understand that the mail server 600 can be used to perform various processes and/or steps corresponding to the mail server in the foregoing method embodiments. To avoid repetition, details are not described herein again.
图7是本发明实施例的云存储服务器700的示意性框图。云存储服务器700中记录有云存储账号与邮件账号的对应关系,云存储账号 及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号。云存储服务器700包括发送器710、接收器720、处理器730、存储器740和总线系统750。其中,发送器710、接收器720、处理器730和存储器740通过总线系统750相连,该存储器740用于存储计算机指令,该处理器730用于执行该存储器740存储的指令,以控制该发送器710发送信号,并控制该接收器720接收信号。FIG. 7 is a schematic block diagram of a cloud storage server 700 according to an embodiment of the present invention. The cloud storage server 700 records the correspondence between the cloud storage account and the email account, and the cloud storage account And the mail account is the account registered by the user on the cloud storage server and the mail server respectively. The cloud storage server 700 includes a transmitter 710, a receiver 720, a processor 730, a memory 740, and a bus system 750. The transmitter 710, the receiver 720, the processor 730, and the memory 740 are connected by a bus system 750 for storing computer instructions for executing instructions stored in the memory 740 to control the transmitter. 710 transmits a signal and controls the receiver 720 to receive the signal.
接收器720可接收邮件客户端发送的邮件标识和云存储用户信息,邮件标识为邮件客户端接收到的目标邮件的标识。The receiver 720 can receive the mail identifier and the cloud storage user information sent by the mail client, and the mail identifier is the identifier of the target mail received by the mail client.
处理器730可根据邮件标识确定是否已存储目标邮件对应的目标附件;当确定未存储目标附件时,确定云存储账号对应的邮件账号;根据邮件账号登录邮件服务器。The processor 730 may determine, according to the mail identifier, whether the target attachment corresponding to the target email has been stored; when it is determined that the target attachment is not stored, determine the email account corresponding to the cloud storage account; and log in to the mail server according to the email account.
发送器710可向邮件服务器发送邮件标识。The sender 710 can send a mail identification to the mail server.
处理器730还可根据邮件标识从邮件服务器中下载目标附件;建立目标附件与邮件标识的对应关系。The processor 730 can also download the target attachment from the mail server according to the mail identifier; establish a correspondence between the target attachment and the mail identifier.
本发明实施例通过先判断云存储服务器中是否已存储目标附件,并当云存储服务器中未存储目标附件时,直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。In the embodiment of the present invention, by first determining whether the target attachment is stored in the cloud storage server, and when the target attachment is not stored in the cloud storage server, the target attachment is directly downloaded from the mail server, so that the target attachment is not required to be transited through the mail client, thereby saving The storage space and traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
应理解,云存储服务器700可以具体为上述实施例中的云存储服务器400,并且可以用于执行上述方法实施例中与云存储服务器对应的各个步骤和/或流程。可选地,该存储器740可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器730可以用于执行存储器中存储的指令,并且当该处理器执行存储器中存储的指令时,该处理器用于执行上述方法实施例的各个步骤和/或流程。 It should be understood that the cloud storage server 700 may be specifically the cloud storage server 400 in the foregoing embodiment, and may be used to perform various steps and/or processes corresponding to the cloud storage server in the foregoing method embodiments. Alternatively, the memory 740 can include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory can also store information of the device type. The processor 730 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
图8是本发明实施例的邮件客户端800的示意性框图。该邮件客户端800中记录有云存储账号与邮件账号的对应关系,云存储账号及邮件账号分别为用户在云存储服务器及邮件服务器注册的账号。该邮件客户端800包括发送器810、接收器820、处理器830、存储器840和总线系统850。其中,发送器810、接收器820、处理器830和存储器840通过总线系统850相连,该存储器840用于存储计算机指令,该处理器830用于执行该存储器840存储的指令,以控制该发送器810发送信号,并控制该接收器820接收信号。FIG. 8 is a schematic block diagram of a mail client 800 in accordance with an embodiment of the present invention. The mail client 800 records the correspondence between the cloud storage account and the mail account, and the cloud storage account and the mail account are respectively the accounts registered by the user on the cloud storage server and the mail server. The mail client 800 includes a transmitter 810, a receiver 820, a processor 830, a memory 840, and a bus system 850. The transmitter 810, the receiver 820, the processor 830, and the memory 840 are connected by a bus system 850 for storing computer instructions for executing instructions stored in the memory 840 to control the transmitter. 810 transmits a signal and controls the receiver 820 to receive the signal.
接收器820可接收目标邮件中除了目标邮件的目标附件之外的其余部分,目标邮件的其余部分包括目标邮件的邮件头。The receiver 820 can receive the remaining portion of the target mail except the target attachment of the target mail, and the rest of the target mail includes the header of the target mail.
处理器830可从目标邮件的邮件头中获取邮件标识。The processor 830 can obtain the mail identifier from the mail header of the target mail.
发送器810可向云存储服务器发送邮件标识和云存储账号,以便于云存储服务器根据邮件标识和云存储账号从邮件服务器中下载目标附件。The sender 810 can send the mail identifier and the cloud storage account to the cloud storage server, so that the cloud storage server downloads the target attachment from the mail server according to the mail identifier and the cloud storage account.
本发明实施例直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the invention directly downloads the target attachment from the mail server, so that the mail client does not need to transit the target attachment, thereby saving the storage space and the traffic bandwidth of the mail client.
另一方面,存储在云存储服务器上的目标附件可以永久归档,不会丢失。并且只在云存储服务器上存储一份该目标附件,可以节省云存储服务器的存储空间。On the other hand, target attachments stored on the cloud storage server can be permanently archived without loss. And storing only one target attachment on the cloud storage server can save storage space of the cloud storage server.
应理解,邮件客户端800可以具体为上述实施例中的邮件客户端500,并且可以用于执行上述方法实施例中与邮件客户端对应的各个步骤和/或流程。可选地,该存储器840可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器830可以用于执行存储器中存储的指令,并且当该处理器执行存储器中存储的指令时,该处理器用于执行上述方法实施例的各个步骤和/或流程。It should be understood that the mail client 800 may be specifically the mail client 500 in the above embodiment, and may be used to perform various steps and/or processes corresponding to the mail client in the above method embodiment. Optionally, the memory 840 can include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory can also store information of the device type. The processor 830 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
图9是本发明实施例的邮件服务器900的示意性框图。邮件服务 器900包括发送器910、接收器920、处理器930、存储器940和总线系统950。其中,发送器910、接收器920、处理器930和存储器940通过总线系统950相连,该存储器940用于存储计算机指令,该处理器930用于执行该存储器940存储的指令,以控制该发送器910发送信号,并控制该接收器920接收信号。FIG. 9 is a schematic block diagram of a mail server 900 in accordance with an embodiment of the present invention. Mail service The 900 includes a transmitter 910, a receiver 920, a processor 930, a memory 940, and a bus system 950. The transmitter 910, the receiver 920, the processor 930, and the memory 940 are connected by a bus system 950 for storing computer instructions for executing instructions stored in the memory 940 to control the transmitter. 910 transmits a signal and controls the receiver 920 to receive the signal.
接收器920可接收邮件账号的登录请求。 Receiver 920 can receive a login request for a mail account.
处理器930可根据登录请求对所述邮件账号进行登录鉴权。The processor 930 can perform login authentication on the mail account according to the login request.
在处理器930对登录鉴权成功时,接收器920还可接收云存储服务器发送的下载请求,其中,下载请求携带邮件标识。When the processor 930 successfully authenticates the login, the receiver 920 may further receive a download request sent by the cloud storage server, where the download request carries the email identifier.
发送器910可向云存储服务器发送与邮件标识对应的目标附件。The sender 910 can send a target attachment corresponding to the mail identifier to the cloud storage server.
本发明实施例通过直接从邮件服务器下载目标附件,从而不需要经过邮件客户端中转目标附件,能够节省邮件客户端的存储空间和流量带宽。The embodiment of the present invention can save the storage space and the traffic bandwidth of the mail client by downloading the target attachment directly from the mail server, so that the target attachment is not required to be transferred through the mail client.
应理解,邮件服务器900可以具体为上述实施例中的邮件服务器600,并且可以用于执行上述方法实施例中与邮件服务器对应的各个步骤和/或流程。可选地,该存储器940可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器930可以用于执行存储器中存储的指令,并且当该处理器执行存储器中存储的指令时,该处理器用于执行上述方法实施例的各个步骤和/或流程。It should be understood that the mail server 900 may be specifically the mail server 600 in the above embodiment, and may be used to perform various steps and/or processes corresponding to the mail server in the foregoing method embodiments. Optionally, the memory 940 can include read only memory and random access memory and provides instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory can also store information of the device type. The processor 930 can be configured to execute instructions stored in a memory, and when the processor executes instructions stored in the memory, the processor is operative to perform various steps and/or processes of the method embodiments described above.
应理解,在本发明实施例中,该处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general purpose processors, digital signal processors (DSPs), and application specific integrated circuits (ASICs). ), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的 方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software. Combined with the disclosed embodiments of the present invention The steps of the method may be directly implemented by the hardware processor, or by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in a memory, and the processor executes instructions in the memory, in combination with hardware to perform the steps of the above method. To avoid repetition, it will not be described in detail here.
应理解,在本发明实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be directed to the embodiments of the present invention. The implementation process constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、移动终端和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the system, the mobile terminal, and the unit described above may be referred to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、移动终端和方法,可以通过其它的方式实现。例如,以上所描述的移动终端实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组 件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,移动终端或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, mobile terminal, and method may be implemented in other manners. For example, the mobile terminal embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, such as multiple units or groups. Pieces can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through a number of interfaces, mobile terminals or units, and may be electrical, mechanical or otherwise.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
该功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。This functionality, if implemented as a software functional unit and sold or used as a standalone product, can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上该,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以该权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It is intended to be covered by the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (9)

  1. 一种归档邮件附件的方法,应用于云存储服务器,其特征在于,所述云存储服务器中记录有云存储账号与邮件账号的对应关系,所述云存储账号及所述邮件账号分别为用户在所述云存储服务器及邮件服务器注册的账号,所述方法包括:A method for archiving an email attachment is applied to a cloud storage server, wherein the cloud storage server records a correspondence between a cloud storage account and a mail account, where the cloud storage account and the email account are respectively The cloud storage server and the account registered by the mail server, the method includes:
    接收邮件客户端发送的邮件标识和所述云存储账号,所述邮件标识为所述邮件客户端接收到的目标邮件的标识;Receiving a mail identifier sent by the mail client and the cloud storage account, where the mail identifier is an identifier of the target mail received by the mail client;
    根据所述邮件标识确定所述云存储服务器中是否已存储所述目标邮件对应的目标附件;Determining, according to the mail identifier, whether the target attachment corresponding to the target mail has been stored in the cloud storage server;
    当确定所述云存储服务器中未存储所述目标附件时,确定所述云存储账号对应的所述邮件账号;Determining, by the cloud storage server, that the target attachment is not stored, determining the email account corresponding to the cloud storage account;
    根据所述邮件账号登录所述邮件服务器;Logging in to the mail server according to the mail account;
    向所述邮件服务器发送所述邮件标识;Sending the mail identifier to the mail server;
    根据所述邮件标识从所述邮件服务器中下载所述目标附件;Downloading the target attachment from the mail server according to the mail identifier;
    建立所述目标附件与所述邮件标识的对应关系。Establishing a correspondence between the target attachment and the email identifier.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    根据所述目标附件中的N个文件生成N个文件元数据和N个文件元数据标识ID,其中,所述N个文件与所述N个文件元数据一一对应,所述N个文件元数据与所述N个文件元数据ID一一对应,N≥1;Generating N file metadata and N file metadata identifiers according to the N files in the target attachment, wherein the N files are in one-to-one correspondence with the N file metadata, and the N file elements Data is in one-to-one correspondence with the N file metadata IDs, N≥1;
    存储所述N个文件元数据ID和所述N个文件元数据,其中,所述N个文件元数据ID和所述邮件标识是对应存储地。And storing the N file metadata IDs and the N file metadata, wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    当确定所述云存储服务器中已存储了所述目标附件时,根据所述邮件标识获取与所述邮件标识对应的文件元数据标识ID;When it is determined that the target attachment is stored in the cloud storage server, acquiring a file metadata identifier ID corresponding to the mail identifier according to the mail identifier;
    根据所述文件元数据ID获取与所述文件元数据ID对应的文件元数据;Obtaining, according to the file metadata ID, file metadata corresponding to the file metadata ID;
    将所述文件元数据存储至未存储所述文件元数据的所述云存储 账号的存储空间。Storing the file metadata to the cloud storage that does not store the file metadata The storage space of the account.
  4. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    接收所述邮件客户端发送的访问请求,所述访问请求用于请求访问所述N个文件中的至少一个文件的部分或全部数据信息;Receiving an access request sent by the mail client, where the access request is used to request access to part or all of the data information of at least one of the N files;
    根据所述访问请求查找所述N个文件中的至少一个文件的部分或全部数据信息;Searching for part or all of the data information of at least one of the N files according to the access request;
    向所述邮件客户端发送所述N个文件中的至少一个文件的部分或全部数据信息。Sending part or all of the data information of at least one of the N files to the mail client.
  5. 一种云存储服务器,其特征在于,所述云存储服务器中记录有云存储账号与邮件账号的对应关系,所述云存储账号及所述邮件账号分别为用户在所述云存储服务器及邮件服务器注册的账号,包括:A cloud storage server, wherein the cloud storage server records a correspondence between a cloud storage account and a mail account, where the cloud storage account and the email account are respectively the user in the cloud storage server and the mail server Registered accounts, including:
    接收单元,用于接收邮件客户端发送的邮件标识和云存储用户信息,所述邮件标识为所述邮件客户端接收到的目标邮件的标识;a receiving unit, configured to receive a mail identifier and a cloud storage user information sent by the mail client, where the mail identifier is an identifier of the target mail received by the mail client;
    确定单元,用于根据所述邮件标识确定是否已存储所述目标邮件对应的目标附件;a determining unit, configured to determine, according to the mail identifier, whether a target attachment corresponding to the target mail has been stored;
    所述确定单元还用于,当确定未存储所述目标附件时,确定所述云存储账号对应的所述邮件账号;The determining unit is further configured to: when it is determined that the target accessory is not stored, determine the email account corresponding to the cloud storage account;
    登录单元,用于根据所述邮件账号登录所述邮件服务器;a login unit, configured to log in to the mail server according to the email account;
    发送单元,用于向所述邮件服务器发送所述邮件标识;a sending unit, configured to send the mail identifier to the mail server;
    下载单元,用于根据所述邮件标识从所述邮件服务器中下载所述目标附件;a downloading unit, configured to download the target attachment from the mail server according to the mail identifier;
    建立单元,用于建立所述目标附件与所述邮件标识的对应关系。And a establishing unit, configured to establish a correspondence between the target attachment and the email identifier.
  6. 根据权利要求5所述的云存储服务器,其特征在于,所述云存储服务器还包括:The cloud storage server according to claim 5, wherein the cloud storage server further comprises:
    生成单元,用于根据所述目标附件中的N个文件生成N个文件元数据和N个文件元数据标识ID,其中,所述N个文件与所述N个文件元数据一一对应,所述N个文件元数据与所述N个文件元数据ID一一对应,N≥1;a generating unit, configured to generate N file metadata and N file metadata identifiers according to the N files in the target attachment, where the N files are in one-to-one correspondence with the N file metadata, The N file metadata is in one-to-one correspondence with the N file metadata IDs, N≥1;
    第一存储单元,用于存储所述N个文件元数据ID和所述N个文 件元数据,其中,所述N个文件元数据ID和所述邮件标识是对应存储地。a first storage unit, configured to store the N file metadata IDs and the N texts Piece metadata, wherein the N file metadata IDs and the mail identifiers are corresponding storage locations.
  7. 根据权利要求5所述的云存储服务器,其特征在于,所述云存储服务器还包括:The cloud storage server according to claim 5, wherein the cloud storage server further comprises:
    获取单元,用于当确定单元确定已存储了所述目标附件时,根据所述邮件标识获取与所述邮件标识对应的文件元数据标识ID;An obtaining unit, configured to: when the determining unit determines that the target accessory has been stored, acquire a file metadata identifier ID corresponding to the mail identifier according to the mail identifier;
    所述获取单元还用于根据所述获取单元获取的所述文件元数据ID获取与所述文件元数据ID对应的文件元数据;The obtaining unit is further configured to acquire file metadata corresponding to the file metadata ID according to the file metadata ID acquired by the acquiring unit;
    第二存储单元,用于将所述文件元数据存储至未存储所述文件元数据的所述云存储账号的存储空间。And a second storage unit, configured to store the file metadata to a storage space of the cloud storage account that does not store the file metadata.
  8. 根据权利要求6所述的云存储服务器,其特征在于,所述接收单元还用于:接收所述邮件客户端发送的访问请求,所述访问请求用于请求访问所述N个文件中的至少一个文件的部分或全部数据信息;The cloud storage server according to claim 6, wherein the receiving unit is further configured to: receive an access request sent by the mail client, where the access request is used to request access to at least the N files Part or all of the data information of a file;
    所述云存储服务器还包括查找单元,用于根据所述访问请求查找所述N个文件中的至少一个文件的部分或全部数据信息;The cloud storage server further includes a searching unit, configured to search for part or all of the data information of the at least one of the N files according to the access request;
    所述发送单元还用于向所述邮件客户端发送所述N个文件中的至少一个文件的部分或全部数据信息。The sending unit is further configured to send part or all of the data information of the at least one of the N files to the mail client.
  9. 一种云存储服务器,其特征在于,所述云存储服务器中记录有云存储账号与邮件账号的对应关系,所述云存储账号及所述邮件账号分别为用户在所述云存储服务器及邮件服务器注册的账号,所述云存储服务器包括:发送器、接收器、处理器,存储器和总线系统,其中,所述接收器、所述发送器、所述存储器和所述处理器通过所述总线系统相连,所述存储器用于存储计算机指令,所述处理器用于运行所述计算机指令执行权利要求1至4中任一项所述的方法。 A cloud storage server, wherein the cloud storage server records a correspondence between a cloud storage account and a mail account, where the cloud storage account and the email account are respectively the user in the cloud storage server and the mail server a registered account, the cloud storage server comprising: a transmitter, a receiver, a processor, a memory and a bus system, wherein the receiver, the transmitter, the memory, and the processor pass the bus system Connected, the memory is for storing computer instructions for executing the computer instructions to perform the method of any one of claims 1 to 4.
PCT/CN2016/112151 2015-12-31 2016-12-26 Mail attachment filing method and cloud storage server WO2017114365A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511031872.5 2015-12-31
CN201511031872.5A CN105450513B (en) 2015-12-31 2015-12-31 File the method and cloud storage service device of Email attachment

Publications (1)

Publication Number Publication Date
WO2017114365A1 true WO2017114365A1 (en) 2017-07-06

Family

ID=55560315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112151 WO2017114365A1 (en) 2015-12-31 2016-12-26 Mail attachment filing method and cloud storage server

Country Status (2)

Country Link
CN (1) CN105450513B (en)
WO (1) WO2017114365A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039870A (en) * 2018-08-20 2018-12-18 平安科技(深圳)有限公司 E-mail sending method, system, computer equipment and storage medium
CN109213987A (en) * 2018-11-13 2019-01-15 国家海洋局第海洋研究所 A kind of ice buoy satellite data processing method
CN112783826A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Object storage management method and device, electronic equipment and computer storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450513B (en) * 2015-12-31 2019-02-26 华为技术有限公司 File the method and cloud storage service device of Email attachment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079837A (en) * 2006-12-22 2007-11-28 腾讯科技(深圳)有限公司 An Email management system, method and user terminal
JP2008022210A (en) * 2006-07-12 2008-01-31 Nakayo Telecommun Inc Electronic mail transfer system and mail server
JP2009098820A (en) * 2007-10-15 2009-05-07 Hitachi Software Eng Co Ltd Electronic mail management system
KR20120075519A (en) * 2010-11-22 2012-07-09 이병배 Email system using group-code and sign-code
CN103491143A (en) * 2013-09-05 2014-01-01 新浪网技术(中国)有限公司 File sharing method and device
CN103595615A (en) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 Methods and terminals for sending and receiving E-mail
CN103903124A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 E-mail processing method and apparatus
CN104734943A (en) * 2015-03-17 2015-06-24 深圳市连用科技有限公司 Processing method and system for E-mails
CN105450513A (en) * 2015-12-31 2016-03-30 华为技术有限公司 Method for filing mail attachments, and cloud storage server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4838631B2 (en) * 2006-05-17 2011-12-14 富士通株式会社 Document access management program, document access management apparatus, and document access management method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008022210A (en) * 2006-07-12 2008-01-31 Nakayo Telecommun Inc Electronic mail transfer system and mail server
CN101079837A (en) * 2006-12-22 2007-11-28 腾讯科技(深圳)有限公司 An Email management system, method and user terminal
JP2009098820A (en) * 2007-10-15 2009-05-07 Hitachi Software Eng Co Ltd Electronic mail management system
KR20120075519A (en) * 2010-11-22 2012-07-09 이병배 Email system using group-code and sign-code
CN103595615A (en) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 Methods and terminals for sending and receiving E-mail
CN103903124A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 E-mail processing method and apparatus
CN103491143A (en) * 2013-09-05 2014-01-01 新浪网技术(中国)有限公司 File sharing method and device
CN104734943A (en) * 2015-03-17 2015-06-24 深圳市连用科技有限公司 Processing method and system for E-mails
CN105450513A (en) * 2015-12-31 2016-03-30 华为技术有限公司 Method for filing mail attachments, and cloud storage server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039870A (en) * 2018-08-20 2018-12-18 平安科技(深圳)有限公司 E-mail sending method, system, computer equipment and storage medium
CN109213987A (en) * 2018-11-13 2019-01-15 国家海洋局第海洋研究所 A kind of ice buoy satellite data processing method
CN109213987B (en) * 2018-11-13 2023-05-19 自然资源部第一海洋研究所 Ice buoy satellite data processing method
CN112783826A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Object storage management method and device, electronic equipment and computer storage medium
CN112783826B (en) * 2019-11-08 2023-10-27 阿里巴巴集团控股有限公司 Object storage management method, device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN105450513A (en) 2016-03-30
CN105450513B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109040252B (en) File transmission method, system, computer device and storage medium
US11363019B2 (en) Domain join
US10326792B2 (en) Virus intrusion route identification device, virus intrusion route identification method, and program
US9860187B2 (en) Enrolling a mobile device with an enterprise mobile device management environment
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
JP5429912B2 (en) Authentication system, authentication server, service providing server, authentication method, and program
US10353689B2 (en) Method for transferring a file via a mobile device and mobile device for performing same
WO2016026399A1 (en) Service processing method, apparatus and server
US11126590B2 (en) Data processing method and device
US10645001B2 (en) Information transmission method and apparatus, device and storage medium
CN110895603B (en) Multi-system account information integration method and device
CN107545048B (en) Processing method and device for encrypted compressed file
US20210044601A1 (en) Malicious data scan service
CN109246078B (en) Data interaction method and server
US9178860B2 (en) Out-of-path, content-addressed writes with untrusted clients
WO2017107961A1 (en) Backup system and method
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
CN107168765A (en) A kind of method and system of remote compilation software
CN105357110A (en) Mail sending method, device and system
CN109560953B (en) Method, terminal and server for connecting configuration file content management platform
US8959640B2 (en) Controlling anti-virus software updates
KR101575229B1 (en) User terminal for multi data searching and searching method thereof
US20140149516A1 (en) System and Method for License Enforcement of Email Message Recovery Application
WO2018192236A1 (en) Data file code reduction processing method, and server
WO2016106705A1 (en) Content sharing method, terminal, server and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16881154

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16881154

Country of ref document: EP

Kind code of ref document: A1