Patent ID: 6886132

Claim:
A method for packing a Web page as single file, the method comprising the steps of: determining that a user desires to package the Web page into a single file; making a determination as to whether the file is a Web page; in response to a determination that the file is a Web page, making a determination as to whether the file includes at least one link to at least one resource file; and in response to a determination that the file includes at least one link to at least one resource file, packing the file and the at least one resource file into a single MHTML file; wherein the step of packing the file and the at least one resource file into a single MHTML file comprises the steps of: (a) opening an HTML source file associated with the Web page; (b) searching for and adding to a list of at least one resource file all “src”, “lowsrc” and “dynsrc” files referenced in <img> tags; (c) searching for and adding to the list all “background” files referenced in <body> tags; (d) searching for and adding to the list all “src” files referenced in <script> tags; (e) searching for and adding to the list all “src” files referenced in <bgsound> tags; (f) searching for and adding to the list all “src” files referenced in <embed> tags; (g) searching for and adding to the list all “href” files referenced in <link rel=“stylesheet”> tags, within the “href” files referenced in <link rel=“stylesheet”> tags, searching for and adding to the list any “@import url( . . . )” files; (h) searching for and adding to the list all “src” files referenced in <frame> tags; loading the “src” files referenced in <frame> tags and recursively examining these files according to steps b)-i); (i) searching for and adding to the list all “href” files referenced in <link rel=filelist> tags: within the “href” files referenced in <link rel=filelist> files, searching for and adding to the list any “Href” files referenced in <o:File> tags; and (i) packing the at least one resource file and the HTML source file into a single MHTML file, such that the HTML source file is stored as a first component having a first content location and a first content type description, and each of the at least one resource file is stored as a separate component, each separate component having a separate content location and a content type description, and wherein the first content location and the content locations of each separate component of the MHTML file define a folder structure defining locations of the source file and the at least one resource file in relation to each other.