# Patent

## Title
Systems and methods for downloading attachments

## Abstract

A system for fetching multiple documents associated with a document from a server computer displays the document with an embedded document fetching icon on a client computer's monitor. In response to a single user selection of the document fetching icon, the system downloads from the server computer all the associated documents in a user-specified format to a user-specified location in the client computer.

## Background
FIELD OF THE INVENTION
The present invention relates generally to the field of electronic message transmission systems, and in particular to systems and methods for downloading multiple documents attached to a displayed document.
BACKGROUND
Email messaging is widely used for communicating information over the Internet. Besides the information in its message body, an email message often includes one or more attachments, e.g., photo images or text documents, that provide additional information related to the information in the message body. A recipient of the email message can download an attachment and view its content using an application program. However, when an email message has many attachments, the recipient has to repeat the tedious download operation many times, one for each attachment. Therefore, there is a need for systems and methods that make it easier for a user to download all attachments to an email message.
SUMMARY
A system for fetching multiple documents associated with a document from a server computer displays the document with an embedded document fetching icon on a client computer's monitor. In response to a single user selection of the document fetching icon, the system downloads from the server computer all the associated documents in a user-specified format to a user-specified location in the client computer.



BRIEF DESCRIPTION OF THE DRAWINGS
The aforementioned aspects of the invention as well as additional aspects will be more clearly understood as a result of the following detailed description of the various embodiments of the invention when taken in conjunction with the drawings. Like reference numerals refer to corresponding parts throughout the several views of the drawings.
FIG. 1 is a block diagram illustrating a client-server based email service system in accordance with some embodiments of the present invention.
FIG. 2A is a flowchart illustrating a set of client-side operations for displaying a requested email message having multiple attachments in accordance with some embodiments of the present invention.
FIG. 2B is a flowchart illustrating a set of server-side operations for delivering an email message having multiple attachments in accordance with some embodiments of the present invention.
FIG. 2C is a schematic screenshot of an email message having a download-all-attachments icon and multiple document identifiers in accordance with some embodiments of the present invention.
FIG. 3A is a flowchart illustrating a set of client-side operations for downloading multiple attachments associated with an email message in accordance with some embodiments of the present invention.
FIG. 3B is a flowchart illustrating a set of server-side operations for processing and conveying multiple attachments associated with a displayed email message to a client computer in accordance with some embodiments of the present invention.
FIGS. 3C and 3D show two schematic pop-up windows for receiving user instructions on a client computer in accordance with some embodiments of the present invention.
FIG. 4 is a block diagram illustrating an email server system for conveying multiple attachments in accordance with some embodiments of the present invention.
FIG. 5 is a block diagram of a client system or device in accordance with some embodiments of the present invention.



DESCRIPTION OF EMBODIMENTS
Overview
A client-server based email service system 100 as shown in FIG. 1 typically involves multiple clients 102, one or more servers 130 and a network 120 that connects the clients 102 to the servers 120. The network 120 may include the Internet, other wide area networks, local area networks, metropolitan area networks, wireless networks, etc.
In one embodiment, user A at client 102-1 writes an email message 110 addressed to user B using a client application 103, the message including multiple attachments. The email message and its attachments are delivered to the servers 130 at which user B has an email account. The servers 130 notify user B, who logs into the servers 130 from the client 102-2, of the arrival of the email message 110. If user B is interested in the email message, he may download the message from the servers 130 to the client 102-2 and read the downloaded message through a client application 104, which may or may not be the same as the client application 103.
When the email message is downloaded to the client 102-2, its attachments are not downloaded together with the email message to reduce the traffic on the network 120. Instead, the email message displayed at the client 102-2 includes a download-all-attachments icon corresponding to all the attachments associated with the email message. The displayed email message may also include separate icons for each of the email message's attachments. If user B is interested in getting a copy of all the attachments, he may do so by selecting the download-all-attachments icon. As a result, the client application 104 sends a document fetching request to the servers 130 for all the attachments. The servers 130, upon receipt of the document fetching request, locate all the attachments therein, process them in accordance with the document fetching request and send them back to client 102-2. If user C is another recipient of the email message 110, he may get the same message and its attachments from the servers 130 in the same manner. Note that the servers 130 may include multiple email servers, each having different sets of email accounts, and user B and user C may or may not be associated with the same email server.
Process and Example
FIGS. 2A-2C illustrate how an email message having multiple attachments is initially provided to a user in accordance with some embodiments of the present invention.
In particular, FIG. 2A is a flowchart illustrating a set of operations launched by a client computer for requesting and displaying the email message. The client computer first submits to an email server a request for downloading the email message (200). Since it is unknown whether the user will be interested in any of the attachments, the client computer only receives the email message itself (201), which may include information about a message subject, message participants, message body as well as identifying information (sometimes called metadata or meta information) about each attachment such as its name, size, type, etc.
Next, the email message is displayed by a client application on a computer monitor associated with the client computer. This procedure may include first displaying the message body and other relevant information (202) and then checking if the email message has any attachments (203). If there is no attachment (203—No), no further operation is required. Otherwise (203—Yes), the client application may display a download-all-attachments icon if the message has more than one attachment (204). Optionally, the client application may also display a document identifier for each individual attachment (205). In some embodiments, the email message is in the form of an HTML file and the client application is a web browser software.
FIG. 2B is a flowchart illustrating a set of operations by the email server to deliver the email message to the client computer upon receipt of the client request (210). First, the email server retrieves the requested email message from one or more storage devices (211). In some embodiments, the email server decomposes an incoming email message into multiple components and stores them on different storage devices, for reasons such as efficiency or system scalability. In such embodiments, the email server identifies the multiple components and reassembles them to reproduce the email message.
The email server also checks if the email message has any attachments (212), and if so, determines how many attachments are associated with the message (214). For each attachment, the email server may optionally create a document identifier (213). If the email message has more than one attachment, the email server creates a download-all-attachments icon for the email message (215). Finally, the email server inserts into the email message the download-all-attachments icon and, optionally, the document identifiers (216) and conveys the email message to the requesting client computer (217). In some embodiments, the email server is associated with a web server. The client request is first interpreted by the web server before reaching the email server and the email message created by the email server is converted into an HTML file by the web server before being delivered to the client computer. In some other embodiments, the email server assumes the functions performed by the web server. Therefore, it is able to directly process the client request, generate an HTML version of the requested email message and deliver the message to the requesting client computer.
FIG. 2C is a schematic screenshot of an email message having a download-all-attachments icon and multiple document identifiers. The email message includes a message subject 232, a list of all participants 233 (including the sender and recipients), and a message body 234. The email message also includes information about the three attachments associated with the email message, including the download-all-attachments icon 235 and three document identifiers 236, 237 and 238. In some embodiments, each document identifier includes a document type icon, the name and size of the attachment as well as a download icon. The selection of any download icon sends to the email server a download request for that particular attachment. In addition, the displayed email message includes links (e.g., HTML link tags) to several other email-supporting utilities 230, 231 and 239. In various embodiments these utilities may be located on the client, the email server, or some utilities may be located on the client while others are located on the email server.
If the user would like to have a copy of all three attachments, the user may download the three attachments separately by clicking each individual download icon, once for each attachment. For each download session, the user needs to specify a location in the client computer for storing the downloaded attachment. Alternatively, the user may attain the same result in a more straightforward fashion by clicking the download-all-attachments icon. As described in more detail below, a single user click on the download-all-attachments icon initiates the downloading of all attachments to the email message. Clicking on the download-all-attachments icon is also herein called user selection of the download-all-attachments icon.
FIGS. 3A-3D illustrate how multiple attachments associated with an email message are downloaded from an email server to a client computer by a single user selection of the download-all-attachments icon in accordance with some embodiments of the present invention.
FIG. 3A is a flowchart illustrating a set of operations occurring on the client computer during the course of downloading all the attachments. After receiving a user selection of the download-all-attachments icon (300), the client computer may optionally prompt the user for further information related to the attachments to be downloaded (301), such as the download location and download format. A download location may be in a local hard drive attached to the client computer or a disk storage device that is remotely accessible to the client computer through a wired or wireless network connection.
In some embodiments, there are typically two download formats, “compressed” and “uncompressed”. The “compressed” format may include multiple data compression schemes, e.g., some schemes designed for text compression and some schemes designed for image compression. In some embodiments, the user is allowed to choose different compression schemes for different types of documents. An “uncompressed” format may be selected by the user for storing all the attachments into a file folder. Since compressed files are typically smaller than the “uncompressed” files, downloading email attachments as compressed files requires less time and network bandwidth than downloading the attachments as uncompressed files. On the other hand, when downloading compressed files, the user must have access to additional decompression utilities to restore the attachments to their original uncompressed format before viewing them. In some embodiments, the user does not need to specify a file download format and location, and instead the attachments are downloaded in a default or previously identified format to a default or previously identified location.
After user selection of the download-all-attachments icon, and optionally after user selection of a download location and/or a download file format, the client computer submits to the email server a document fetching request for downloading all attachments (302) and waits for the email server to deliver the downloaded attachments (303). Finally, the client computer stores the downloaded attachments at a location designated by the user (or optionally at a default or previously identified location) (304).
In some embodiments, at 301 the user specifies one or more applications or printers as destinations for the downloaded attachments. For example, if the downloaded attachments are two uncompressed documents, one in PDF format and the other in MS-WORD format, the user may directly specify that the two documents are to be opened by their respective application programs on the client computer. In some other embodiments, the user may specify that each attachment is to be directly submitted to a default printer or to a user specified printer and printed out by a respective printer driver on the printer. In these embodiments, at 304 the client computer directs each attachment to a respective application or printer driver.
FIG. 3B is a flowchart illustrating a set of server-side operations for processing a client request to download multiple attachments associated with an email message. For convenience, the operations represented by FIG. 3B will be described as being performed by a server, even though they may be performed by two or more servers in a set of servers. The server receives from a client computer a download-all-attachments request (310), the request including an identifier referencing an particular email message stored in the email server. The request may optionally also include user-specified download instructions. Next, the server retrieves all the attachments associated with the email message, (311) and, optionally, processes these attachments in accordance with the user-specified download instructions (312). For example, if the download instructions specify that the attachments are to be compressed according to a specified data compression scheme, e.g., ZIP, the email server invokes the appropriate utility program or programs to compress the attachments accordingly. The email server conveys the attachments to the requesting client computer through a network (313).
FIGS. 3C and 3D show two schematic pop-up windows 320 and 330 illustrating how a user specifies download format and download location, respectively. The pop-up window 320 includes two download formats, each having a bullet button, so that the user can only choose one of them. In some embodiments, by default, all the attachments are compressed into a ZIP file to save download time. In another embodiment, by default, all the attachments are downloaded in uncompressed format. If the user clicks the cancel button, the client computer will ignore the download request without taking any further action.
In some embodiments, if the user clicks the OK button, another window 330 pops up, prompting the user to specify a location in the client computer to store the ZIP file. In the example shown in FIG. 3D, the highlighted directory “Sub-Directory 2” is chosen for hosting the ZIP file. In this example, the user also has an option of renaming the ZIP file (i.e., specifying a name for the ZIP file to be downloaded). In some embodiments, the default name of the ZIP file provided by the email server is the name of the first document in the ZIP file. If the user specifies a name for the ZIP file, the user specified name (e.g., “Vacation Photos”) overrides or replaces the default name.
It is apparent to one skilled in the art that the aforementioned client- and server-side operations as well as schematic screenshots are only for illustrative purposes. Some of the operations described above may be executed in a different order. Some of the operations described above are optional, and thus not included in some embodiments, and some embodiments may include additional operations.
System Architecture
FIG. 4 is a block diagram illustrating a document storage system, e.g., an email server system 400, in accordance with some embodiments of the present invention. The system 400 typically includes one or more processing units (CPUs) 402, one or more network or other communications interfaces 410, memory 412, and one or more communication buses 414 for interconnecting these components. The system optionally includes a user interface 404 that comprises a display device 406 and a keyboard 408. The memory 412 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices. The memory 412 may optionally include one or more storage devices remotely located from the CPUs 402. In some embodiments, the memory 412 stores the following elements, modules and data structures, or a subset or superset thereof:

    
    
        an operating system 416 that includes procedures for handling various basic system services and for performing hardware dependent tasks;
        a network communication module (or instructions) 418 that is used for connecting the system to other computers via the one or more network communications interfaces 410 (via wired or wireless connections), using the Internet, other wide area networks, local area networks, metropolitan area networks, or the like;
        an email server engine (or instructions) 420 for processing client requests for retrieving email messages and downloading attachments; and
        a plurality of email messages 428 received and managed by the email server system, each message including zero or more attachments 430.
    
    


In some embodiments, the email server engine 420 further comprises:

    
    
        an email message distributor (or instructions) 422 for identifying and delivering a user-requested email message and attachments to a client computer;
        a client request analyzer (or instructions) 424 for receiving a client request following, e.g., a single user selection of a download-all-attachments button and generating a corresponding analysis result; and
        an attachment processor (or instructions) 426 for processing (e.g., compressing, downloading) the attachments associated with an email message in accordance with the analysis result.
    
    


Each of the above identified modules or programs corresponds to a set of instructions for performing a function described above. These modules and programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise re-arranged in various embodiments. In some embodiments, memory 412 may store a subset of the modules and data structures identified above. Furthermore, memory 412 may store additional modules and data structures not described above.
Although FIG. 4 shows an “email server system,” FIG. 4 is intended more as functional description of the various features which may be present in a set of servers than as a structural schematic of the embodiments described herein. In practice, and as recognized by those of ordinary skill in the art, items shown separately could be combined and some items could be separated. For example, some items shown separately in FIG. 4 could be implemented on single servers and single items could be implemented by one or more servers. The actual number of servers used to implement an email server system and how features are allocated among them will vary from one implementation to another, and may depend in part on the amount of data traffic that the system must handle during peak usage periods as well as during average usage periods.
Client System or Device
FIG. 5 is a block diagram illustrating a client system or device 600 in accordance with some embodiments of the present invention. The client 600 typically includes one or more processing units (CPU's) 602, one or more network or other communications interfaces 610, memory 612, and one or more communication buses 614 for interconnecting these components. The client 600 may be a desktop or laptop computer, a portable device coupled to a wireless network, or the like. The client 600 includes a user interface 604 that comprises a display device 606, keyboard 608 and pointer device 609 (e.g., a mouse, trackball, touch sensitive pad or display screen, or the like) for selecting or clicking on items or icons displayed on the display device 606. Memory 612 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices. Memory 612, or alternatively one or more storage devices (e.g., one or more nonvolatile storage devices) within memory 412, includes a computer readable storage medium. Memory 612 may optionally include one or more storage devices remotely located from the CPU(s) 602. In some embodiments, memory 612 stores the following elements, modules and data structures, or a subset or superset thereof:

    
    
        an operating system 616 that includes procedures for handling various basic system services and for performing hardware dependent tasks;
        a network communication module (or instructions) 618 that is used for connecting the client computer 600 to other computers via the one or more network communications interfaces 610 (via wired or wireless connection), using the Internet, other wide area networks, local area networks, metropolitan area networks, and so on;
        a client application module 104 (e.g., a web browser or email application) that is used for viewing email messages and that, depending on the embodiment, may also be used for displaying images and other documents as well;
        one or more additional applications 620, for displaying or displaying and editing documents, including downloaded documents 624 that were attached to an email message 622; and
        one or more downloaded attachments (e.g., files, images, documents) 626 that were attached to email message 622.
    
    


Each of the above identified modules and applications corresponds to a set of instructions for performing one or more functions described above. These modules (i.e., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise re-arranged in various embodiments. In some embodiments, memory 612 may store a subset of the modules and applications identified above. Furthermore, memory 612 may store additional modules, applications and data structures not described above.
Although some of various drawings discussed above illustrate a number of logical stages in a particular order, stages which are not order-dependent may be reordered and other stages may be combined or broken out. While some reordering or other groupings are specifically mentioned, others will be obvious to one ordinary skill in the art and so do not present an exhaustive list of alternatives. Moreover, it should be recognized that the stages could be implemented in hardware, firmware, software or any combination thereof.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings.

## Claims

1. A method of fetching multiple distinct documents attached to a document, comprising:
on a client system:
concurrently displaying the document, a multiple document fetching icon, a single document fetching icon for each distinct document attached to the displayed document, and a single document viewing icon for at least one of the documents attached to the displayed document, the displayed document having attached thereto multiple distinct documents; and
responding to a single user selection of the multiple document fetching icon, including:
fetching all of the multiple documents attached to the displayed document from a document storage system; and
automatically opening and displaying at least one of the fetched documents on a computer display using at least one application program.

2. The method of claim 1, wherein the displaying and fetching are performed by the client computer and the displayed document comprises a document received from the document storage system.

3. The method of claim 1, wherein the displayed document comprises an email message and the multiple associated documents are documents attached to the email message.

4. The method of claim 1, upon the single user selection of the multiple document fetching icon, further comprising:
allowing a user specification of information associated with the multiple documents, the information including a download format and a download location.

5. The method of claim 4, wherein the download format specifies whether the multiple documents are to be compressed or not.

6. The method of claim 5, wherein the multiple documents are compressed into a ZIP file.

7. The method of claim 5, including storing the multiple documents in a file folder.

8. The method of claim 1, wherein at least two of the automatically opened and displayed documents have different file formats and are opened by distinct application programs.

9. A client system, comprising:
memory;
one or more processors; and
at least one program, stored in the memory for execution by the one or more processors, the at least one program including:
instructions for concurrently displaying a document, a multiple document fetching icon, a single document fetching icon for each distinct document attached to the displayed document, and a single document viewing icon for at least one of the documents attached to the displayed document, the displayed document having attached thereto multiple distinct documents; and
instructions for responding to a single user selection of the multiple document fetching icon, including:
instructions for fetching from a document storage system all of the multiple documents attached to the displayed document; and
instructions for automatically opening and displaying at least one of the fetched documents on a computer display using at least one application program.

10. The client system of claim 9, wherein the displaying and fetching are performed by a client computer and the displayed document comprises a document received from the document storage system.

11. The client system of claim 9, wherein the displayed document comprises an email message and the multiple associated documents are documents attached to the email message.

12. The client system of claim 9, upon the single user selection of the multiple document fetching icon, further comprising:
instructions for allowing a user specification of information associated with the multiple documents, the information including a download format and a download location.

13. The client system of claim 12, wherein the download format specifies whether the multiple documents are to be compressed or not.

14. The client system of claim 13, wherein the multiple documents are compressed into a ZIP file.

15. The client system of claim 13, including instructions for storing the multiple documents in a file folder.

16. A non-transitory computer readable storage medium storing one or more programs to be executed by one or more processors of a client system, the one or more programs comprising:
instructions for concurrently displaying a document, a multiple document fetching icon, a single document fetching icon for each distinct document attached to the displayed document, and a single document viewing icon for at least one of the documents attached to the displayed document, the displayed document having attached thereto multiple distinct documents; and
instructions for responding to a single user selection of the multiple document fetching icon, including:
instructions for fetching from a document storage system all of the multiple documents attached to the displayed document; and
instructions for automatically opening and displaying at least one of the fetched documents on a computer display using at least one application program.

17. The system of claim 9, wherein at least two of the automatically opened and displayed documents have different file formats and are opened by distinct application programs.

18. The non-transitory computer readable storage medium of claim 16, wherein at least two of the automatically opened and displayed documents have different file formats and are opened by distinct application programs.