JP5864133B2 - Program and server - Google Patents

Program and server Download PDF

Info

Publication number
JP5864133B2
JP5864133B2 JP2011119618A JP2011119618A JP5864133B2 JP 5864133 B2 JP5864133 B2 JP 5864133B2 JP 2011119618 A JP2011119618 A JP 2011119618A JP 2011119618 A JP2011119618 A JP 2011119618A JP 5864133 B2 JP5864133 B2 JP 5864133B2
Authority
JP
Japan
Prior art keywords
mail
server
reference information
storage area
email
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011119618A
Other languages
Japanese (ja)
Other versions
JP2012249101A (en
Inventor
一宏 小椋
一宏 小椋
Original Assignee
株式会社Hde
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 株式会社Hde filed Critical 株式会社Hde
Priority to JP2011119618A priority Critical patent/JP5864133B2/en
Publication of JP2012249101A publication Critical patent/JP2012249101A/en
Application granted granted Critical
Publication of JP5864133B2 publication Critical patent/JP5864133B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、プログラムに関する。   The present invention relates to a program.

従来から、SMTP(Simple Mail Transfer Protocol)を通じてネットワーク上で電子メールの受信と送信を行うメールサーバが存在する。   2. Description of the Related Art Conventionally, there is a mail server that receives and transmits an electronic mail on a network through SMTP (Simple Mail Transfer Protocol).

通常、このようなメールサーバは、サーバ管理下のユーザを宛先とする電子メールを受信した場合には、格納領域に電子メールを格納する処理を行う(いわゆるローカル配送を行う)。一方、受信した電子メールの宛先が他のメールサーバのアドレスを示す場合には当該電子メールを他のメールサーバに配送する処理を行う(いわゆるリモート配送を行う)。   Normally, when such an e-mail server receives an e-mail addressed to a user under server management, the mail server stores the e-mail in a storage area (so-called local delivery). On the other hand, when the destination of the received e-mail indicates an address of another mail server, a process of delivering the e-mail to another mail server is performed (so-called remote delivery is performed).

そして、メールサーバは、POP(Post Office Protocol)やIMAP(Internet Message Access Protocol)等を通じて、端末から電子メールの受信要求を受信すると、格納領域にある電子メールを当該端末に送信する処理を行っている(特許文献1の0030段落参照)。   When the mail server receives an e-mail reception request from the terminal through POP (Post Office Protocol), IMAP (Internet Message Access Protocol), or the like, the mail server performs processing for transmitting the e-mail in the storage area to the terminal. (See paragraph 0030 of Patent Document 1).

特開2000−228673JP 2000-228673 A

しかし、従来のメールサーバは、サーバ管理下のユーザを宛先とする電子メールを受信した場合に当該電子メールを格納する際、無駄に格納領域を使用してしまうことがあった。例えば、添付ファイルを含む電子メールを受信し、その後、同一内容の添付ファイルを含む別の電子メールを受信した場合には、同一内容の添付ファイルであっても各電子メールを個別に格納領域に格納していたので、格納領域を無駄に使用してしまい、結果的に格納領域の使用量が増加してしまうという問題があった。   However, when a conventional mail server receives an e-mail addressed to a user under server management, it sometimes uses a storage area when storing the e-mail. For example, if an e-mail containing an attachment is received and then another e-mail containing an attachment with the same contents is received, each e-mail is individually stored in the storage area even if the attachment has the same contents. Since the data is stored, the storage area is wasted, resulting in an increase in the usage amount of the storage area.

特に、近年では、画像データや音声データ等のファイルが添付されることが多く、数十〜数百メガバイトの添付ファイルを含む電子メールの送受信が行われており、電子メールを格納するための格納領域を節約することが期待されている。   In particular, in recent years, files such as image data and audio data are often attached, and e-mails including attachment files of tens to hundreds of megabytes are transmitted and received, and storage for storing e-mails It is expected to save space.

本発明は、上述した課題に鑑みたものであり、サーバ管理下のユーザを宛先とする電子メールを格納するための格納領域の使用量を節約することが可能なサーバのためのプログラムを提供することにある。   The present invention has been made in view of the above-described problems, and provides a program for a server capable of saving the amount of use of a storage area for storing an e-mail addressed to a user under server management. There is.

(1)本発明は、受信した電子メールを格納領域に格納し、格納された電子メールを送信する処理を行うサーバのためのプログラムであって、電子メールを受信する処理を行う受信部と、当該サーバ管理下のユーザを宛先とする電子メールを受信した場合に、当該電子メールを前記格納領域に格納する格納処理部と、端末から電子メールの受信要求を受け付けた場合に、電子メールを前記格納領域から読み出し、読み出された当該電子メールを当該端末に送信する処理を行う送信部として、コンピュータを機能させ、前記格納処理部が、受信した電子メールに含まれる特定データが、前記格納領域に既に格納された他の電子メールに含まれる場合には、当該特定データを特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行い、前記送信部が、前記格納領域から読み出した電子メールに前記特定データ参照情報が含まれる場合には、前記特定データ参照情報を前記特定データに書き戻し、書き戻された電子メールを前記端末に送信する処理を行うプログラムに関する。   (1) The present invention is a program for a server that performs processing for storing received e-mail in a storage area and transmitting stored e-mail, and a receiving unit that performs processing for receiving e-mail; When an e-mail addressed to the user under the server management is received, the e-mail is received when the e-mail reception request is received from the storage processing unit that stores the e-mail in the storage area and the terminal. The computer functions as a transmission unit that performs processing to read the read e-mail from the storage area and transmit the read e-mail to the terminal, and the storage processing unit stores the specific data included in the received e-mail. Is included in another e-mail already stored in the e-mail, the specific data is rewritten with the specific data reference information, and the re-written e-mail is stored in the storage area. When the specific data reference information is included in the e-mail read from the storage area, the specific data reference information is written back to the specific data and written back. The present invention relates to a program for performing processing for transmitting an electronic mail to the terminal.

また、本発明は、上記プログラムを記憶した情報記憶媒体、上記各部として構成するサーバに関係する。本発明は、受信した電子メールに含まれる特定データが、格納領域に既に格納された他の電子メールに含まれる場合には、当該特定データを特定データ参照情報に書き換え、書き換え後の電子メールを格納領域に格納する処理を行うので、従来よりも格納領域を使用する容量を節約することができる。また、本発明は、格納領域から読み出した電子メールに特定データ参照情報が含まれる場合には、特定データ参照情報を前記特定データに書き戻し、書き戻された電子メールを前記端末に送信する処理を行うので、元の電子メールの内容が紛失されることなく送信することができる。   The present invention also relates to an information storage medium storing the above program and a server configured as each of the above units. In the present invention, when the specific data included in the received e-mail is included in another e-mail already stored in the storage area, the specific data is rewritten with the specific data reference information, and the rewritten e-mail is Since the process of storing in the storage area is performed, the capacity for using the storage area can be saved more than in the past. In the present invention, when specific data reference information is included in the e-mail read from the storage area, the specific data reference information is rewritten to the specific data, and the rewritten e-mail is transmitted to the terminal. Thus, the original e-mail content can be transmitted without being lost.

(2)また、本発明のプログラムは、前記格納処理部が、受信した電子メールに含まれる添付ファイルデータを前記特定データとし、当該添付ファイルデータが、前記格納領域に既に格納された他の電子メールの添付ファイルデータ又は本文と同じ場合には、当該受信した電子メールに含まれる添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行うようにしてもよい。   (2) Further, in the program of the present invention, the storage processing unit uses the attached file data included in the received electronic mail as the specific data, and the attached file data is stored in the other storage area already stored in the storage area. If it is the same as the attachment file data or the body text of the mail, the attachment file data included in the received email is rewritten with the specific data reference information, and the rewritten email is stored in the storage area. Also good.

本発明は、格納領域に、添付ファイルデータを重複して格納することを回避することができ、従来よりも格納領域を使用する容量を節約することができる。本発明は、例えば、音声データや画像データなどの、容量の多いファイルが添付された電子メールを格納領域に格納する際に、格納領域の使用量を従来よりも格段に節約することができる。   According to the present invention, it is possible to avoid redundantly storing the attached file data in the storage area, and it is possible to save the capacity for using the storage area as compared with the related art. According to the present invention, for example, when an e-mail attached with a large-capacity file such as audio data or image data is stored in the storage area, the amount of use of the storage area can be significantly reduced compared to the conventional case.

(3)また、本発明のプログラムは、前記格納処理部が、受信した電子メールに複数の添付ファイルデータを含む場合には、添付ファイルデータ毎に、添付ファイルデータが前記格納領域に既に格納された他の電子メールの添付ファイルデータ又は本文と同じか否かを判断し、添付ファイルデータが前記格納領域に既に格納された他の電子メールの添付ファイルデータ又は本文と同じ場合には、当該添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行うようにしてもよい。   (3) In the program of the present invention, when the storage processing unit includes a plurality of attached file data in the received e-mail, the attached file data is already stored in the storage area for each attached file data. If the attachment data is the same as the attachment data or body of another e-mail, and the attachment data is the same as the attachment data or body of another e-mail already stored in the storage area, the attachment The file data may be rewritten to the specific data reference information, and the rewritten electronic mail may be stored in the storage area.

本発明は、電子メールに複数の添付ファイルデータを含んでいても、格納領域に、添付ファイルデータを重複して格納することを回避することができ、従来よりも格納領域を使用する容量を節約することができる。   The present invention can avoid storing duplicate attachment file data in the storage area even if the email includes a plurality of attachment file data, and saves the capacity to use the storage area than before. can do.

(4)また、本発明のプログラムは、前記格納処理部が、受信した電子メールに含まれる本文を前記特定データとし、当該本文が、前記格納領域に既に格納された他の電子メールの本文又は添付ファイルデータと同じ場合には、当該受信した電子メールに含まれる本文を特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行うようにしてもよい。   (4) Further, in the program of the present invention, the storage processing unit uses the text included in the received email as the specific data, and the text is the text of another email already stored in the storage area or If it is the same as the attached file data, the body included in the received e-mail may be rewritten with the specific data reference information, and the rewritten e-mail may be stored in the storage area.

本発明は、格納領域に、受信した電子メールの本文を重複して格納することを回避することができ、従来よりも格納領域を使用する容量を節約することができる。   According to the present invention, it is possible to avoid storing the received body text of the received electronic mail in the storage area, and it is possible to save the capacity of using the storage area as compared with the conventional case.

(5)また、本発明のプログラムは、前記格納領域は、当該サーバが管理する各ユーザのメールボックスと、特定領域とを含み、前記格納処理部が、複数の宛先が指定された電子メールを受信した場合には、各宛先に対応する各ユーザのメールボックスに、受信した電子メールに対応する電子メール参照情報を格納すると共に、一の当該電子メールを特定領域に格納する処理を行い、前記送信部が、受信要求を受け付けたユーザのメールボックスに格納された電子メール参照情報に基づき、電子メールを前記特定領域から読み出し、読み出された電子メールを当該端末に送信する処理を行うようにしてもよい。   (5) Further, according to the program of the present invention, the storage area includes a mailbox of each user managed by the server and a specific area, and the storage processing unit receives an e-mail in which a plurality of destinations are designated. If received, the email reference information corresponding to the received email is stored in each user's mailbox corresponding to each destination, and one email is stored in a specific area. Based on the e-mail reference information stored in the mailbox of the user who has received the reception request, the transmitting unit reads out the e-mail from the specific area and transmits the read e-mail to the terminal. May be.

本発明は、複数の宛先が指定された電子メールを受信した場合には、各宛先に対応する各ユーザのメールボックスに、受信した電子メールに対応する電子メール参照情報を格納すると共に、当該電子メールを特定領域に格納する処理を行うので、従来よりも格納領域を使用する容量を節約することができる。   In the present invention, when an e-mail with a plurality of destinations specified is received, e-mail reference information corresponding to the received e-mail is stored in each user's mailbox corresponding to each destination, and Since the mail is stored in the specific area, the capacity for using the storage area can be saved as compared with the conventional method.

(6)また、本発明のプログラムは、前記格納領域に格納された電子メールが参照されているか否かを判断する参照判断部と、参照されていないと判断される電子メールを、前記格納領域から削除する処理を行う削除部として、コンピュータを更に機能させるようにしてもよい。   (6) Further, the program of the present invention includes a reference determination unit that determines whether or not an electronic mail stored in the storage area is referred to, and an electronic mail that is determined not to be referred to in the storage area. The computer may be caused to further function as a deletion unit that performs a process of deleting from the computer.

本発明は、参照されていないと判断される電子メールを格納領域から削除する処理を行うので、保存する必要性のない電子メールを削除することができ、限られた格納領域を有効に利用することができる。   Since the present invention performs processing for deleting e-mails that are determined not to be referenced from the storage area, it is possible to delete e-mails that do not need to be saved, and effectively use the limited storage area be able to.

本実施形態のメールシステムの一例。An example of the mail system of this embodiment. 本実施形態のサーバの機能ブロック図の一例。An example of a functional block diagram of a server of this embodiment. 図3(A)は従来の電子メールの格納処理の説明図。図3(B)は、本実施形態の電子メールの格納処理の説明図。FIG. 3A is an explanatory diagram of a conventional e-mail storage process. FIG. 3B is an explanatory diagram of the e-mail storage process of the present embodiment. 固有情報の説明図。Explanatory drawing of specific information. 従来の電子メールの格納処理の説明図。Explanatory drawing of the storing process of the conventional electronic mail. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. ハッシュテーブルの説明図。Explanatory drawing of a hash table. 本実施形態の電子メールの添付ファイルデータ、本文の説明図。Explanatory drawing of the attachment file data of an electronic mail of this embodiment, and a text. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. 本実施形態の格納処理の説明図。Explanatory drawing of the storage process of this embodiment. リファレンス値の説明図。Explanatory drawing of a reference value. 本実施形態の格納処理のフローチャート図。The flowchart figure of the storage process of this embodiment. 本実施形態の格納処理のフローチャート図。The flowchart figure of the storage process of this embodiment. 本実施形態の送信処理のフローチャート図。The flowchart figure of the transmission processing of this embodiment.

以下、本実施形態について説明する。なお、以下に説明する本実施形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また本実施形態で説明される構成の全てが、本発明の必須構成要件であるとは限らない。   Hereinafter, this embodiment will be described. In addition, this embodiment demonstrated below does not unduly limit the content of this invention described in the claim. In addition, all the configurations described in the present embodiment are not necessarily essential configuration requirements of the present invention.

1.メールシステム
図1は、本実施形態のメールシステムの一例である。本実施形態のサーバ10は、MTA(Mail Transfer Agent)として機能し、SMTPを通じてネットワーク上で電子メールの受信と配送を行う。また、サーバ10は、POPやIMAPを通じて端末20から電子メールの受信要求を受け付け、当該端末20に電子メールを送信する処理も行う。
1. Mail System FIG. 1 is an example of a mail system according to this embodiment. The server 10 of this embodiment functions as an MTA (Mail Transfer Agent), and receives and delivers electronic mail over the network via SMTP. The server 10 also receives a request for receiving an e-mail from the terminal 20 through POP or IMAP, and performs processing for transmitting the e-mail to the terminal 20.

サーバ10は、配送処理に用いるエンベロープの宛先(宛先メールアドレス)及びエンベロープの差出元(差出元メールアドレス)、メッセージとからなる電子メールを受信する。そして、サーバ10は、ネットワークを介して受信した当該電子メールを、エンベロープの宛先に基づいて配送先メールサーバを決定し、配送先のメールサーバに配送する処理を行う。   The server 10 receives an electronic mail including an envelope destination (destination mail address), an envelope sender (sender mail address), and a message used for delivery processing. Then, the server 10 determines a delivery destination mail server based on the envelope destination and delivers the electronic mail received via the network to the delivery destination mail server.

より詳しく説明すると、サーバ10は、MUA(Mail User Agent)などの差出元から送信された電子メールを、SMTPを通じて受信する処理を行う。例えば、サーバ10は、SMTPを通じて端末20又は他のメールサーバから送信された電子メールを受信する。なお、MUAとは、ネットワークを介してサーバ10と電子メールを送受信する処理を行うクライアントプログラムであり、ユーザが差出元となる電子メールを送信する処理、ユーザ宛の電子メールを受信する処理を行う。   More specifically, the server 10 performs a process of receiving, via SMTP, an electronic mail transmitted from a sender such as MUA (Mail User Agent). For example, the server 10 receives an email transmitted from the terminal 20 or another mail server via SMTP. The MUA is a client program that performs processing for sending and receiving e-mail to and from the server 10 via the network, and performs processing for sending an e-mail from which the user is a sender and receiving e-mail addressed to the user. .

次に、サーバ10は、受信した電子メールのエンベロープの宛先のドメインを管理しているDNS(Domain Name System)サーバや、サーバ10のローカルエリア内のDNSサーバ、或いは他のDNSサーバに、受信した電子メールのエンベロープの宛先のドメインを問い合わせる(例えば、宛先のドメインのMXレコードを問い合わせる)。そして、DNSサーバの応答メッセージによって決められる配送先メールサーバへ、電子メールを配送(ローカル配送、リモート配送)する処理を行う。   Next, the server 10 has received the DNS (Domain Name System) server that manages the destination domain of the received email envelope, the DNS server in the local area of the server 10, or another DNS server. Query the destination domain of the email envelope (eg, query MX record for destination domain). Then, the electronic mail is delivered (local delivery or remote delivery) to a delivery destination mail server determined by a response message from the DNS server.

また、本実施形態のサーバ10は、POP、或いは、IMAPを通じて、ユーザの端末20からの要求に応じて、格納領域に格納された当該ユーザ宛の電子メールを、当該端末20に送信する処理を行うことができる。   In addition, the server 10 according to the present embodiment performs a process of transmitting an e-mail addressed to the user stored in the storage area to the terminal 20 in response to a request from the user's terminal 20 through POP or IMAP. It can be carried out.

また、本実施形態のサーバ10は、Webサービスを提供するWebサーバとして機能してもよい。例えば、サーバ10は、端末20のWebブラウザからHTTP(HyperText Transfer Protocol)を通じて電子メールの送信、電子メールの受信等のアクセス要求を受け付けるようにしてもよい。   Further, the server 10 of the present embodiment may function as a Web server that provides a Web service. For example, the server 10 may accept an access request such as transmission of an e-mail or reception of an e-mail from a Web browser of the terminal 20 through HTTP (HyperText Transfer Protocol).

また、メールシステムは、1つのサーバ10に限らず、複数のサーバ10によって構成してもよい。また、格納領域60は、サーバ10とは別の一又は複数の記憶装置(一又は複数のハードウェア)であってもよい。   Further, the mail system is not limited to one server 10 and may be configured by a plurality of servers 10. Further, the storage area 60 may be one or a plurality of storage devices (one or a plurality of hardware) different from the server 10.

2.構成
図2は、本実施形態のサーバ10の機能ブロック図の一例である。なお、本実施形態のサーバ10は、図2の各部を全て含む必要はなく、その一部を省略した構成としてもよい。
2. Configuration FIG. 2 is an example of a functional block diagram of the server 10 of the present embodiment. Note that the server 10 according to the present embodiment does not need to include all the units illustrated in FIG. 2 and may have a configuration in which some of the units are omitted.

記憶部50は、処理部100などのワーク領域となるもので、その機能はRAM(VRAM)などのハードウェアにより実現できる。本実施形態の記憶部50には、格納領域60を含む。この格納領域60は、受信した電子メールの宛先のドメインが当該サーバ10のドメインと同じ場合(サーバ10が管理するユーザが宛先となっている場合)に、当該電子メールを格納するための記憶領域である。また、格納領域60は、メールボックス70、特定領域80を含む。サーバ10は、サーバ10が管理するユーザ毎にメールボックス70を設ける。メールボックス70は、所与の記憶領域であり、サーバが管理する各ユーザ情報に対応づけて設けられる。例えば、メールボックス70には、電子メールや電子メール参照情報が記憶される。また、特定領域80には、受信した電子メールや特定データが格納される。例えば、特定データは、電子メールの本文、添付ファイルデータである。   The storage unit 50 serves as a work area for the processing unit 100 and the like, and its function can be realized by hardware such as a RAM (VRAM). The storage unit 50 of the present embodiment includes a storage area 60. This storage area 60 is a storage area for storing the e-mail when the domain of the destination of the received e-mail is the same as the domain of the server 10 (when the user managed by the server 10 is the destination) It is. The storage area 60 includes a mailbox 70 and a specific area 80. The server 10 is provided with a mailbox 70 for each user managed by the server 10. Mailbox 70 is a given storage area and is provided in association with each user information managed by the server. For example, the mail box 70 stores e-mail and e-mail reference information. The specific area 80 stores received e-mail and specific data. For example, the specific data is an e-mail body and attached file data.

また、記憶部50は、電子メール参照情報、特定データ参照情報、特定データ参照情報に対応づけてハッシュ値を登録したハッシュテーブルTB、電子メール参照情報に対応するリファレンス値R1、特定データ参照情報に対応するリファレンス値R2などを記憶してもよい。また、記憶部50は、配送対応部(SMTP)の受信部111によって受信された電子メールを、配送(ローカル配送、リモート配送)するために一時的に格納するためのスプール領域を設けてもよい。また、記憶部50は、サーバ10が管理するユーザのユーザ情報(ユーザ名、パスワード)、ユーザのメールボックス名を記憶してもよい。   The storage unit 50 also stores e-mail reference information, specific data reference information, a hash table TB in which hash values are registered in association with the specific data reference information, a reference value R1 corresponding to the e-mail reference information, and specific data reference information. A corresponding reference value R2 or the like may be stored. In addition, the storage unit 50 may be provided with a spool area for temporarily storing e-mail received by the receiving unit 111 of the delivery handling unit (SMTP) for delivery (local delivery or remote delivery). . The storage unit 50 may store user information (user name, password) of the user managed by the server 10 and a user mailbox name.

また、情報記憶媒体180は、コンピュータにより読み取り可能であり、この情報記憶媒体180にはプログラムやデータなどが格納されている。即ち、情報記憶媒体180には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)が記憶される。つまり、処理部100は、この情報記憶媒体180に格納されるプログラム(データ)から読み出されたデータに基づいて本実施形態の種々の処理を行うことができる。例えば、情報記録媒体180は、光ディスク(CD、DVD)、光磁気ディスク(MO)、磁気ディスク、ハードディスク、磁気テープ、或いはメモリ(ROM)、メモリカード等である。   The information storage medium 180 can be read by a computer, and the information storage medium 180 stores programs, data, and the like. That is, the information storage medium 180 stores a program for causing a computer to function as each unit of the present embodiment (a program for causing a computer to execute processing of each unit). That is, the processing unit 100 can perform various processes of the present embodiment based on data read from a program (data) stored in the information storage medium 180. For example, the information recording medium 180 is an optical disk (CD, DVD), a magneto-optical disk (MO), a magnetic disk, a hard disk, a magnetic tape, a memory (ROM), a memory card, or the like.

処理部100は、記憶部50に格納されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。なお、本実施形態の処理部100が、情報記憶媒体180に格納されているプログラムやデータを読み出し、読み出したプログラムやデータを記憶部50に格納し、そのプログラムやデータに基づいて処理を行ってもよい。処理部100(プロセッサ)は、記憶部50内の主記憶部をワーク領域として各種処理を行う。処理部100の機能は各種プロセッサ(CPU、DSP等)などのハードウェアや、プログラムにより実現できる。   The processing unit 100 performs various processes of the present embodiment based on a program (data) stored in the storage unit 50. Note that the processing unit 100 of the present embodiment reads the program and data stored in the information storage medium 180, stores the read program and data in the storage unit 50, and performs processing based on the program and data. Also good. The processing unit 100 (processor) performs various processes using the main storage unit in the storage unit 50 as a work area. The functions of the processing unit 100 can be realized by hardware such as various processors (CPU, DSP, etc.) and programs.

本実施形態の処理部100は、配送対応部(SMTP)110、受信対応部(POP/IMAP)120と、を含む。   The processing unit 100 of this embodiment includes a delivery support unit (SMTP) 110 and a reception support unit (POP / IMAP) 120.

配送対応部110は、SMTPなどの電子メール配送プロトコルを通じて電子メールの受信、配送処理(格納処理)を行う。配送対応部110は、受信部111、格納処理部112、配送部113を含む。   The delivery handling unit 110 performs reception and delivery processing (storage processing) of electronic mail through an electronic mail delivery protocol such as SMTP. The delivery handling unit 110 includes a receiving unit 111, a storage processing unit 112, and a delivery unit 113.

例えば、受信部111は、端末20のMUA21によって、差出元から送信され、エンベロープの宛先が指定された電子メールを受信する処理(受け付ける処理)を行う。   For example, the receiving unit 111 performs processing (accepting processing) for receiving an e-mail that is transmitted from the sending source and designated as an envelope destination by the MUA 21 of the terminal 20.

また、格納処理部112は、受信した電子メールの宛先のドメインが、当該サーバ10が管理するドメインと同じ場合、つまり、受信した電子メールの宛先がサーバ10の管理下のユーザである場合に、当該電子メールを格納領域60に格納する処理を行う。すなわち、格納処理部112は、サーバ10が稼動する同一システム内にアカウントを持つユーザ宛に配送するローカル配送処理を行う。なお、ローカル配送処理は、専用のローカル配信エージェントであるMDA(Mail Delivery Agent)によって処理を行ってもよい。なお、サーバ10が管理するドメインは、1つに限らず複数であってもよい。   Further, the storage processing unit 112, when the domain of the destination of the received email is the same as the domain managed by the server 10, that is, when the destination of the received email is a user managed by the server 10, The electronic mail is stored in the storage area 60. That is, the storage processing unit 112 performs local delivery processing for delivery to a user who has an account in the same system in which the server 10 operates. Note that the local delivery process may be performed by an MDA (Mail Delivery Agent) which is a dedicated local delivery agent. The number of domains managed by the server 10 is not limited to one and may be plural.

また、格納処理部112は、受信した電子メールに含まれる特定データが、格納領域60に既に格納された他の電子メールに含まれる場合には、当該特定データを特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。   In addition, when the specific data included in the received e-mail is included in another e-mail already stored in the storage area 60, the storage processing unit 112 rewrites the specific data with specific data reference information and rewrites the specific data. A process of storing the later e-mail in the storage area 60 is performed.

また、格納処理部112は、受信した電子メールに含まれる添付ファイルデータを特定データとし、当該添付ファイルデータが、格納領域60に既に格納された他の電子メールの添付ファイルデータ又は本文と同じ場合には、当該受信した電子メールに含まれる添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。   In addition, the storage processing unit 112 uses the attached file data included in the received e-mail as specific data, and the attached file data is the same as the attached file data or text of another e-mail already stored in the storage area 60 In the process, the attached file data included in the received e-mail is rewritten to the specific data reference information, and the rewritten e-mail is stored in the storage area 60.

また、格納処理部112は、受信した電子メールに複数の添付ファイルデータを含む場合には、添付ファイルデータ毎に、添付ファイルデータが格納領域60に既に格納された他の電子メールの添付ファイルデータ又は本文と同じか否かを判断し、添付ファイルデータが格納領域60に既に格納された他の電子メールの添付ファイルデータ又は本文と同じ場合には、当該添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。   Further, when the received e-mail includes a plurality of attached file data, the storage processing unit 112 attaches the attached file data of another e-mail in which the attached file data is already stored in the storage area 60 for each attached file data. Or if the attachment file data is the same as the attachment file data or the body of another e-mail already stored in the storage area 60, the attachment file data is rewritten to the specific data reference information. Then, a process of storing the rewritten e-mail in the storage area 60 is performed.

また、格納処理部112は、受信した電子メールに含まれる本文を特定データとし、当該本文が、格納領域60に既に格納された他の電子メールの本文又は添付ファイルデータと同じ場合には、当該受信した電子メールに含まれる本文を特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。   Further, the storage processing unit 112 uses the text included in the received email as specific data, and when the text is the same as the text or attached file data of another email already stored in the storage area 60, the storage processing unit 112 The body included in the received e-mail is rewritten with the specific data reference information, and the rewritten e-mail is stored in the storage area 60.

また、格納処理部112は、複数の宛先が指定された電子メールを受信した場合には、各宛先に対応する各ユーザのメールボックス70に、受信した電子メールに対応する電子メール参照情報を格納すると共に、当該電子メールを特定領域80に格納する処理を行うようにしてもよい。   In addition, when receiving an e-mail with a plurality of destinations specified, the storage processing unit 112 stores e-mail reference information corresponding to the received e-mail in the mailbox 70 of each user corresponding to each destination. In addition, the electronic mail may be stored in the specific area 80.

また、配送部113は、受信した電子メールの宛先ドメインが他のメールサーバのドメインである場合に、当該他のメールサーバに電子メールを配送するリモート配送処理(転送処理、中継処理)を行う。   Further, when the destination domain of the received electronic mail is a domain of another mail server, the delivery unit 113 performs remote delivery processing (transfer processing, relay processing) for delivering the electronic mail to the other mail server.

受信対応部120は、POP又はIMAPなどの電子メール受信プロトコルを通じて、電子メールを端末20に送信する処理を行う。本実施形態の受信対応部120は、受け付け部121、送信部122、参照判断部123、削除部124と、を含む。   The reception handling unit 120 performs a process of transmitting an electronic mail to the terminal 20 through an electronic mail reception protocol such as POP or IMAP. The reception handling unit 120 of this embodiment includes a reception unit 121, a transmission unit 122, a reference determination unit 123, and a deletion unit 124.

受信対応部120は、端末20から受信要求を受け付けると、ユーザ情報(ユーザ名、パスワード)を端末20から受信し、ユーザ情報に基づきユーザ認証処理を行う。例えば、受信したユーザ名とパスワードが、サーバ10側で予め登録されているユーザ名とパスワードと一致するか否かを判定し、一致した場合にユーザ認証を認め、不一致はユーザ認証を認めないように判断する。そして、受信対応部120は、ユーザ認証が認められたユーザを宛先とする電子メールを当該端末20に送信する処理を行う。   Upon receiving a reception request from the terminal 20, the reception handling unit 120 receives user information (user name, password) from the terminal 20, and performs user authentication processing based on the user information. For example, it is determined whether or not the received user name and password match the user name and password registered in advance on the server 10 side. If they match, the user authentication is permitted, and the mismatch does not allow the user authentication. Judgment. And the reception corresponding | compatible part 120 performs the process which transmits the electronic mail addressed to the user in whom user authentication was recognized to the said terminal 20. FIG.

受け付け部121は、端末20から電子メールの受信要求を受け付ける処理を行う。   The accepting unit 121 performs processing for accepting an e-mail reception request from the terminal 20.

送信部122は、格納領域60に格納された電子メールを送信する処理を行う。例えば、送信部122は、格納領域60から読み出した電子メールに特定データ参照情報が含まれる場合には、特定データ参照情報を特定データに書き戻し、書き戻された電子メールを端末20に送信する処理を行う。また、送信部122は、受信要求を受け付けたユーザのメールボックス70に格納された電子メール参照情報に基づき、電子メールを特定領域80から読み出し、読み出された電子メールを端末20に送信する処理を行う。   The transmission unit 122 performs processing for transmitting the electronic mail stored in the storage area 60. For example, when the specific data reference information is included in the e-mail read from the storage area 60, the transmission unit 122 writes the specific data reference information back to the specific data, and transmits the rewritten e-mail to the terminal 20. Process. Further, the transmission unit 122 reads the electronic mail from the specific area 80 based on the electronic mail reference information stored in the mail box 70 of the user who has received the reception request, and transmits the read electronic mail to the terminal 20. I do.

また、参照判断部123は、格納領域60に格納された電子メール(電子メールの少なくとも一部)が参照されているか否かを判断する処理を行う。例えば、参照判断部123は、電子メール参照情報に対応するリファレンス値に基づいて、格納領域60に格納された電子メールが参照されているか否かを判断する処理を行う。また、参照判断部123は、特定データ参照情報に対応するリファレンス値に基づいて、格納領域60に格納された電子メールが参照されているか否かを判断する処理を行うようにしてもよい。   Further, the reference determination unit 123 performs a process of determining whether or not an electronic mail (at least a part of the electronic mail) stored in the storage area 60 is referenced. For example, the reference determination unit 123 performs a process of determining whether or not the email stored in the storage area 60 is referenced based on the reference value corresponding to the email reference information. Further, the reference determination unit 123 may perform a process of determining whether or not the e-mail stored in the storage area 60 is referenced based on the reference value corresponding to the specific data reference information.

また、削除部124は、参照されていないと判断される電子メールを、格納領域60から削除する処理を行う。例えば、削除部124は、電子メール参照情報に対応するリファレンス値が所定値(例えば、0)である電子メールを、格納領域60から削除する処理を行う。また、削除部124は、特定データに対応するリファレンス値が所定値(例えば、0)である特定データを、格納領域60から削除する処理を行う。   In addition, the deletion unit 124 performs processing for deleting an e-mail that is determined not to be referenced from the storage area 60. For example, the deletion unit 124 performs processing for deleting an e-mail whose reference value corresponding to the e-mail reference information is a predetermined value (for example, 0) from the storage area 60. In addition, the deletion unit 124 performs a process of deleting the specific data whose reference value corresponding to the specific data is a predetermined value (for example, 0) from the storage area 60.

端末20は、コンピュータ、携帯電話、スマートフォン、タブレット型コンピュータ、携帯端末、ゲーム装置などであり、MUA21として機能する。   The terminal 20 is a computer, a mobile phone, a smartphone, a tablet computer, a mobile terminal, a game device, or the like, and functions as the MUA 21.

3.本実施形態の処理の説明
本実施形態のサーバ10は、差出元から送信された電子メールを受信し、当該電子メールの宛先が、サーバ10が管理するユーザ宛の場合、受信した電子メールを格納領域60に格納する処理を行う。例えば、受信した電子メールの宛先のドメインがサーバ10のアドレス(例えば、「aaa.com」)を示す場合に、受信した電子メールを格納領域60に格納する処理を行う。そして、端末20からの要求に応じて格納領域60の電子メールを送信する処理を行う。以下、本実施形態の格納処理と送信処理の詳細について説明する。
3. Description of Processing of the Present Embodiment The server 10 of the present embodiment receives an email sent from the sender, and stores the received email if the destination of the email is for a user managed by the server 10 A process of storing in the area 60 is performed. For example, when the destination domain of the received electronic mail indicates the address of the server 10 (for example, “aaa.com”), the received electronic mail is stored in the storage area 60. Then, in response to a request from the terminal 20, a process for transmitting an e-mail in the storage area 60 is performed. Hereinafter, details of the storage processing and transmission processing of the present embodiment will be described.

3.1 複数の宛先が指定された電子メールの格納処理と送信処理の説明
さて、従来のサーバは、複数の宛先が指定された電子メールを受信した場合、同一内容の電子メールを、各宛先のメールボックス70に格納する処理を行っていた。例えば、図3(A)に示すように、サーバが、所与の端末20或いは他のサーバから、ネットワークを介してSMTPコマンドのエンベロープの宛先(RCPT TO)で複数の宛先(例えば、userA@aaa.com、userB@aaa.com)が指定された電子メールM1を受信したとする。すると、サーバは、宛先userA@aaa.comのメールボックス70Aに電子メールM1を格納し、宛先userB@aaa.comのメールボックス70Bに電子メールM1を格納する処理を行っていた。つまり、同じ内容の電子メールM1にもかかわらず、各宛先の各メールボックス70A、70Bに、電子メールM1を格納する処理を行っていた。ゆえに、従来のサーバは、無駄に格納領域を使用してしまうという問題があった。
3.1 Description of Storage and Transmission Processing of E-mail with Multiple Destinations When a conventional server receives an e-mail with a plurality of destinations, it sends an e-mail with the same contents to each destination. The process of storing in the mailbox 70 is performed. For example, as shown in FIG. 3 (A), a server may receive a plurality of destinations (for example, userA @ aaa) from a given terminal 20 or another server via an SMTP command envelope destination (RCPT TO). .Com, userB@aaa.com) is received. Then, the server sends the destination userA @ aaa. com in the mail box 70A, and the destination userB @ aaa. The mail M1 is stored in the com mailbox 70B. That is, the process of storing the e-mail M1 in the respective mail boxes 70A and 70B of the respective destinations is performed despite the e-mail M1 having the same content. Therefore, the conventional server has a problem that the storage area is wasted.

そこで、本実施形態のサーバ10は、格納領域60に各ユーザのメールボックス70と特定領域80とを含むようにし、複数の宛先が指定された電子メールを受信した場合には、各宛先に対応する各ユーザのメールボックスに、受信した電子メールに対応する電子メール参照情報を格納すると共に、一の電子メールを特定領域80に格納する処理を行うようにする。   Therefore, the server 10 according to the present embodiment includes the mailbox 70 and the specific area 80 of each user in the storage area 60, and responds to each address when receiving an e-mail with a plurality of specified addresses. In addition, the electronic mail reference information corresponding to the received electronic mail is stored in each user's mailbox, and one electronic mail is stored in the specific area 80.

例えば、図3(B)に示すように、userA@aaa.com、userB@aaa.comの宛先が指定された電子メールM1を受信すると、まず電子メールM1の電子メール参照情報を決定する。例えば、電子メールM1の参照情報が「001」であるとすると、サーバ10は、userA@aaa.comのメールボックス70A、userB@aaa.comのメールボックス70Bそれぞれに、電子メールM1の参照情報「001」を格納する。そして、一の電子メールM1を特定領域80に格納する。ここで、「電子メール参照情報」は、受信した電子メールの参照先を示す情報であり、電子メールを一意に識別できる情報であればよい。例えば、「電子メール参照情報」は、ユニーク番号や、電子メールを受信した日時とすることができる。なお、本実施形態では、「電子メール参照情報」のサイズは、所定サイズ以下(例えば、16バイト以下)とし、一般的な電子メールのサイズよりも小さいサイズにしている。   For example, as shown in FIG. 3 (B), userA @ aaa. com, userB @ aaa. When the e-mail M1 to which the address of com is specified is received, e-mail reference information of the e-mail M1 is first determined. For example, if the reference information of the e-mail M1 is “001”, the server 10 uses userA @ aaa. com mailbox 70A, userB @ aaa. The reference information “001” of the e-mail M1 is stored in each of the com mail boxes 70B. Then, one electronic mail M <b> 1 is stored in the specific area 80. Here, the “e-mail reference information” is information indicating a reference destination of the received e-mail, and may be information that can uniquely identify the e-mail. For example, the “e-mail reference information” may be a unique number or a date and time when the e-mail is received. In the present embodiment, the size of the “e-mail reference information” is set to a predetermined size or less (for example, 16 bytes or less), which is smaller than a general e-mail size.

このように、本実施形態のサーバ10は、各ユーザA、Bのメールボックス70A、70Bには電子メールM1の参照情報を記録するだけであり、特定領域80には受信した一の電子メールM1のデータを格納するだけであるので、従来よりも格納領域60の使用量を節約することができる。   Thus, the server 10 of this embodiment only records the reference information of the email M1 in the mailboxes 70A and 70B of the users A and B, and the received one email M1 in the specific area 80. Therefore, the amount of use of the storage area 60 can be saved as compared with the conventional case.

例えば、「電子メールM1のサイズ」が20,000,000バイトであり、「電子メールM1の参照情報のサイズ」が3バイトとすると、従来のサーバでは、格納領域60において、電子メールM1を個別に格納していたので40,000,000バイトを使用することになっていた。一方、本実施形態のサーバ10は、格納領域60に1つ分の電子メールM1と、電子メールM1の参照情報とを格納するだけでよいので、結果的に、20,000,006バイトだけ使用することになり、格納領域60を使用する容量を従来よりも格段に節約することができる。   For example, if the “size of the electronic mail M1” is 20,000,000 bytes and the “size of the reference information of the electronic mail M1” is 3 bytes, in the conventional server, the electronic mail M1 is individually stored in the storage area 60. It was supposed to use 40,000,000 bytes. On the other hand, the server 10 of this embodiment only needs to store one e-mail M1 and the reference information of the e-mail M1 in the storage area 60. As a result, only 20,000,006 bytes are used. As a result, the capacity for using the storage area 60 can be significantly reduced as compared with the conventional case.

次に、サーバ10が、端末20からの受信要求に応じて格納された電子メールを当該端末20に送信する処理について説明する。サーバ10は、端末20から受信要求とユーザ情報を受信し、ユーザ認証を認めると当該ユーザのメールボックスから電子メール参照情報を取得し、取得した電子メール参照情報に対応する電子メールを特定領域80から読み出し、読み出された電子メールを端末20に送信する処理を行う。   Next, a process in which the server 10 transmits an electronic mail stored in response to a reception request from the terminal 20 to the terminal 20 will be described. When the server 10 receives the reception request and the user information from the terminal 20 and accepts the user authentication, the server 10 acquires the e-mail reference information from the user's mailbox, and stores the e-mail corresponding to the acquired e-mail reference information in the specific area 80. And reading the e-mail to the terminal 20.

例えば、サーバ10は、ユーザ名「userA@aaa.com」の端末20から受信要求を受け付けると、「userA@aaa.com」のメールボックス70Aにある電子メール参照情報「001」を取得する。そして、電子メール参照情報「001」に対応する電子メールM1を特定領域80から読み出し、読み出した電子メールM1を端末20に送信する。   For example, when receiving a reception request from the terminal 20 with the user name “userA@aaa.com”, the server 10 acquires the electronic mail reference information “001” in the mail box 70A of “userA@aaa.com”. The electronic mail M1 corresponding to the electronic mail reference information “001” is read from the specific area 80, and the read electronic mail M1 is transmitted to the terminal 20.

なお、サーバ10は、電子メールの規格(例えば、MIME(Multipurpose Internet Mail Extensions))に基づいて特定領域80から取得した電子メールM1に、固有情報を付加して送信用の電子メールを生成し、生成された電子メールを端末20に送信してもよい。例えば、図4に示すように、「Delivered−To」ヘッダを電子メールのヘッダの最上位に付加し端末20に送信するようにしてもよい。   The server 10 generates a transmission e-mail by adding unique information to the e-mail M1 acquired from the specific area 80 based on an e-mail standard (for example, MIME (Multipurpose Internet Mail Extensions)), The generated electronic mail may be transmitted to the terminal 20. For example, as shown in FIG. 4, a “Derived-To” header may be added to the top of the header of the email and transmitted to the terminal 20.

また、サーバ10は、端末20から電子メールのサイズの要求情報を受信した場合には、固有情報を付加した送信用の電子メールのサイズを端末20に送信するようにしてもよい。例えば、図4に示すように、サーバ10は、固有情報のサイズを算出し、特定領域80に格納された電子メールM1のサイズ(例えば、1300バイト)に固有情報のサイズ(例えば、16バイト)を加算した合計値(例えば、1316バイト)を、端末20に送信する処理を行うようにしてもよい。このようにすれば、送信用の電子メールの正しいサイズを、端末に通知できる。   Further, when the server 10 receives e-mail size request information from the terminal 20, the server 10 may transmit the e-mail size for transmission to which the unique information is added to the terminal 20. For example, as illustrated in FIG. 4, the server 10 calculates the size of the unique information, and the size of the unique information (for example, 16 bytes) to the size of the email M1 stored in the specific area 80 (for example, 1300 bytes). The total value obtained by adding (for example, 1316 bytes) may be transmitted to the terminal 20. In this way, the correct size of the e-mail for transmission can be notified to the terminal.

3.2 添付ファイルデータを含む電子メールの格納処理と送信処理の例
さて、従来のサーバは、例えば、図5に示すように、T2時点でファイルF1が添付されたuserA@aaa.com宛の電子メールM2を受信し、その後、T3時点でファイルF1が添付されたuserB@aaa.com宛の電子メールM3を受信した場合、共通のファイルF1が添付された各電子メールM2、M3を、各メールボックス70A、70Bに個別に保存していたので格納領域60を無駄に使用してしまうという問題があった。
3.2 Example of Storage and Transmission Processing of E-mail including Attached File Data Now, as shown in FIG. 5, for example, the conventional server has a user A @ aaa. comB to the userB@aaa.com with the file F1 attached at time T3. When the e-mail M3 addressed to com is received, the e-mails M2 and M3 attached with the common file F1 are individually stored in the mail boxes 70A and 70B, so the storage area 60 is wasted. There was a problem that.

そこで、本実施形態のサーバ10は、電子メールを受信すると、受信した電子メールに含まれる添付ファイルデータ(特定データの一例)が、格納領域60に既に格納された他の電子メールの添付ファイルデータと同じ場合には、添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。このようにすれば、同じ内容の添付ファイルデータが重複して格納されることを回避でき、格納領域60の使用を節約することができる。   Therefore, when the server 10 of the present embodiment receives an e-mail, the attached file data (an example of specific data) included in the received e-mail is attached file data of another e-mail already stored in the storage area 60. In the same case, the attached file data is rewritten to the specific data reference information, and the rewritten electronic mail is stored in the storage area 60. In this way, it is possible to avoid duplicate attachment file data having the same contents from being stored, and the use of the storage area 60 can be saved.

3.2.1 添付ファイルデータを含む電子メールの格納処理と送信処理の例1
3.2.1.1 格納処理
添付ファイルデータを格納する第1の処理例について説明する。まず、サーバ10は、図6に示すように、T2時点でuserA@aaa.comの宛先が指定された電子メールM2を受信すると、電子メールM2の参照先を示す一意の電子メール参照情報を決定する。そして、サーバ10は、電子メールM2の参照情報が「002」であるとすると、userA@aaa.comのメールボックス70Aに、電子メールM2の参照情報「002」を格納する。
3.2.1 Example 1 of storage processing and transmission processing of e-mail including attachment file data
3.2.1.1 Storage Processing A first processing example for storing attached file data will be described. First, as shown in FIG. 6, the server 10 uses userA @ aaa. When the e-mail M2 to which the address of the com is specified is received, unique e-mail reference information indicating the reference destination of the e-mail M2 is determined. Then, if the reference information of the e-mail M2 is “002”, the server 10 determines that userA @ aaa. The reference information “002” of the e-mail M2 is stored in the mail box 70A of com.

次に、サーバ10は、電子メールM2の添付ファイルデータF1が既に特定領域80(広義には格納領域60)に格納されているか否かを判断する。つまり、サーバ10は、添付ファイルデータF1が、特定領域80に既に格納された他の電子メールの添付ファイルデータと同じであるか否かを判断する。ここで、既に格納された他の電子メールとは、サーバ10が、電子メールM2とは異なるタイミングで過去に受信した一又は複数の電子メールのことである。   Next, the server 10 determines whether or not the attached file data F1 of the e-mail M2 is already stored in the specific area 80 (storage area 60 in a broad sense). That is, the server 10 determines whether or not the attached file data F1 is the same as the attached file data of another electronic mail already stored in the specific area 80. Here, the already stored other e-mails are one or a plurality of e-mails received by the server 10 in the past at a timing different from that of the e-mail M2.

具体的には、サーバ10は、添付ファイルデータのハッシュ値(識別情報)を計算し、ハッシュ値に基づいて、電子メールの添付ファイルデータが既に特定領域80に格納されているか否かを判断する。なお、ハッシュ値は、ハッシュ関数(チェックサム、チェックディジット、フィンガープリント等)に基づき求められる値である。例えば、ハッシュ関数の入力キーを添付ファイルデータとし、ハッシュ関数の出力値をハッシュ値とする。このハッシュ値は、添付ファイルデータ(特定データの一例)を識別(特定)するための情報となる。   Specifically, the server 10 calculates a hash value (identification information) of the attached file data, and determines whether the attached file data of the e-mail is already stored in the specific area 80 based on the hash value. . The hash value is a value obtained based on a hash function (checksum, check digit, fingerprint, etc.). For example, an input key of a hash function is attached file data, and an output value of the hash function is a hash value. This hash value is information for identifying (specifying) attached file data (an example of specific data).

例えば、サーバ10は、電子メールM2の添付ファイルデータF1のハッシュ値が「1549128」であるとすると、ハッシュ値「1549128」がハッシュテーブルTBに登録されているか否かを判断する。つまり、サーバ10は、ハッシュ値「1549128」が、ハッシュテーブルTBに登録されていると判断された場合には、電子メールM2の添付ファイルデータF1が既に特定領域80に格納されていると判断し、ハッシュ値「1549128」が、ハッシュテーブルTBに登録されていないと判断された場合には、電子メールM2の添付ファイルデータF1が特定領域80に格納されていないと判断する。   For example, if the hash value of the attached file data F1 of the email M2 is “1549128”, the server 10 determines whether or not the hash value “1549128” is registered in the hash table TB. That is, when it is determined that the hash value “1549128” is registered in the hash table TB, the server 10 determines that the attached file data F1 of the email M2 is already stored in the specific area 80. If it is determined that the hash value “1549128” is not registered in the hash table TB, it is determined that the attached file data F1 of the e-mail M2 is not stored in the specific area 80.

例えば、T2の時点で、電子メールM2の添付ファイルデータF1のハッシュ値「1549128」がハッシュテーブルTBに登録されていない場合には、サーバ10は、図7に示すように、ハッシュ値「1549128」を、当該添付ファイルデータF1の特定データ参照情報に対応付けて登録する。ここで、「特定データ参照情報」は、参照先の特定データを識別する情報であり、例えば、参照先の電子メールと参照先の添付ファイルデータを識別するための情報である。本実施形態では、「特定データ参照情報」のサイズは、所定のサイズ以下とし、一般的な本文のサイズや添付ファイルデータのサイズよりも小さいサイズにしている。具体的には、「特定データ参照情報」は、「002−1」のように、「電子メール参照情報(002)」と「ファイルの番号(1番目のファイル)」の組み合わせで決定する。   For example, if the hash value “1549128” of the attached file data F1 of the email M2 is not registered in the hash table TB at the time T2, the server 10 has the hash value “1549128” as shown in FIG. Are registered in association with the specific data reference information of the attached file data F1. Here, the “specific data reference information” is information for identifying the specific data of the reference destination, for example, information for identifying the electronic mail of the reference destination and the attached file data of the reference destination. In the present embodiment, the size of the “specific data reference information” is set to be equal to or smaller than a predetermined size, and is smaller than the general text size and the attached file data size. Specifically, “specific data reference information” is determined by a combination of “e-mail reference information (002)” and “file number (first file)”, such as “002-1.”

なお、「ファイルの番号」は、電子メールに添付されたファイルの番号であり、マルチパート形式の電子メールの上から順に添付ファイルの番号を決める。例えば、図8(B)に示すように、マルチパート形式の電子メールの第2のパート520以降のパートを添付ファイルデータとして扱う場合には、第2のパート520のパートボディ522のデータを1番目の添付ファイルデータとする。また、図8には示していないが、例えば、第3のパートがある場合には、第3のパートのパートボディのデータを2番目の添付ファイルデータとする。   The “file number” is the number of the file attached to the e-mail, and determines the number of the attached file in order from the top of the multi-part e-mail. For example, as shown in FIG. 8 (B), when the part after the second part 520 of the multipart e-mail is handled as the attachment file data, the data of the part body 522 of the second part 520 is 1 The second attachment data. Although not shown in FIG. 8, for example, when there is a third part, the data of the part body of the third part is set as the second attached file data.

つまり、サーバ10は、T2時点でハッシュ値「1549128」が、ハッシュテーブルTBに登録されていないので、ハッシュ値「1549128」に対応づけて、特定データ参照情報「002−1」を登録し、添付ファイルデータF1を含む電子メールM2を、そのまま特定領域80に格納する処理を行う。   That is, since the hash value “1549128” is not registered in the hash table TB at time T2, the server 10 registers the specific data reference information “002-1” in association with the hash value “1549128” and attaches it. The electronic mail M2 including the file data F1 is stored in the specific area 80 as it is.

その後、図6に示すように、T3時点(T2時点の後の時点)で、サーバ10が、userB@aaa.comの宛先が指定された電子メールM3を受信したとする。なお、電子メールM3は、電子メールM2に添付されたファイルデータと同じ内容の添付ファイルデータF1を含む。   Thereafter, as shown in FIG. 6, at time T3 (time after T2), the server 10 determines that userB @ aaa. Assume that an e-mail M3 with a destination of com is received. The e-mail M3 includes attached file data F1 having the same content as the file data attached to the e-mail M2.

まず、サーバ10は、userB@aaa.comのメールボックス70Bに、電子メールM3の参照情報を決定し当該参照情報「003」を格納する。そして、サーバ10は、電子メールM3に添付された添付ファイルデータF1のハッシュ値を求め、ハッシュ値がハッシュテーブルTBに登録されているか否かを判断する。例えば、T3時点で、添付ファイルデータF1のハッシュ値「1549128」が、ハッシュテーブルTBに登録されているので、サーバ10は、電子メールM3の添付ファイルデータF1が、特定領域80に既に格納されていると判断する。つまり、サーバ10は、T3時点で、添付ファイルデータF1が特定領域80に既に格納された他の電子メールM2の添付ファイルデータF1と同じと判断する。   First, the server 10 uses userB @ aaa. The reference information of the e-mail M3 is determined and the reference information “003” is stored in the com mail box 70B. Then, the server 10 obtains the hash value of the attached file data F1 attached to the electronic mail M3, and determines whether or not the hash value is registered in the hash table TB. For example, since the hash value “1549128” of the attached file data F1 is registered in the hash table TB at time T3, the server 10 has already stored the attached file data F1 of the email M3 in the specific area 80. Judge that That is, the server 10 determines that the attached file data F1 is the same as the attached file data F1 of another electronic mail M2 already stored in the specific area 80 at time T3.

そして、サーバ10は、電子メールM3の添付ファイルデータF1をハッシュ値「1549128」に対応する特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM3を特定領域80に格納する処理を行う。   Then, the server 10 rewrites the attached file data F1 of the e-mail M3 to the specific data reference information “002-1” corresponding to the hash value “1549128”, and stores the rewritten e-mail M3 in the specific area 80. Do.

以上のように、本実施形態のサーバ10は、結果として格納領域60に、添付ファイルデータを重複して格納することを回避することができ、従来よりも格納領域60を使用する容量を節約することができる。特に、本実施形態のサーバ10は、音声データや画像データなど容量の多いファイルが添付された電子メールを格納領域60に保存する場合においては、格納領域60の使用量を従来よりも格段に節約することができる。   As described above, the server 10 according to the present embodiment can avoid storing the attached file data in the storage area 60 as a result, thereby saving the capacity for using the storage area 60 as compared with the prior art. be able to. In particular, the server 10 according to the present embodiment saves the amount of use of the storage area 60 as compared with the conventional case when storing an e-mail attached with a large-capacity file such as voice data or image data in the storage area 60. can do.

また、本実施形態のサーバ10は、初めて添付ファイルデータを格納する際は、当該添付ファイルは電子メールから分離されることがないので、必要最小限で添付ファイルデータの書き換えを行うことになり、結果的に処理負荷を軽減することができる。   In addition, when storing the attachment file data for the first time, the server 10 of the present embodiment does not separate the attachment file from the e-mail, and therefore rewrites the attachment file data with the minimum necessary amount. As a result, the processing load can be reduced.

なお、サーバ10は、受信した電子メールが複数の添付ファイルデータを含むと判断した場合には、添付ファイルデータ毎に、添付ファイルデータが特定領域80(広義には格納領域60)に既に格納された他の電子メールの添付ファイルデータと同じか否かを判断し、添付ファイルデータが特定領域80に既に格納された他の電子メールの添付ファイルデータと同じ場合には、当該添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを特定領域80に格納する処理を行うようにしてもよい。   When the server 10 determines that the received e-mail includes a plurality of attached file data, the attached file data is already stored in the specific area 80 (storage area 60 in a broad sense) for each attached file data. If the attached file data is the same as the attached file data of another e-mail already stored in the specific area 80, the attached file data is specified. The data reference information may be rewritten, and the rewritten electronic mail may be stored in the specific area 80.

例えば、図9に示すように、T4時点でuserA@aaa.comの宛先が指定された電子メールM4を受信すると、userA@aaa.comのメールボックス70Aに、電子メールM4の参照情報「004」を格納する。そして、サーバ10は、電子メールM4の添付ファイルデータF2、F3が既に特定領域80に格納されているか否かを判断する。   For example, as shown in FIG. 9, at time T4, userA @ aaa. com@address.com is received, userA @ aaa. The reference information “004” of the e-mail M4 is stored in the mail box 70A of com. Then, the server 10 determines whether or not the attached file data F2 and F3 of the e-mail M4 is already stored in the specific area 80.

例えば、T4時点で電子メールM4の添付ファイルデータF2のハッシュ値「3478204」がハッシュテーブルTBに登録されていないので、サーバ10は、当該ハッシュ値「3478204」を、特定データ参照情報「004−1」に対応付けて登録する。この特定データ参照情報「004−1」は、電子メールM4(参照情報004)の1番目のファイルを意味している。また、サーバ10は、T4時点で電子メールM4の添付ファイルデータF3のハッシュ値「3478232」がハッシュテーブルTBに登録されていないので、当該ハッシュ値「3478232」を、特定データ参照情報「004−2」に対応付けて登録する。この特定データ参照情報「004−2」は、電子メールM4(参照情報004)の2番目のファイルを意味している。そして、サーバ10は、添付ファイルデータF2と添付ファイルデータF3とを含む電子メールM4を、そのまま特定領域80に格納する処理を行う。   For example, since the hash value “3478204” of the attached file data F2 of the email M4 is not registered in the hash table TB at the time T4, the server 10 uses the hash value “3478204” as the specific data reference information “004-1”. "In association with". " The specific data reference information “004-1” means the first file of the electronic mail M4 (reference information 004). Further, since the hash value “3478232” of the attached file data F3 of the email M4 is not registered in the hash table TB at the time point T4, the server 10 uses the hash value “3478232” as the specific data reference information “004-2”. "In association with". " The specific data reference information “004-2” means the second file of the electronic mail M4 (reference information 004). Then, the server 10 performs processing for storing the e-mail M4 including the attached file data F2 and the attached file data F3 in the specific area 80 as it is.

その後、サーバ10が、T5時点(T4時点の後の時点)で、userB@aaa.comの宛先が指定された電子メールM5を受信したとする。なお、電子メールM5は、添付ファイルデータF3と、添付ファイルデータF4とを含む。   Thereafter, at time T5 (time after T4), the server 10 determines that userB @ aaa. Assume that an e-mail M5 with a destination of com is received. The e-mail M5 includes attached file data F3 and attached file data F4.

まず、サーバ10は、userB@aaa.comのメールボックス70Bに、電子メールM5の参照情報「005」を格納する。そして、サーバ10は、電子メールM5の添付ファイルデータF3、F4が既に特定領域80に格納されているか否かを判断する。   First, the server 10 uses userB @ aaa. The reference information “005” of the e-mail M5 is stored in the com mail box 70B. Then, the server 10 determines whether or not the attached file data F3 and F4 of the email M5 is already stored in the specific area 80.

例えば、サーバ10は、T5時点で電子メールM5の添付ファイルデータF3のハッシュ値「3478204」がハッシュテーブルTBに登録されていると判断されるので、電子メールM5の添付ファイルデータF3を、ハッシュ値「3478204」に対応する特定データ参照情報「004−2」に書き換える。また、サーバ10は、T5時点で、電子メールM5の添付ファイルデータF4のハッシュ値「2349872」がハッシュテーブルTBに登録されていないので、ハッシュテーブルTBにハッシュ値「2349872」を特定データ参照情報「005−2」に対応付けて登録する。なお、この特定データ参照情報「005−2」は、電子メールM5(参照情報005)の2番目のファイルを意味している。そして、サーバ10は、添付ファイルデータF3を特定データ参照情報「004−2」に書き換えた電子メールM5を特定領域80に格納する処理を行う。   For example, since the server 10 determines that the hash value “3478204” of the attachment file data F3 of the email M5 is registered in the hash table TB at the time T5, the server 10 uses the hash value of the attachment file data F3 of the email M5. The specific data reference information “004-2” corresponding to “3478204” is rewritten. Further, since the hash value “2349872” of the attached file data F4 of the email M5 is not registered in the hash table TB at the time point T5, the server 10 sets the hash value “2349872” in the hash table TB to the specific data reference information “ "005-2". The specific data reference information “005-2” means the second file of the e-mail M5 (reference information 005). Then, the server 10 performs processing for storing, in the specific area 80, the e-mail M5 in which the attached file data F3 is rewritten to the specific data reference information “004-2”.

3.2.1.2 送信処理
次に、サーバ10の送信処理について説明する。まず、サーバ10が、端末20から受信要求とユーザ情報を受信し、ユーザ認証を認めるとユーザのメールボックスから電子メール参照情報を取得する。そして、取得した電子メール参照情報に基づいて、電子メールを特定領域80から読み出し、特定領域80から読み出された電子メールに特定データ参照情報が含まれる場合には、特定データ参照情報を元の添付ファイルデータに書き戻し、書き戻された電子メールを端末20に送信する処理を行う。一方、特定領域80から読み出された電子メールに特定データ参照情報が含まれない場合には、読み出した電子メールを端末20に送信する処理を行う。このようにすれば、従来と同じように、端末にユーザ宛の電子メールを送信することができる。
3.2.1.2 Transmission Process Next, the transmission process of the server 10 will be described. First, when the server 10 receives a reception request and user information from the terminal 20 and accepts user authentication, the server 10 acquires e-mail reference information from the user's mailbox. Then, based on the acquired e-mail reference information, the e-mail is read from the specific area 80, and when the e-mail read from the specific area 80 includes the specific data reference information, the specific data reference information is A process of writing back the attached file data and transmitting the written back e-mail to the terminal 20 is performed. On the other hand, when the specific data reference information is not included in the e-mail read from the specific area 80, a process of transmitting the read e-mail to the terminal 20 is performed. In this way, an e-mail addressed to the user can be transmitted to the terminal as in the conventional case.

例えば、図6のT3以後で、サーバ10が、ユーザ名「userB@aaa.com」の端末20から受信要求を受け付けると、「userB@aaa.com」のメールボックス70Bにある電子メール参照情報「003」を取得する。そして、「003」に対応する電子メールM3を特定領域80から読み出す。   For example, after T3 in FIG. 6, when the server 10 receives a reception request from the terminal 20 with the user name “userB@aaa.com”, the e-mail reference information “in the mailbox 70B of“ userB@aaa.com ”“ 003 "is acquired. Then, the e-mail M3 corresponding to “003” is read from the specific area 80.

そしてサーバ10は、電子メールM3に特定データ参照情報が含まれているか否かを判断する。例えば、サーバ10は、電子メールM3において、ハッシュテーブルTBに登録されている特定データ参照情報を検出した場合には、電子メールM3に特定データ参照情報を含むと判断する。一方、サーバ10は、電子メールM3においてハッシュテーブルTBに登録されている特定データ参照情報を検出しない場合には、電子メールM3に特定データ参照情報を含まないと判断する。   Then, the server 10 determines whether or not the specific data reference information is included in the email M3. For example, when the specific data reference information registered in the hash table TB is detected in the email M3, the server 10 determines that the specific data reference information is included in the email M3. On the other hand, if the server 10 does not detect the specific data reference information registered in the hash table TB in the email M3, the server 10 determines that the email M3 does not include the specific data reference information.

例えば、サーバ10は、電子メールM3に特定データ参照情報を含むと判断すると、特定データ参照情報「002−1」を取得する。そして、特定データ参照情報「002−1」に対応する添付ファイルデータF1を取得し、電子メールM3の当該特定データ参照情報「002−1」をファイルデータF1に書き戻す。例えば、特定データ参照情報「002−1」は、電子メールM2の1番目の添付ファイルを意味するので、サーバ10は、電子メールM2の1番目の添付ファイルデータF1(例えば、第2のパートのパートボディ)を読み出して、特定データ参照情報「002−1」を削除して代わりにファイルデータF1を書き込む処理を行う。そして、サーバ10は、書き戻された電子メールM3を端末20に送信する処理を行う。なお、サーバ10は、上述したように、電子メールM3に固有情報を加えて送信用の電子メールM3を生成して端末20に送信してもよい。また、サーバ10は、端末20から電子メールのサイズの要求情報を受信した場合には、固有情報を付加した送信用の電子メールのサイズを端末20に送信するようにしてもよい。   For example, when determining that the e-mail M3 includes the specific data reference information, the server 10 acquires the specific data reference information “002-1”. Then, the attached file data F1 corresponding to the specific data reference information “002-1” is acquired, and the specific data reference information “002-1” of the email M3 is written back to the file data F1. For example, the specific data reference information “002-1” means the first attached file of the e-mail M2, so the server 10 uses the first attached file data F1 (for example, the second part of the e-mail M2). (Part body) is read, the specific data reference information “002-1” is deleted, and the file data F1 is written instead. Then, the server 10 performs a process of transmitting the rewritten electronic mail M3 to the terminal 20. As described above, the server 10 may generate e-mail M3 for transmission by adding unique information to the e-mail M3 and transmit it to the terminal 20. Further, when the server 10 receives e-mail size request information from the terminal 20, the server 10 may transmit the e-mail size for transmission to which the unique information is added to the terminal 20.

なお、サーバ10は、受信要求を受け付けたユーザのメールボックスに複数の電子メール参照情報を取得した場合には、電子メール参照情報毎に処理を行う。また、サーバ10は、読み出した電子メールに複数の特定データ参照情報が含まれる場合には、複数の特定データ参照情報それぞれについて、特定データ参照情報に対応するファイルデータに、書き戻し、書き戻された電子メールを端末20に送信する処理を行う。   In addition, when the server 10 acquires a plurality of pieces of email reference information in the mailbox of the user who has received the reception request, the server 10 performs processing for each piece of email reference information. Further, when the read e-mail includes a plurality of specific data reference information, the server 10 writes back and writes back each of the plurality of specific data reference information to the file data corresponding to the specific data reference information. The process of transmitting the received e-mail to the terminal 20 is performed.

以上のように、本実施形態のサーバ10は、電子メールの一部を特定データ参照情報に書き換えたとしても、元の添付ファイルデータに戻すことができるので、データを紛失することなく確実に電子メールを送信することができる。   As described above, the server 10 according to the present embodiment can restore the original attached file data even if a part of the e-mail is rewritten to the specific data reference information. You can send an email.

3.2.2 添付ファイルデータを含む電子メールの格納処理と送信処理の例2
3.2.2.1 格納処理
また、本実施形態のサーバ10は、図10に示すように、一律に受信する電子メールの添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを特定領域80に格納するようにしてもよい。
3.2.2 Example 2 of storage processing and transmission processing of e-mail including attached file data
3.2.2.1 Storage Processing Further, as shown in FIG. 10, the server 10 according to the present embodiment rewrites the attached file data of the received e-mail to the specific data reference information, and rewrites the e-mail after rewriting. You may make it store in the specific area | region 80. FIG.

そして、サーバ10は、添付ファイルデータのハッシュ値に基づいて、電子メールの添付ファイルデータが既に特定領域80に格納されているか否かを判断し、添付ファイルデータが特定領域80に格納されていない場合に、添付ファイルデータを特定領域80に格納する。一方、添付ファイルデータが特定領域80に格納されている場合には添付ファイルデータを重複して特定領域80に格納しないように制御する。   Then, the server 10 determines whether or not the attached file data of the e-mail is already stored in the specific area 80 based on the hash value of the attached file data, and the attached file data is not stored in the specific area 80. In this case, the attached file data is stored in the specific area 80. On the other hand, when the attached file data is stored in the specific area 80, control is performed so that the attached file data is not stored redundantly in the specific area 80.

例えば、図10に示すように、サーバ10は、T2時点において、電子メールM2の添付ファイルデータF1が特定領域80に格納されていない場合には、F1のハッシュ値「1549128」をF1の特定データ参照情報「002−1」に対応づけて登録する。電子メールM2の添付ファイルデータF1を特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM2を特定領域80に格納する処理を行うと共に、添付ファイルデータF1の実データも特定領域80に格納する処理を行う。   For example, as illustrated in FIG. 10, when the attached file data F1 of the e-mail M2 is not stored in the specific area 80 at time T2, the server 10 sets the hash value “1549128” of F1 to the specific data of F1. Registration is made in association with the reference information “002-1.” The attached file data F1 of the e-mail M2 is rewritten to the specific data reference information “002-1”, and the rewritten e-mail M2 is stored in the specific area 80. The actual data of the attached file data F1 is also stored in the specific area 80. Process to store in.

そして、その後、サーバ10は、T3時点で受信した電子メールM3を受信すると、添付ファイルデータF1が特定領域80に格納されているので、添付ファイルデータF1を特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM3を特定領域80に格納する処理を行う。なお、T3時点では、添付ファイルデータF1のハッシュ値「1549128」が既にハッシュテーブルTBに登録されているので、T3時点で添付ファイルデータF1を特定領域80に格納しないように制御する。   After that, when the server 10 receives the e-mail M3 received at time T3, the attached file data F1 is stored in the specific area 80. Therefore, the attached file data F1 is stored in the specific data reference information “002-1.” Rewriting and storing the rewritten e-mail M3 in the specific area 80 are performed. Note that since the hash value “1549128” of the attached file data F1 has already been registered in the hash table TB at time T3, control is performed so that the attached file data F1 is not stored in the specific area 80 at time T3.

なお、サーバ10は、上述した「3.2.1.1の格納処理」と同じように、複数の添付ファイルデータを含むと判断した場合には、添付ファイルデータ毎に処理を行うようにしてもよい。   Note that the server 10 performs processing for each attached file data when it is determined that the server 10 includes a plurality of attached file data, as in the above-described “3.2.1.1 storage process”. Also good.

以上のように、処理例2においても、サーバ10は、同一の添付ファイルデータを重複して格納しないように制御することにより、従来よりも格納領域60を使用する容量を節約することができる。   As described above, also in the processing example 2, the server 10 can save the capacity to use the storage area 60 as compared with the conventional case by controlling so that the same attached file data is not stored redundantly.

3.2.2.2 送信処理
次に、サーバ10の送信処理について説明する。例2においても、サーバ10は、基本的には、例1の「3.2.1.2の送信処理」と同じように、処理を行う。
3.2.2.2 Transmission Process Next, the transmission process of the server 10 will be described. Also in Example 2, the server 10 basically performs the same process as “3.2.1.2 Transmission Process” in Example 1.

例えば、サーバ10は、読み出された電子メールに特定データ参照情報を含むか否かを判断し、読み出された電子メールが特定データ参照情報を含む場合には、特定データ参照情報を、特定領域80に格納されている添付ファイルデータ(特定データ参照情報に対応する添付ファイルデータ)に書き戻し、書き戻された電子メールを端末20に送信する処理を行う。一方、特定領域80から読み出された電子メールに特定データ参照情報が含まれない場合には、読み出した電子メールを端末20に送信する処理を行う。   For example, the server 10 determines whether or not the read e-mail includes the specific data reference information. If the read e-mail includes the specific data reference information, the specific data reference information is specified. A process of writing back the attached file data (attached file data corresponding to the specific data reference information) stored in the area 80 and transmitting the written back e-mail to the terminal 20 is performed. On the other hand, when the specific data reference information is not included in the e-mail read from the specific area 80, a process of transmitting the read e-mail to the terminal 20 is performed.

3.2.3 添付ファイルデータを含む電子メールの格納処理と送信処理の例3
3.2.3.1 格納処理
また、本実施形態のサーバ10は、図11に示すように、受信する電子メールの添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを、各宛先のメールボックス70に格納するようにしてもよい。
3.2.3 Example 3 for storing and sending e-mail including attached file data
3.2.3.1 Storage Processing Further, as shown in FIG. 11, the server 10 of the present embodiment rewrites the attached file data of the received e-mail with the specific data reference information, It may be stored in the destination mailbox 70.

そして、サーバ10は、添付ファイルデータのハッシュ値に基づいて、電子メールの添付ファイルデータが既に特定領域80に格納されているか否かを判断し、添付ファイルデータが特定領域80に格納されていない場合に、添付ファイルデータを特定領域80に格納する。一方、添付ファイルデータが特定領域80に格納されている場合には添付ファイルデータを重複して特定領域80に格納しないように制御する。   Then, the server 10 determines whether or not the attached file data of the e-mail is already stored in the specific area 80 based on the hash value of the attached file data, and the attached file data is not stored in the specific area 80. In this case, the attached file data is stored in the specific area 80. On the other hand, when the attached file data is stored in the specific area 80, control is performed so that the attached file data is not stored redundantly in the specific area 80.

例えば、図11に示すように、T2時点において、サーバ10は、電子メールM2の添付ファイルデータF1が特定領域80に格納されていない場合、添付ファイルデータF1を特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM2をメールボックス70Aに格納する処理を行うと共に、添付ファイルデータF1を特定領域80に格納する処理を行う。また、サーバ10は、ハッシュテーブルTBに、F1のハッシュ値「1549128」に対応づけて、F1の特定データ参照情報「002−1」を登録する。   For example, as shown in FIG. 11, at time T2, when the attached file data F1 of the email M2 is not stored in the specific area 80, the server 10 uses the attached file data F1 as the specific data reference information “002-1”. And the process of storing the rewritten electronic mail M2 in the mail box 70A and the process of storing the attached file data F1 in the specific area 80. Also, the server 10 registers the specific data reference information “002-1” of F1 in the hash table TB in association with the hash value “1549128” of F1.

その後、サーバ10が、T3時点で受信した電子メールM3を受信すると、電子メールM3の添付ファイルデータF1を特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM3をメールボックス70Bに格納する処理を行う。なお、T3時点では、添付ファイルデータF1のハッシュ値「1549128」が既にハッシュテーブルTBに登録されているので、T3時点で添付ファイルデータF1を特定領域80に格納しないように制御する。   Thereafter, when the server 10 receives the e-mail M3 received at time T3, the attached file data F1 of the e-mail M3 is rewritten with the specific data reference information “002-1”, and the rewritten e-mail M3 is stored in the mail box 70B. Process to store. Note that since the hash value “1549128” of the attached file data F1 has already been registered in the hash table TB at time T3, control is performed so that the attached file data F1 is not stored in the specific area 80 at time T3.

なお、サーバ10は、受信した電子メールが複数の添付ファイルデータを含むと判断した場合には、添付ファイルデータ毎に処理を行うようにしてもよい。例えば、サーバ10は、添付ファイルデータ毎に添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを各宛先のメールボックス80に格納する。また、サーバ10は、添付ファイルデータ毎に、添付ファイルデータのハッシュ値に基づいて、電子メールの添付ファイルデータが既に特定領域80に格納されているか否かを判断し、添付ファイルデータが特定領域80に格納されていない場合に、添付ファイルデータを特定領域80に格納する。   If the server 10 determines that the received electronic mail includes a plurality of attached file data, the server 10 may perform processing for each attached file data. For example, the server 10 rewrites the attached file data with the specific data reference information for each attached file data, and stores the rewritten e-mail in the mailbox 80 of each destination. Further, the server 10 determines, for each attachment file data, whether the attachment file data of the e-mail is already stored in the specific area 80 based on the hash value of the attachment file data, and the attachment file data is stored in the specific area. If the file is not stored in 80, the attached file data is stored in the specific area 80.

以上のように、例3においても、サーバ10は、同一の添付ファイルデータを重複して格納しないように制御することにより、従来よりも格納領域60を使用する容量を節約することができる。   As described above, also in Example 3, the server 10 can save the capacity to use the storage area 60 as compared with the conventional case by controlling so that the same attached file data is not stored redundantly.

3.2.3.2 送信処理
次に、処理例3のサーバ10の送信処理について説明する。サーバ10は、端末20から受信要求とユーザ情報を受信し、ユーザ認証を認めると、ユーザのメールボックスから電子メールを読み出す。
3.2.3.2 Transmission Process Next, the transmission process of the server 10 in Process Example 3 will be described. When the server 10 receives the reception request and the user information from the terminal 20 and accepts the user authentication, the server 10 reads the e-mail from the user's mailbox.

そして、サーバ10は、読み出された電子メールが特定データ参照情報を含むか否かを判断し、読み出された電子メールに特定データ参照情報が含まれる場合には、特定データ参照情報を、特定領域80に格納されている添付ファイルデータ(特定データ参照情報に対応する添付ファイルデータ)に書き戻し、書き戻された電子メールを端末20に送信する処理を行う。一方、特定領域80から読み出された電子メールに特定データ参照情報が含まれない場合には、読み出した電子メールを端末20に送信する処理を行う。   Then, the server 10 determines whether or not the read e-mail includes the specific data reference information. If the read e-mail includes the specific data reference information, the specific data reference information is A process of writing back the attached file data (attached file data corresponding to the specific data reference information) stored in the specific area 80 and transmitting the rewritten e-mail to the terminal 20 is performed. On the other hand, when the specific data reference information is not included in the e-mail read from the specific area 80, a process of transmitting the read e-mail to the terminal 20 is performed.

また、サーバ10は、読み出した電子メールに複数の特定データ参照情報が含まれる場合には、複数の特定データ参照情報それぞれについて、特定データ参照情報を対応するファイルデータに書き戻し、書き戻された電子メールを端末20に送信する処理を行う。また、サーバ10は、ユーザのメールボックスに複数の電子メールが存在する場合には、電子メール毎に処理を行う。なお、サーバ10は、上述したように、固有情報を加えて送信用の電子メールを生成して端末20に送信してもよい。また、サーバ10は、端末20から電子メールのサイズの要求情報を受信した場合には、固有情報を付加した送信用の電子メールのサイズを端末20に送信するようにしてもよい。   Further, when the read e-mail includes a plurality of specific data reference information, the server 10 writes back the specific data reference information to the corresponding file data for each of the plurality of specific data reference information. A process of sending an e-mail to the terminal 20 is performed. In addition, when there are a plurality of e-mails in the user's mailbox, the server 10 performs processing for each e-mail. As described above, the server 10 may generate e-mail for transmission by adding unique information and transmit it to the terminal 20. Further, when the server 10 receives e-mail size request information from the terminal 20, the server 10 may transmit the e-mail size for transmission to which the unique information is added to the terminal 20.

3.2.4 本文、添付ファイルデータの説明
図8(A)は、シングルパート形式の電子メールの一例を示す。図8(A)に示すように、シングルパート形式の電子メールは、添付ファイルはないものとして処理する。なお、シングルパート形式の電子メールは、1つのパートからなるヘッダ200と本文300によって構成されており、空行情報に基づいて、本文300を抽出する処理を行う。
3.2.4 Description of Text and Attached File Data FIG. 8A shows an example of single-part format e-mail. As shown in FIG. 8A, a single-part e-mail is processed on the assumption that there is no attached file. Note that the single-part e-mail is composed of a header 200 and a body 300 made up of a single part, and performs a process of extracting the body 300 based on blank line information.

図8(B)は、マルチパート形式の電子メールの一例を示す。図8(B)に示すように、マルチパート形式の電子メールは、ヘッダ400と複数のパート510、520によって構成される。   FIG. 8B shows an example of multi-part electronic mail. As shown in FIG. 8B, a multi-part electronic mail is composed of a header 400 and a plurality of parts 510 and 520.

本実施形態における添付ファイルデータは、電子メールのデータのうち添付されたファイルのデータのことをいい、MIME規格のマルチパート形式のパートのデータ(例えば、パートボディのデータ、或いは、パートヘッダ及びパートボディのデータ)である。通常、マルチパート形式の電子メールの1番目のパートには、ユーザがメールソフトにおいて本文として記載したメッセージが記録されているので、本実施形態では、1番目のパート510のデータ(パートボディ512のデータ、又は、パートヘッダ511及びパートボディ512のデータ)を本文とし、2番目のパート520のデータ(パートボディ522のデータ、又は、パートヘッダ521及びパートボディ522のデータ)を添付ファイルデータとして処理を行う。なお、3つ以上のパートが存在する場合には、2番目以降のそれぞれの各パートのデータを各添付ファイルデータとして処理を行う。つまり、3つ以上のパートが存在する場合には、複数の添付ファイルデータを有することになる。   The attached file data in the present embodiment refers to attached file data among e-mail data, and is part data of a MIME standard multipart format (for example, part body data or part header and part data). Body data). Normally, the first part of the multipart e-mail contains a message recorded as the body text in the mail software by the user. Therefore, in this embodiment, the data of the first part 510 (part body 512) Data or data of part header 511 and part body 512) is processed as text, and data of second part 520 (data of part body 522 or data of part header 521 and part body 522) is processed as attachment file data. I do. If there are three or more parts, the data of each part after the second is processed as each attached file data. That is, when there are three or more parts, a plurality of attached file data are included.

なお、マルチパート形式のいずれかのパートが、更にマルチパート形式にデータが記録されている電子メールも存在する。かかる場合には、再帰的に各パートのデータを添付ファイルデータとして処理してもよい。また、マルチパート形式のパートに記録されている下位のマルチパートのパートのデータ(入れ子にされたマルチパートのパートのデータ)については添付ファイルデータとして処理を行わないように制御し、1段階目の各パートのデータを添付ファイルデータとして処理を行うようにしてもよい。   Note that there is an electronic mail in which any part of the multipart format is recorded with data in the multipart format. In such a case, the data of each part may be processed recursively as attached file data. Also, control is performed so that the data of the lower multipart part (nested multipart part data) recorded in the multipart format part is not processed as attachment file data. The data of each part may be processed as attached file data.

なお、サーバ10は、各パートのパートヘッダを参照し、パートヘッダの「Content−Type」が「image/jpeg」等の特定のヘッダ情報である場合に、そのパートのデータを添付ファイルデータとして扱うようにしてもよい。   The server 10 refers to the part header of each part, and when the “Content-Type” of the part header is specific header information such as “image / jpeg”, the data of the part is handled as attached file data. You may do it.

また、サーバ10は、図8(B)に示すようなマルチパート形式の電子メールにおいて、各パートのデータそれぞれを、各添付ファイルデータとして扱うようにしてもよい。つまり、図8(B)の場合には、電子メールの第1のパート510のデータを1番目の添付ファイルデータとして取り扱い、第2のパート520のデータを2番目の添付ファイルデータとして取り扱ってもよい。なお、サーバ10は、図8(B)に示すようなマルチパート形式の電子メールにおいて、全パートのデータ500を本文として処理してもよいし、本文はないものとして処理してもよい。   Further, the server 10 may handle each piece of data as each attached file data in a multi-part electronic mail as shown in FIG. That is, in the case of FIG. 8B, the data of the first part 510 of the electronic mail may be handled as the first attached file data, and the data of the second part 520 may be handled as the second attached file data. Good. Note that the server 10 may process the data 500 of all the parts as a text or may not process the text in the multi-part electronic mail as shown in FIG. 8B.

なお、サーバ10は、電子メールのヘッダの「Content−Type」が「multipart/mixed」である場合に、当該電子メールは添付ファイルデータを有すると判断する(マルチパート形式の電子メールであると判断する)。また、その際に、サーバ10は、各パートの区切り情報(boundary)が示すデータを取得し、区切り情報に基づき各パートデータを抽出する。また、サーバ10は、空行情報に基づいて、各パートのパートヘッダやパートボディデータを抽出し、添付ファイルデータを読み出す処理、添付ファイルデータを抽出して特定データ参照情報に書き換える処理等を行う。   The server 10 determines that the e-mail has attached file data when the “Content-Type” of the e-mail header is “multipart / mixed” (determines that the e-mail is a multi-part format e-mail). To do). At that time, the server 10 acquires data indicated by the delimiter information (boundary) of each part, and extracts each part data based on the delimiter information. Further, the server 10 performs a process of extracting the part header and part body data of each part based on the blank line information, reading the attached file data, extracting the attached file data, and rewriting the specific data reference information. .

3.3 本文に関する電子メールの格納処理と送信処理の例
サーバ10は、受信した電子メールの本文(特定データの一例)が、格納領域60に既に格納された他の電子メールの本文と同じ場合に、受信した電子メールの本文を特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行うようにしてもよい。
3.3 Example of Email Storage Processing and Transmission Processing Related to Text The server 10 determines that the received email text (an example of specific data) is the same as the text of other emails already stored in the storage area 60. In addition, the body of the received e-mail may be rewritten with the specific data reference information, and the rewritten e-mail may be stored in the storage area 60.

3.3.1 本文に関する電子メールの格納処理と送信処理の例1
3.3.1.1 格納処理
例えば、サーバ10は、図12に示すように、T6時点で、userA@aaa.comの宛先が指定された電子メールM6を受信すると、電子メールM6の電子メール参照情報を決定する。例えば、電子メールM6の電子メール参照情報が「006」であるとすると、userA@aaa.comのメールボックス70Aに電子メール参照情報「006」を格納する。
3.3.1 Example 1 of storing and sending e-mail related to text
3.3.1.1 Storage Processing For example, as illustrated in FIG. 12, the server 10 determines that userA @ aaa. When the e-mail M6 to which the address of com is specified is received, the e-mail reference information of the e-mail M6 is determined. For example, if the electronic mail reference information of the electronic mail M6 is “006”, userA @ aaa. The electronic mail reference information “006” is stored in the mail box 70A of com.

次に、サーバ10は、T6時点において、電子メールM6の本文B1のハッシュ値を求め、ハッシュ値に基づいて、電子メールM6の本文B1が既に特定領域80(広義には格納領域60)に格納されているか否かを判断する。このハッシュ値は、本文(特定データの一例)を識別(特定)するための情報である。つまり、サーバ10は、ハッシュ値がハッシュテーブルTBに登録されているか否かを判断する。   Next, at time T6, the server 10 obtains the hash value of the body B1 of the email M6, and based on the hash value, the body B1 of the email M6 is already stored in the specific area 80 (storage area 60 in a broad sense). It is judged whether it is done. This hash value is information for identifying (specifying) the text (an example of specific data). That is, the server 10 determines whether or not the hash value is registered in the hash table TB.

例えば、本文B1のハッシュ値が「3451432」であるとすると、このハッシュ値「3451432」がハッシュテーブルTBに登録されているか否かを判断する。そして、サーバ10は、本文B1のハッシュ値を「3451432」がハッシュテーブルTBに登録されていない場合に、電子メールM6の本文が特定領域80に格納されていないと判断し、ハッシュテーブルTBにハッシュ値「3451432」に対応づけて特定データ参照情報「006−B」を登録する。なお、特定データ参照情報の「006−B」は、電子メールM6の参照情報「006」と、参照先のデータが本文であることを示すデータ「B」とを組み合わせた情報とする。そして、サーバ10は、電子メールM6をそのまま特定領域80に格納する処理を行う。   For example, if the hash value of the text B1 is “3451432,” it is determined whether this hash value “3451432” is registered in the hash table TB. When the hash value “3454132” of the text B1 is not registered in the hash table TB, the server 10 determines that the text of the email M6 is not stored in the specific area 80, and hashes the hash value in the hash table TB. The specific data reference information “006-B” is registered in association with the value “3451432”. The specific data reference information “006-B” is information obtained by combining the reference information “006” of the e-mail M6 and the data “B” indicating that the reference destination data is the text. Then, the server 10 performs processing for storing the e-mail M6 in the specific area 80 as it is.

その後、サーバ10が、T7時点(T6時点の後のタイミング)で、userB@aaa.comの宛先が指定された電子メールM7を受信したとする。サーバ10は、userB@aaa.comのメールボックス70Bに、電子メールM7の電子メール参照情報「007」を格納する。   Thereafter, at time T7 (timing after time T6), the server 10 determines userB @ aaa. Assume that an e-mail M7 in which the address of com is specified is received. Server 10 uses userB @ aaa. The electronic mail reference information “007” of the electronic mail M7 is stored in the mail box 70B of com.

そして、サーバ10は、電子メールM7の本文B1のハッシュ値を求める。そして、サーバ10は、T7時点において、電子メールM7のハッシュ値がハッシュテーブルTBに登録されているか否かを判断する。例えば、サーバ10は、T7時点で、電子メールM7の本文B1のハッシュ値「3451432」がハッシュテーブルTBに登録されている場合、電子メールM7の本文が特定領域80に格納されていると判断する。そして、電子メールM7の本文を、ハッシュ値「3451432」に対応する特定データ参照情報「006−B」に書き換えて、電子メールM7を特定領域80に格納する処理を行う。   And the server 10 calculates | requires the hash value of the text B1 of the email M7. Then, the server 10 determines whether or not the hash value of the email M7 is registered in the hash table TB at time T7. For example, if the hash value “3451432” of the body B1 of the email M7 is registered in the hash table TB at the time T7, the server 10 determines that the body of the email M7 is stored in the specific area 80. . Then, the body of the e-mail M7 is rewritten with the specific data reference information “006-B” corresponding to the hash value “3451432”, and the e-mail M7 is stored in the specific area 80.

3.3.1.2 送信処理
次に、サーバ10の送信処理について説明する。サーバ10は、端末20から受信要求とユーザ情報を受信し、ユーザ認証を認めるとユーザのメールボックスから電子メールを読み出す。
3.3.1.2 Transmission Process Next, the transmission process of the server 10 will be described. The server 10 receives the reception request and user information from the terminal 20, and reads the e-mail from the user mailbox when the user authentication is accepted.

そして、サーバ10は、読み出された電子メールが特定データ参照情報を含むか否かを判断し、読み出された電子メールが特定データ参照情報を含む場合には、特定データ参照情報を特定領域80に格納されている本文(特定データ参照情報に対応する本文)に書き戻し、書き戻された電子メールを端末20に送信する処理を行う。一方、特定領域80から読み出された電子メールに特定データ参照情報が含まれない場合には、読み出した電子メールを端末20に送信する処理を行う。このようにすれば、従来と同じように、端末にユーザ宛の電子メールを送信することができる。   Then, the server 10 determines whether or not the read e-mail includes the specific data reference information. If the read e-mail includes the specific data reference information, the server 10 displays the specific data reference information in the specific area. A process of writing back the text stored in 80 (text corresponding to the specific data reference information) and transmitting the written back e-mail to the terminal 20 is performed. On the other hand, when the specific data reference information is not included in the e-mail read from the specific area 80, a process of transmitting the read e-mail to the terminal 20 is performed. In this way, an e-mail addressed to the user can be transmitted to the terminal as in the conventional case.

例えば、図12のT7以後で、サーバ10が、ユーザ名「userB@aaa.com」の端末20から受信要求を受け付けると、「userB@aaa.com」のメールボックス70Bにある電子メール参照情報「007」を取得する。そして、「007」に対応する電子メールM7を特定領域80から読み出す。   For example, when the server 10 receives a reception request from the terminal 20 with the user name “userB@aaa.com” after T7 in FIG. 12, the e-mail reference information “in the mailbox 70B of“ userB@aaa.com ”“ 007 "is acquired. Then, the electronic mail M7 corresponding to “007” is read from the specific area 80.

そして、サーバ10は、電子メールM7に特定データ参照情報を含むか否かを判断する。例えば、サーバ10は、電子メールM7に特定データ参照情報を含むと判断されると、特定データ参照情報「006−B」を取得し、「006−B」に対応する本文B1を取得し、当該特定データ参照情報「006−B」を本文B1に書き戻す。例えば、特定データ参照情報「006−B」は、電子メールM6の本文を意味するので、サーバ10は、電子メールM6の本文B1を読み出して、電子メールM7の特定データ参照情報「006−B」を削除して代わりに本文B1を書き込む処理を行う。そして、サーバ10は、書き戻された電子メールM7を端末20に送信する処理を行う。なお、サーバ10は、上述したように、電子メールM7に固有情報を加えて送信用の電子メールM7を生成して端末20に送信してもよい。また、サーバ10は、端末20から電子メールM7のサイズの要求情報を受信した場合には、固有情報を付加した送信用の電子メールM7のサイズを端末20に送信するようにしてもよい。   Then, the server 10 determines whether or not the specific data reference information is included in the email M7. For example, when it is determined that the e-mail M7 includes the specific data reference information, the server 10 acquires the specific data reference information “006-B”, acquires the text B1 corresponding to “006-B”, and The specific data reference information “006-B” is written back to the text B1. For example, since the specific data reference information “006-B” means the text of the email M6, the server 10 reads the text B1 of the email M6, and the specific data reference information “006-B” of the email M7. Is deleted and the text B1 is written instead. Then, the server 10 performs a process of transmitting the rewritten electronic mail M7 to the terminal 20. As described above, the server 10 may generate e-mail M7 for transmission by adding unique information to the e-mail M7 and transmit it to the terminal 20. Further, when the server 10 receives the request information of the size of the electronic mail M7 from the terminal 20, the server 10 may transmit the size of the electronic mail M7 for transmission to which the unique information is added to the terminal 20.

なお、サーバ10は、受信要求を受け付けたユーザのメールボックスに複数の電子メール参照情報を取得した場合には、電子メール参照情報毎に処理を行う。また、サーバ10は、読み出した電子メールに複数の特定データ参照情報が含まれる場合には、複数の特定データ参照情報それぞれについて、特定データ参照情報を対応する本文に書き戻し、書き戻された電子メールを端末20に送信する処理を行う。   In addition, when the server 10 acquires a plurality of pieces of email reference information in the mailbox of the user who has received the reception request, the server 10 performs processing for each piece of email reference information. In addition, when the read electronic mail includes a plurality of specific data reference information, the server 10 writes back the specific data reference information in the corresponding text for each of the plurality of specific data reference information, A process of transmitting mail to the terminal 20 is performed.

以上のように、本実施形態のサーバ10は、電子メールの一部の本文を特定データ参照情報に書き換えたとしても、元の添付ファイルデータに戻すことができるので、データを紛失することなく確実に電子メールを送信することができる。   As described above, the server 10 according to the present embodiment can restore the original attachment file data even if the text of a part of the e-mail is rewritten with the specific data reference information, so that the data can be reliably lost. Email can be sent to.

3.3.2 本文に関する電子メールの格納処理と送信処理の例2
3.3.2.1 格納処理
また、サーバ10は、図13に示すように、受信する電子メールの本文を特定データ参照情報に書き換え、書き換え後の電子メールを、各宛先のメールボックス70に格納するようにしてもよい。
3.3.2 Example 2 for storing and sending e-mail related to the text
3.3.2.1 Storage Processing Further, as shown in FIG. 13, the server 10 rewrites the text of the received e-mail with the specific data reference information, and the rewritten e-mail is stored in the mail box 70 of each destination. You may make it store.

そして、サーバ10は、本文のハッシュ値に基づいて、電子メールの本文が既に特定領域80に格納されているか否かを判断し、本文が特定領域80に格納されていない場合に、本文を特定領域80に格納する。一方、本文が特定領域80に格納されている場合に、本文を重複して特定領域80に格納しないように制御する。   Then, the server 10 determines whether or not the body of the e-mail is already stored in the specific area 80 based on the hash value of the body, and specifies the body when the body is not stored in the specific area 80. Store in area 80. On the other hand, when the text is stored in the specific area 80, control is performed so that the text is not duplicated and stored in the specific area 80.

例えば、図13に示すように、T6時点において、サーバ10は、電子メールM6の本文B1を特定データ参照情報「006−B」に書き換え、書き換え後の電子メールM6をメールボックス70Aに格納する処理を行う。そして、サーバ10は、本文B1が特定領域80に格納されていない場合、本文B1を特定領域80に格納する処理を行い、ハッシュテーブルTBに、本文B1のハッシュ値「3451432」に対応づけて、本文B1の特定データ参照情報「006−B」を登録する。   For example, as shown in FIG. 13, at time T6, the server 10 rewrites the text B1 of the email M6 with the specific data reference information “006-B”, and stores the rewritten email M6 in the mailbox 70A. I do. Then, when the text B1 is not stored in the specific area 80, the server 10 performs a process of storing the text B1 in the specific area 80, and associates the hash value “3454132” of the text B1 with the hash table TB. The specific data reference information “006-B” of the text B1 is registered.

その後、サーバ10が、T7時点で受信した電子メールM7を受信すると、電子メールM7の本文B1を特定データ参照情報「006−B」に書き換え、書き換え後の電子メールM7をメールボックス70Bに格納する処理を行う。なお、T7時点では、本文B1のハッシュ値「3451432」が既にハッシュテーブルTBに登録されているので、T7時点で本文B1を特定領域80に格納しないように制御する。以上のように、例2においても、サーバ10は、同一の本文を重複して格納しないように制御することにより、従来よりも格納領域60を使用する容量を節約することができる。   Thereafter, when the server 10 receives the e-mail M7 received at time T7, the body B1 of the e-mail M7 is rewritten with the specific data reference information “006-B”, and the rewritten e-mail M7 is stored in the mail box 70B. Process. Note that since the hash value “3454142” of the text B1 is already registered in the hash table TB at the time T7, control is performed so that the text B1 is not stored in the specific area 80 at the time T7. As described above, also in Example 2, the server 10 can save the capacity to use the storage area 60 as compared with the conventional case by controlling not to duplicately store the same text.

3.3.2.2 送信処理
次に、サーバ10の送信処理について説明する。サーバ10は、端末20から受信要求とユーザ情報を受信し、ユーザ認証を認めるとユーザのメールボックスから電子メールを読み出す。
3.3.2.2 Transmission Process Next, the transmission process of the server 10 will be described. The server 10 receives the reception request and user information from the terminal 20, and reads the e-mail from the user mailbox when the user authentication is accepted.

そして、サーバ10は、読み出された電子メールの特定データ参照情報を、特定領域80に格納されている本文(特定データ参照情報に対応する本文)に書き戻し、書き戻された電子メールを端末20に送信する処理を行う。また、サーバ10は、ユーザのメールボックスに複数の電子メールが存在する場合には、電子メール毎に処理を行う。   Then, the server 10 rewrites the read specific data reference information of the e-mail into the text stored in the specific area 80 (the text corresponding to the specific data reference information), and writes the rewritten e-mail to the terminal The process which transmits to 20 is performed. In addition, when there are a plurality of e-mails in the user's mailbox, the server 10 performs processing for each e-mail.

3.3.3 その他
サーバ10は、受信した電子メールの添付ファイルデータが、格納領域60(例えば、特定領域80)に既に格納された他の電子メールの本文と同じ場合には、受信した電子メールの当該添付ファイルデータを、特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納するようにしてもよい。
3.3.3 Other When the attached file data of the received e-mail is the same as the text of another e-mail already stored in the storage area 60 (for example, the specific area 80), the server 10 receives the received e-mail. The attached file data of the mail may be rewritten with the specific data reference information, and the rewritten electronic mail may be stored in the storage area 60.

また、サーバ10は、受信した電子メールの本文が、格納領域60(例えば、特定領域80)に既に格納された他の電子メールの添付ファイルデータと同じ場合には、受信した電子メールの当該本文を、特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納するようにしてもよい。   Further, the server 10 determines that the received body text of the received e-mail is the same as the attached file data of another e-mail already stored in the storage area 60 (for example, the specific area 80). May be rewritten with the specific data reference information, and the rewritten electronic mail may be stored in the storage area 60.

例えば、サーバ10は、マルチパート形式の電子メールを受信した場合には、特定データそれぞれについて(本文、各添付ファイルデータそれぞれについて)、特定データが格納領域60(例えば、特定領域80)に既に格納された他の電子メールの特定データ(添付ファイルデータ又は本文)と同じか否かを判断する。そして、当該特定データが既に格納された他の電子メールの特定データと同じ場合には、受信した電子メールの当該特定データを、特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納するようにしてもよい。   For example, when the server 10 receives a multipart e-mail, the specific data is already stored in the storage area 60 (for example, the specific area 80) for each specific data (for each of the text and each attached file data). It is determined whether or not it is the same as the specific data (attached file data or text) of the other electronic mail that has been sent. If the specific data is the same as the specific data of another electronic mail already stored, the specific data of the received electronic mail is rewritten with specific data reference information, and the rewritten electronic mail is stored in the storage area 60. You may make it store.

4.削除処理
本実施形態のサーバ10は、格納領域60に格納されたデータを削除しないように制御してもよいし、格納領域60に格納されたデータを、所定条件下で削除するようにしてもよい。
4). Deletion Processing The server 10 of this embodiment may be controlled not to delete the data stored in the storage area 60, or may delete the data stored in the storage area 60 under a predetermined condition. Good.

4.1 電子メール参照情報に対応するリファレンス値に基づいて、電子メールを削除する手法
例えば、サーバ10が、格納領域60に格納された電子メールを、所定条件下で削除する場合には、電子メール参照情報に対応づけてリファレンス値を設定し、リファレンス値を参照してデータの削除処理を行うことにより、誤って必要なデータを削除しないように制御する。
4.1 Method for Deleting Email Based on Reference Value Corresponding to Email Reference Information For example, when the server 10 deletes an email stored in the storage area 60 under a predetermined condition, A reference value is set in association with the mail reference information, and data deletion processing is performed with reference to the reference value, so that necessary data is not accidentally deleted.

4.1.1 リファレンス値を設定する処理
図14(A)は、電子メール参照情報に対応するリファレンス値R1の一例を示す。例えば、一の電子メールに対応するリファレンス値R1は、当該電子メールの一部または全部が参照される数に相当する。例えば、R1値が「0」の場合は参照されていない状態を示し、R1値が「1」以上である場合には、1以上の電子メールによって参照されている状態を示す。
4.1.1 Processing for Setting Reference Value FIG. 14A shows an example of a reference value R1 corresponding to e-mail reference information. For example, the reference value R1 corresponding to one e-mail corresponds to the number by which a part or all of the e-mail is referred. For example, when the R1 value is “0”, it indicates a state that is not referred to, and when the R1 value is “1” or more, it indicates a state that is referenced by one or more e-mails.

まず、サーバ10は、宛先数に応じてR1値を設定する。例えば、図3に示すように、電子メール参照情報「001」に、2つの宛先が指定されている場合には、電子メール参照情報「001」のR1値を「2」に設定する。また、図6に示すように、電子メール「002」に1つの宛先が指定されている場合には、電子メール参照情報「002」のR1値を「1」に設定する。つまり、サーバ10は、電子メール参照情報のR1値が、電子メールの宛先数以上になるように設定する。   First, the server 10 sets the R1 value according to the number of destinations. For example, as shown in FIG. 3, when two destinations are designated in the e-mail reference information “001”, the R1 value of the e-mail reference information “001” is set to “2”. Further, as shown in FIG. 6, when one destination is designated for the email “002”, the R1 value of the email reference information “002” is set to “1”. That is, the server 10 sets the R1 value of the e-mail reference information to be equal to or greater than the number of e-mail destinations.

また、電子メールの本文の全部又は一部である特定データ(本文又は添付ファイルデータ)が他の電子メールから参照される場合、当該参照される側の電子メールのR1値を参照数に応じて増加させる。例えば、特定データ参照情報に書き換える数に応じて、特定データ参照情報に対応するR1値を1増加させる(インクリメントさせる)。   In addition, when specific data (body text or attached file data) that is the whole or part of the body of an e-mail is referenced from another e-mail, the R1 value of the referenced e-mail is determined according to the number of references. increase. For example, the R1 value corresponding to the specific data reference information is increased by 1 (incremented) according to the number of rewrites to the specific data reference information.

具体的には、図6に示すように、電子メールM3の添付ファイルデータF1を特定データ参照情報「002−1」に書き換える場合に、電子メール参照情報「002」に対応するR1値を1増加させる。また、図12に示すように、電子メールM7の本文を特定データ参照情報「006−B」に書き換える場合には、電子メール参照情報「006」のR1値を1増加させる。なお、図9、10に示すような例についても、同様に処理を行う。   Specifically, as shown in FIG. 6, when the attached file data F1 of the e-mail M3 is rewritten to the specific data reference information “002-1,” the R1 value corresponding to the e-mail reference information “002” is increased by 1. Let Also, as shown in FIG. 12, when the text of the email M7 is rewritten with the specific data reference information “006-B”, the R1 value of the email reference information “006” is incremented by one. The same processing is performed for the examples shown in FIGS.

4.1.2 リファレンス値に基づく電子メールの削除処理
本実施形態のサーバ10は、端末20に電子メール参照情報に対応する電子メールの送信処理が正常終了した後に、電子メール参照情報に対応するR1値を「1」減少させる(デクリメントさせる)処理を行う。また、電子メールに特定データ参照情報を含む場合には、特定データ参照情報を、本文又は添付ファイルデータに書き戻す都度、参照先の電子メールのR1値を1減少させる(デクリメントさせる)。
4.1.2 E-mail Deletion Process Based on Reference Value The server 10 according to the present embodiment corresponds to e-mail reference information after the e-mail transmission process corresponding to the e-mail reference information to the terminal 20 is normally completed. A process of decrementing (decrementing) the R1 value by “1” is performed. When the specific data reference information is included in the e-mail, each time the specific data reference information is written back into the text or attached file data, the R1 value of the reference e-mail is decreased by 1 (decremented).

例えば、図3のT1時点後、サーバ10が、電子メール参照情報「001」に対応するR1値が「2」である状態で、userA@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userA@aaa.comの端末20から電子メール参照情報「001」に対応する電子メールM1の送信処理を正常終了した後に、電子メール参照情報「001」に対応するR1値を「1」減少させる。つまり、電子メール参照情報「001」に対応するR1値を「2」から「1」に更新する。   For example, after the time T1 in FIG. 3, the server 10 has a user A @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 sends userA @ aaa. After normally completing the transmission process of the email M1 corresponding to the email reference information “001” from the terminal 20 of com, the R1 value corresponding to the email reference information “001” is decreased by “1”. That is, the R1 value corresponding to the e-mail reference information “001” is updated from “2” to “1”.

その後、サーバ10が、userB@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userB@aaa.comの端末20から電子メール参照情報「001」に対応する電子メールM1の送信処理を正常終了した後に、電子メール参照情報「001」に対応するR1値を「1」減少させる。例えば、電子メール参照情報「001」に対応するR1値を「1」から「0」に更新する。   Thereafter, the server 10 determines that userB @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 uses userB @ aaa. After normally completing the transmission process of the email M1 corresponding to the email reference information “001” from the terminal 20 of com, the R1 value corresponding to the email reference information “001” is decreased by “1”. For example, the R1 value corresponding to the electronic mail reference information “001” is updated from “1” to “0”.

また、図6のT3時点後、サーバ10が、電子メール参照情報「002」に対応するR1値が「2」、電子メール参照情報「003」に対応するR1値が「1」である状態で、userA@aaa.comの端末20から受信要求を受け付けたとする。   Further, after time T3 in FIG. 6, the server 10 is in a state where the R1 value corresponding to the email reference information “002” is “2” and the R1 value corresponding to the email reference information “003” is “1”. , UserA @ aaa. Suppose that a reception request is received from the terminal 20 of com.

すると、サーバ10は、userA@aaa.comの端末20から電子メール参照情報「002」に対応する電子メールM2の送信処理を正常終了した後に、電子メール参照情報「002」に対応するR1値を「1」減少させる。つまり、電子メール参照情報「002」に対応するR1値を「2」から「1」に更新する。   Then, the server 10 sends userA @ aaa. After the transmission processing of the e-mail M2 corresponding to the e-mail reference information “002” from the terminal 20 of the com ends normally, the R1 value corresponding to the e-mail reference information “002” is decreased by “1”. That is, the R1 value corresponding to the electronic mail reference information “002” is updated from “2” to “1”.

その後、サーバ10が、userB@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userB@aaa.comの端末20から電子メール参照情報「003」に対応する電子メールM3の特定データ参照情報「002−1」を元の特定データ(添付ファイルデータF1)に書き戻し、当該電子メールM3の送信処理を正常終了した後に、電子メール参照情報「003」に対応するR1値を「1」減少させる。つまり、「003」に対応するR1値を「1」から「0」に更新する。また、特定データ参照情報「002−1」に基づき、参照先の電子メール参照情報「002」に対応するR1値を「1」減少させる。つまり、電子メール参照情報「002」に対応するR1値を「1」から「0」に更新する。なお、図9、10、12等の例についても、同様に処理を行う。   Thereafter, the server 10 determines that userB @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 uses userB @ aaa. The specific data reference information “002-1” of the e-mail M3 corresponding to the e-mail reference information “003” is written back to the original specific data (attached file data F1) from the terminal 20 of com, and the transmission process of the e-mail M3 After normal termination, the R1 value corresponding to the e-mail reference information “003” is decreased by “1”. That is, the R1 value corresponding to “003” is updated from “1” to “0”. Further, based on the specific data reference information “002-1”, the R1 value corresponding to the reference destination electronic mail reference information “002” is decreased by “1”. That is, the R1 value corresponding to the e-mail reference information “002” is updated from “1” to “0”. Note that the same processing is performed for the examples of FIGS.

そして、サーバ10は、最終的に、R1値が0である電子メール参照情報に対応する電子メールを、参照されていない電子メールとみなし、当該電子メールを特定領域80(広義には格納領域60)から削除する処理を行う。例えば、図3の例で、電子メール参照情報「001」のR1値が0になった場合には、特定領域80に格納された電子メールM1を削除する処理を行う。また、図6の例で、電子メール参照情報「002」のR1値が0になった場合には、特定領域80に格納された電子メールM2を削除する処理を行う。なお、図9、10、12等の例についても、同様に処理を行う。   Then, the server 10 finally regards the email corresponding to the email reference information whose R1 value is 0 as an email that has not been referenced, and regards the email as a specific area 80 (storage area 60 in a broad sense). ) Is deleted. For example, in the example of FIG. 3, when the R1 value of the e-mail reference information “001” becomes 0, the e-mail M1 stored in the specific area 80 is deleted. Further, in the example of FIG. 6, when the R1 value of the email reference information “002” becomes 0, a process of deleting the email M2 stored in the specific area 80 is performed. Note that the same processing is performed for the examples of FIGS.

なお、サーバ10は、R1値を更新する度に、当該R1値が0になったか否かを判断し、R1値が0になったと判断した場合に、電子メールを特定領域80から削除してもよいし、特定の削除タイミング(例えば、毎日の午前2時)に、電子メール参照情報のR1値が0である電子メールを削除するようにしてもよい。なお、サーバ10は、端末20からサーバ10側に電子メールを保存する要求情報を受け付けた場合には、R1値を減少させないように制御するようにしてもよい。   Each time the server 10 updates the R1 value, the server 10 determines whether or not the R1 value has become 0. When the server 10 determines that the R1 value has become 0, the server 10 deletes the e-mail from the specific area 80. Alternatively, an e-mail whose R1 value of the e-mail reference information is 0 may be deleted at a specific deletion timing (for example, every day at 2 am). Note that the server 10 may perform control so as not to decrease the R1 value when request information for saving an e-mail is received from the terminal 20 on the server 10 side.

以上のように、本実施形態のサーバ10は、保存する必要のない電子メールを削除することができるので、格納領域60の無駄な使用を削減し、格納領域60を有効に利用することができる。また、サーバ10は、リファレンス値に基づき削除処理を行うので、処理負荷を抑えて削除処理の判別を行うことができる。   As described above, the server 10 according to the present embodiment can delete e-mails that do not need to be saved. Therefore, the use of the storage area 60 can be reduced and the storage area 60 can be used effectively. . In addition, since the server 10 performs the deletion process based on the reference value, it is possible to determine the deletion process while reducing the processing load.

4.2 特定データ参照情報に対応するリファレンス値に基づいてデータを削除する手法
本実施形態のサーバ10は、特定データ参照情報に対応するリファレンス値R2値を設定し、特定データ(添付ファイルデータ、本文)の削除処理を行うようにしてもよい。例えば、図11、13の処理例については、特定データ参照情報に対応するリファレンス値に基づいてデータを削除する。
4.2 Method for Deleting Data Based on Reference Value Corresponding to Specific Data Reference Information The server 10 of the present embodiment sets a reference value R2 value corresponding to specific data reference information, and specifies specific data (attached file data, It is also possible to perform deletion processing of (text). For example, in the processing examples of FIGS. 11 and 13, data is deleted based on the reference value corresponding to the specific data reference information.

4.2.1 リファレンス値を設定する処理
図14(B)は、特定データ参照情報に対応するリファレンス値R2の一例を示す。例えば、リファレンス値R2は、特定データを参照する数に相当する。例えば、R2値が「0」の場合は参照されていない状態を示し、R2値が「1」以上である場合には、1以上の電子メールによって参照されている状態を示す。
4.2.1 Processing for Setting Reference Value FIG. 14B shows an example of a reference value R2 corresponding to specific data reference information. For example, the reference value R2 corresponds to the number referring to the specific data. For example, when the R2 value is “0”, it indicates a state that is not referred to, and when the R2 value is “1” or more, it indicates a state that is referenced by one or more e-mails.

例えば、サーバ10は、添付ファイルデータ又は本文を特定データ参照情報に書き換える度に、R2値を1増加させる(インクリメントさせる)。具体的には、図11に示すように、添付ファイルデータを特定データ参照情報「002−1」に書き換える場合に、特定データ参照情報「002−1」に対応するR2を1増加させる。また、図13に示すように、電子メールR7の本文を特定データ参照情報「006−B」に書き換える場合に、「006−B」に対応するR2を1増加させる。   For example, each time the server 10 rewrites the attached file data or the text to the specific data reference information, the server 10 increases (increments) the R2 value by one. Specifically, as illustrated in FIG. 11, when the attached file data is rewritten to the specific data reference information “002-1”, R2 corresponding to the specific data reference information “002-1” is incremented by one. Further, as shown in FIG. 13, when rewriting the text of the electronic mail R7 to the specific data reference information “006-B”, R2 corresponding to “006-B” is incremented by one.

4.2.2 リファレンス値に基づく特定データの削除処理
本実施形態のサーバ10は、端末20からの受信要求があり、電子メール参照情報に対応する電子メールの送信処理が正常終了した後に、特定データ参照情報に対応するR2値を「1」減少させる(デクリメント)処理を行う。
4.2.2 Specific Data Deletion Processing Based on Reference Value The server 10 according to the present embodiment specifies a specific request after receiving a reception request from the terminal 20 and successfully completing transmission processing of an email corresponding to email reference information. A process of decrementing (decrementing) the R2 value corresponding to the data reference information by “1” is performed.

例えば、図11のT3時点後、サーバ10が、特定データ参照情報「002−1」に対応するR2値が「2」である状態で、userA@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userA@aaa.comのメールボックスにある電子メールM2の特定データ参照情報「002−1」を添付ファイルデータF1に書き戻し電子メールM2の送信処理を正常終了した後に、特定データ参照情報「002−1」に対応するR2値を「1」減少させる。つまり、特定データ参照情報「002−1」に対応するR2値を「2」から「1」に更新する。   For example, after time T3 in FIG. 11, the server 10 is in a state where the R2 value corresponding to the specific data reference information “002-1” is “2”, and userA @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 sends userA @ aaa. The specific data reference information “002-1” of the e-mail M2 in the com mailbox is written back to the attached file data F1, and after the transmission processing of the e-mail M2 is normally completed, the specific data reference information “002-1” is supported. R2 value to be reduced is decreased by “1”. That is, the R2 value corresponding to the specific data reference information “002-1” is updated from “2” to “1”.

その後、サーバ10が、userB@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userB@aaa.comのメールボックスにある電子メールM3の特定データ参照情報「002−1」を添付ファイルデータF1に書き戻し電子メールM3の送信処理を正常終了した後に、特定データ参照情報「002−1」に対応するR2値を「1」減少させる。つまり、特定データ参照情報「002−1」に対応するR2値を「1」から「0」に更新する。   Thereafter, the server 10 determines that userB @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 uses userB @ aaa. The specific data reference information “002-1” of the electronic mail M3 in the com mailbox is written back to the attached file data F1, and the transmission processing of the electronic mail M3 is normally completed. R2 value to be reduced is decreased by “1”. That is, the R2 value corresponding to the specific data reference information “002-1” is updated from “1” to “0”.

また、図13のT7時点後、サーバ10が、特定データ参照情報「006−B」に対応するR2値が「2」である状態で、userA@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userA@aaa.comのメールボックスにある電子メールM6の特定データ参照情報「006−B」を本文B1に書き戻して電子メールM6の送信処理を正常終了した後に、特定データ参照情報「006−B」に対応するR2値を「1」減少させる。つまり、特定データ参照情報「006−B」に対応するR2値を「2」から「1」に更新する。   Further, after time T7 in FIG. 13, the server 10 is in a state where the R2 value corresponding to the specific data reference information “006-B” is “2”, userA @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 sends userA @ aaa. The specific data reference information “006-B” of the e-mail M6 in the mail box of com is written back to the text B1 and the transmission processing of the e-mail M6 is normally completed, and then the specific data reference information “006-B” is handled. Decrease R2 value by "1". That is, the R2 value corresponding to the specific data reference information “006-B” is updated from “2” to “1”.

その後、サーバ10が、userB@aaa.comの端末20から受信要求を受け付けたとする。すると、サーバ10は、userB@aaa.comのメールボックスにある電子メールM7の特定データ参照情報「006−B」を本文B1に書き戻して電子メールM7の送信処理を正常終了した後に、特定データ参照情報「006−B」に対応するR2値を「1」減少させる。つまり、特定データ参照情報「006−B」に対応するR2値を「1」から「0」に更新する。   Thereafter, the server 10 determines that userB @ aaa. Suppose that a reception request is received from the terminal 20 of com. Then, the server 10 uses userB @ aaa. The specific data reference information “006-B” of the electronic mail M7 in the mail box of com is written back to the text B1 and the transmission processing of the electronic mail M7 is normally completed, and then the specific data reference information “006-B” is handled. Decrease R2 value by "1". That is, the R2 value corresponding to the specific data reference information “006-B” is updated from “1” to “0”.

そして、サーバ10は、最終的に、R2値が0である特定データ参照情報に対応する特定データ(本文又は添付ファイルデータ)を、参照されていない特定データとみなし、当該特定データを特定領域80(広義には格納領域60)から削除する処理を行う。例えば、図11の例で、特定データ参照情報「002−1」のR2値が0になった場合には、特定領域80に格納された添付ファイルデータF1を削除する処理を行う。また、図13の例で、特定データ参照情報「006−B」のR2値が0になった場合には、特定領域80に格納された本文B1を削除する処理を行う。   Then, the server 10 finally regards the specific data (text or attached file data) corresponding to the specific data reference information whose R2 value is 0 as the unreferenced specific data, and regards the specific data as the specific area 80. A process of deleting from the storage area 60 (in a broad sense) is performed. For example, in the example of FIG. 11, when the R2 value of the specific data reference information “002-1” becomes 0, the process of deleting the attached file data F1 stored in the specific area 80 is performed. Further, in the example of FIG. 13, when the R2 value of the specific data reference information “006-B” becomes 0, a process of deleting the text B1 stored in the specific area 80 is performed.

なお、サーバ10は、R1値に基づく電子メールの削除処理と同じように、R2値を更新する度に、当該R2値が0になったか否かを判断し、R2値が0になったと判断した場合に、電子メールを特定領域80から削除してもよいし、特定の削除タイミング(例えば、毎日の午前2時)に、特定データ参照情報のR2値が0である電子メールを削除するようにしてもよい。なお、サーバ10は、端末20からサーバ10側に電子メールを保存する要求情報を受け付けた場合には、R2値を減少させないように制御するようにしてもよい。   Note that the server 10 determines whether or not the R2 value has become 0 each time the R2 value is updated, as in the e-mail deletion process based on the R1 value, and determines that the R2 value has become 0. In such a case, the e-mail may be deleted from the specific area 80, or the e-mail whose R2 value of the specific data reference information is 0 is deleted at a specific deletion timing (for example, every day at 2 am). It may be. Note that the server 10 may perform control so as not to decrease the R2 value when the request information for saving the e-mail is received from the terminal 20 to the server 10 side.

以上のように、本実施形態のサーバ10は、保存する必要のない特定データ(本文又は添付ファイルデータ)を削除することができるので、格納領域60の無駄な使用を削減し、格納領域60を有効に利用することができる。また、サーバ10は、リファレンス値に基づき削除処理を行うので、処理負荷を抑えて削除処理の判別を行うことができる。   As described above, the server 10 according to the present embodiment can delete specific data (body text or attached file data) that does not need to be saved, so that wasteful use of the storage area 60 is reduced, and the storage area 60 is saved. It can be used effectively. In addition, since the server 10 performs the deletion process based on the reference value, it is possible to determine the deletion process while reducing the processing load.

4.3 その他
なお、サーバ10は、電子メールが削除される際に、当該電子メールの参照情報とそのリファレンス値R1を削除してもよい。また、サーバ10は、特定データが削除される際に、当該特定データの参照情報とそのリファレンス値R2を削除し、ハッシュテーブルTBから当該特定データの参照情報とハッシュ値とを削除するようにしてもよい。また、上記削除処理は一例であり、サーバ10は、種々の態様で電子メールや特定データの削除処理を行うようにしてもよい。
4.3 Others When the electronic mail is deleted, the server 10 may delete the reference information and the reference value R1 of the electronic mail. Further, when the specific data is deleted, the server 10 deletes the reference information and the reference value R2 of the specific data, and deletes the reference information and the hash value of the specific data from the hash table TB. Also good. Moreover, the said deletion process is an example and the server 10 may be made to perform the deletion process of an email or specific data in various aspects.

5.フローチャート
5.1 格納処理の流れ
サーバ10が、サーバ10管理下のユーザを宛先とする電子メールを受信した場合、当該電子メールを格納領域60に格納する処理の一例について、図15A、図15Bを用いて、説明する。なお、R1値の初期値は「0」である。また、下記処理の流れは添付ファイルデータを特定データとし、当該添付ファイルデータを特定データ参照情報に書き換えて格納する処理の一例である。
5. Flowchart 5.1 Storage Process Flow When the server 10 receives an e-mail addressed to a user managed by the server 10, an example of a process for storing the e-mail in the storage area 60 is shown in FIGS. 15A and 15B. It will be explained using. Note that the initial value of the R1 value is “0”. The following processing flow is an example of processing in which the attached file data is specified data, and the attached file data is rewritten and stored with specific data reference information.

まず、受信した電子メールの参照情報を決定する処理を行う(ステップS10)。そして、電子メールが添付ファイルデータを有する否かを判断する(ステップS11)。電子
メールが添付ファイルデータを有しない場合(ステップS11のN)、特定領域80に受信した電子メールを格納する(ステップS12)。次に、各宛先のメールボックスに電子メール参照情報を格納する(ステップS13)。そして、電子メール参照情報に対応するR1値を宛先数分インクリメントする(ステップS14)。
First, processing for determining reference information of the received electronic mail is performed (step S10). Then, it is determined whether or not the e-mail has attached file data (step S11). If the e-mail does not have attached file data (N in step S11), the received e-mail is stored in the specific area 80 (step S12). Next, the e-mail reference information is stored in each destination mailbox (step S13). Then, the R1 value corresponding to the e-mail reference information is incremented by the number of destinations (step S14).

一方、電子メールが添付ファイルデータを有する場合(ステップS11のY)、添付ファイルに対応する特定データ参照情報を決定する処理を行う(ステップS15)。そして、添付ファイルデータのハッシュ値を求める(ステップS16)。次に、ハッシュ値がハッシュテーブルに登録済みか否かを判断する(ステップS17)。   On the other hand, when the e-mail has attached file data (Y in step S11), processing for determining specific data reference information corresponding to the attached file is performed (step S15). Then, the hash value of the attached file data is obtained (step S16). Next, it is determined whether or not the hash value has been registered in the hash table (step S17).

ハッシュ値がハッシュテーブルに登録済み(ステップS17のY)の場合、添付ファイルデータが実在するか否かを判断する(ステップS18)。そして、添付ファイルデータが実在しない場合(ステップS18のN)は、ステップS24に進む。   If the hash value is already registered in the hash table (Y in step S17), it is determined whether or not the attached file data actually exists (step S18). If the attached file data does not actually exist (N in step S18), the process proceeds to step S24.

そして、添付ファイルデータが実在する場合(ステップS18のY)は、各宛先のメールボックスに電子メール参照情報を格納する(ステップS19)。そして、電子メールの添付ファイルデータを、特定データ参照情報に書き換えて、特定領域に格納する(ステップS20)。そして、受信した電子メールの電子メール参照情報に対応するR1値を宛先数分インクリメントする(ステップS21)。そして、参照先の電子メールの電子メール参照情報に対応するR1値を宛先数分インクリメントする(ステップS22)。   If the attached file data actually exists (Y in step S18), the electronic mail reference information is stored in each destination mailbox (step S19). Then, the attached file data of the e-mail is rewritten to the specific data reference information and stored in the specific area (step S20). Then, the R1 value corresponding to the e-mail reference information of the received e-mail is incremented by the number of destinations (step S21). Then, the R1 value corresponding to the e-mail reference information of the reference destination e-mail is incremented by the number of destinations (step S22).

一方、ハッシュ値がハッシュテーブルに登録済みでない場合(ステップS17のN)には、ハッシュ表のハッシュ値を特定データ参照情報に対応づけて登録する(ステップS23)。そして、添付ファイルデータを特定領域に格納する(ステップS24)。そして、各宛先のメールボックスに電子メール参照情報を格納する(ステップS25)。そして、電子メールを特定領域に格納する(ステップS26)。そして、受信した電子メールの電子メール参照情報に対応するR1値を宛先数分インクリメントする(ステップS27)。以上で処理が終了する。   On the other hand, if the hash value has not been registered in the hash table (N in step S17), the hash value in the hash table is registered in association with the specific data reference information (step S23). Then, the attached file data is stored in the specific area (step S24). Then, the e-mail reference information is stored in each destination mailbox (step S25). Then, the electronic mail is stored in the specific area (step S26). Then, the R1 value corresponding to the email reference information of the received email is incremented by the number of destinations (step S27). The process ends here.

5.2 送信処理の流れ
次に、図16を用いて、サーバ10が、端末20から受信要求に応じて、端末20に電子メールを送信する処理の一例について説明する。まず、端末20から受信要求がある場合(ステップS30のY)であって、かつ、ユーザ認証が認められた場合(ステップS31のY)に、ユーザのメールボックスから電子メール参照情報を取得する(ステップS32)。そして、特定領域から電子メール参照情報に対応する電子メールを取得する(ステップS33)。そして、電子メールに特定データ参照情報が含まれるか否かを判断する(ステップS34)。
5.2 Flow of Transmission Process Next, an example of a process in which the server 10 transmits an e-mail to the terminal 20 in response to a reception request from the terminal 20 will be described with reference to FIG. First, when there is a reception request from the terminal 20 (Y in Step S30) and user authentication is approved (Y in Step S31), the electronic mail reference information is acquired from the user's mailbox ( Step S32). Then, an e-mail corresponding to the e-mail reference information is acquired from the specific area (step S33). Then, it is determined whether or not the specific data reference information is included in the e-mail (step S34).

電子メールに特定データ参照情報が含まれない場合(ステップS34のN)は、電子メールに対し、固有情報を付加して送信用の電子メールを生成する(ステップS35)。そして、生成された電子メールを要求のあった端末20に送信する処理を行う(ステップS36)。そして、送信済みの電子メールのR1値をデクリメントする(ステップS37)。   If the specific data reference information is not included in the e-mail (N in step S34), the e-mail is generated by adding unique information to the e-mail (step S35). And the process which transmits the produced | generated electronic mail to the terminal 20 which requested | required is performed (step S36). Then, the R1 value of the sent electronic mail is decremented (step S37).

一方、電子メールに特定データ参照情報が含まれる場合(ステップS34のY)は、特定データ参照情報を添付ファイルデータに書き戻す処理を行う(ステップS38)。そして、電子メールに対し、固有情報を付加して送信用の電子メールを生成する(ステップS39)。そして、生成された電子メールを要求のあった端末20に送信する処理を行う(ステップS40)。そして、送信済みの電子メールのR1値をデクリメントする(ステップS41)。そして、参照元の電子メールのR1値をデクリメントする処理を行う(ステップS42)。以上で処理が終了する。   On the other hand, when the specific data reference information is included in the e-mail (Y in step S34), the specific data reference information is written back to the attached file data (step S38). Then, unique information is added to the e-mail to generate an e-mail for transmission (step S39). And the process which transmits the produced | generated electronic mail to the terminal 20 which requested | required is performed (step S40). Then, the R1 value of the transmitted email is decremented (step S41). Then, a process of decrementing the R1 value of the reference source email is performed (step S42). The process ends here.

6. 複数のドメインを管理する場合
本実施形態のサーバ10は、一つのドメイン(例えば、「aaa.com」)を管理する例について説明したが、サーバ10は、複数のドメイン(例えば、「aaa.com」、「bbb.co.jp」)を管理するようにしてもよい。
6). In the case of managing a plurality of domains The example in which the server 10 of this embodiment manages one domain (for example, “aaa.com”) has been described. However, the server 10 has a plurality of domains (for example, “aaa.com”). , “Bbb.co.jp”) may be managed.

例えば、サーバ10は、複数のドメインそれぞれについて別個独立した格納領域を設け、電子メールの格納処理、送信処理を行うようにしてもよい。より具体的に説明すると、サーバ10は、「aaa.com」の格納領域60−1と、「bbb.co.jp」の格納領域60−2を設け、「aaa.com」をドメインとする電子メールについては、格納領域60−1を用いて格納処理と送信処理を行い、「bbb.co.jp」をドメインとする電子メールについては、格納領域60−2を用いて格納処理と送信処理を行う。   For example, the server 10 may provide separate storage areas for each of a plurality of domains, and may perform an e-mail storage process and a transmission process. More specifically, the server 10 includes a storage area 60-1 for “aaa.com” and a storage area 60-2 for “bbb.co.jp”, and an electronic device having “aaa.com” as a domain. For mail, storage processing and transmission processing are performed using the storage area 60-1, and for e-mail having “bbb.co.jp” as a domain, storage processing and transmission processing are performed using the storage area 60-2. Do.

なお、サーバ10は、複数のドメイン間で格納領域を共有して電子メールの格納処理を行うようにしてもよい。例えば、サーバ10は、受信した電子メールの特定データが、既に格納領域に格納された他のドメインの電子メールの特定データと同じ場合には、受信した電子メールの特定データを特定データ参照情報に書き換えて格納してもよい。そして、当該電子メールを送信する際に、特定データ参照情報を特定データに書き戻して送信するようにしてもよい。   Note that the server 10 may perform storage processing of e-mail by sharing a storage area among a plurality of domains. For example, if the specific data of the received email is the same as the specific data of the email of another domain already stored in the storage area, the server 10 uses the received specific data of the email as the specific data reference information. It may be rewritten and stored. Then, when transmitting the e-mail, the specific data reference information may be written back into the specific data and transmitted.

より具体的に説明すると、サーバ10は、受信した電子メールM8の宛先が「userA@bbb.co.jp」であって、電子メールM8の添付ファイルデータF1(特定データの一例)が、特定領域80(広義には格納領域60)に既に格納された「userA@aaa.com」を宛先とする電子メールM2に含まれる添付ファイルデータF1と同じ場合には、電子メールM8の添付ファイルデータF1を、特定データ参照情報「002−1」に書き換え、書き換え後の電子メールM8を特定領域80に格納する処理を行う。そして、サーバ10は、例えば、端末20からドメイン「bbb.co.jp」のuserAの電子メール受信要求を受け付けた場合には、特定領域80から読み出した電子メールM8の特定データ参照情報「002−1」に対応する添付ファイルデータF1に書き戻し、書き戻された電子メールM8を端末に送信する処理を行う。   More specifically, the server 10 has the destination of the received electronic mail M8 as “userA@bbb.co.jp”, and the attached file data F1 (an example of specific data) of the electronic mail M8 is stored in a specific area. If it is the same as the attached file data F1 included in the e-mail M2 whose destination is “userA@aaa.com” already stored in 80 (storage area 60 in a broad sense), the attached file data F1 of the e-mail M8 is Then, the specific data reference information “002-1” is rewritten, and the rewritten electronic mail M8 is stored in the specific area 80. For example, when the server 10 receives an email reception request for the user A of the domain “bbb.co.jp” from the terminal 20, the specific data reference information “002” of the email M8 read from the specific area 80 is received. The attached file data F1 corresponding to “1” is written back, and the written email M8 is transmitted to the terminal.

また、サーバ10は、ドメインが異なる複数の宛先が指定された電子メールを受信した場合に、各宛先の各メールボックスに電子メール参照情報を格納すると共に、格納領域に受信した一の電子メールを格納するようにしてもよい。   Further, when the server 10 receives an e-mail in which a plurality of destinations having different domains are designated, the server 10 stores the e-mail reference information in each mailbox of each destination, and the received e-mail in the storage area. You may make it store.

例えば、サーバ10は、「userA@aaa.com」「userA@bbb.co.jp」が指定された電子メールM9を受信した場合には、各宛先に対応する各ユーザのメールボックスに、受信した電子メールM9に対応する電子メール参照情報(例えば、「009」)を格納すると共に、一の当該電子メールM9を特定領域80(広義には格納領域60)に格納する処理を行う。そして、サーバ10は、例えば、端末20からドメイン「bbb.co.jp」のuserAの電子メール受信要求を受け付けた場合には、「bbb.co.jp」のuserAのメールボックスに格納された電子メール参照情報「009」に基づき、電子メールM9を特定領域80から読み出し、読み出された電子メールM9を端末20に送信する処理を行う。   For example, when the server 10 receives the e-mail M9 in which “userA@aaa.com” and “userA@bbb.co.jp” are specified, the server 10 receives the e-mail M9 in each user's mailbox corresponding to each destination. The electronic mail reference information (for example, “009”) corresponding to the electronic mail M9 is stored, and one electronic mail M9 is stored in the specific area 80 (storage area 60 in a broad sense). For example, when the server 10 receives an e-mail reception request for the user A of the domain “bbb.co.jp” from the terminal 20, the server 10 stores the electronic mail stored in the mailbox of the user A of “bbb.co.jp”. Based on the mail reference information “009”, the electronic mail M9 is read from the specific area 80, and the read electronic mail M9 is transmitted to the terminal 20.

以上のように、本実施形態では、サーバ10が複数のドメインを管理する場合において、格納領域を更に節約することができる。   As described above, in this embodiment, when the server 10 manages a plurality of domains, the storage area can be further saved.

7. 復号化処理の説明
オリジナルのデータがバイナリデータである添付ファイルデータ(例えば、画像データ等)は、電子メールにおいて、「base64」や、「quoted−printable」などの種々の符号化方式によって符号化(エンコード)されている。したがって、符号化方式が異なるが、元来同じ内容のデータを重複して格納領域に保存してしまうことがある。
7). Description of Decoding Process Attached file data (for example, image data) whose original data is binary data is encoded by various encoding methods such as “base64” and “quoted-printable” in e-mail ( Encoded). Therefore, although the encoding method is different, data having the same contents may be duplicated and stored in the storage area.

そこで、本実施形態のサーバ10は、受信した電子メールの符号化された特定データを復号化(デコード)し、復号化された特定データに基づいて処理を行うようにしてもよい。つまり、復号化された特定データが、既に格納領域60(例えば、特定領域80)に格納されているか否かを判断する処理を行うようにしてもよい。   Therefore, the server 10 according to the present embodiment may decode (decode) the encoded specific data of the received electronic mail and perform processing based on the decoded specific data. That is, a process for determining whether or not the decrypted specific data is already stored in the storage area 60 (for example, the specific area 80) may be performed.

例えば、サーバ10は、受信した電子メールの復号化された特定データが格納領域60に既に格納された他の電子メールに含まれていない場合、つまり、復号化された特定データのハッシュ値がハッシュテーブルTBに登録されていない場合には、当該ハッシュ値を、復号化された特定データの特定データ参照情報に対応付けて登録し、格納領域60に、電子メールを格納する。なお、この電子メールの特定データは復号化の状態で格納する。   For example, when the decrypted specific data of the received electronic mail is not included in another electronic mail already stored in the storage area 60, that is, the server 10 hashes the hash value of the decrypted specific data. If the hash value is not registered in the table TB, the hash value is registered in association with the specific data reference information of the decrypted specific data, and the e-mail is stored in the storage area 60. The specific data of the e-mail is stored in a decrypted state.

一方、サーバ10は、受信した電子メールの復号化された特定データが格納領域60に既に格納された他の電子メールに含まれている場合、つまり、復号化された特定データのハッシュ値がハッシュテーブルTBに登録されている場合には、当該特定データを、ハッシュ値に対応する特定データ参照情報に書き換え、書き換え後の電子メールを格納領域60に格納する処理を行う。   On the other hand, when the decrypted specific data of the received email is included in another email already stored in the storage area 60, the server 10 has the hash value of the decrypted specific data hashed. If registered in the table TB, the specific data is rewritten to specific data reference information corresponding to the hash value, and the rewritten electronic mail is stored in the storage area 60.

なお、サーバ10は、特定データを復号化する際に、メール受信時の特定データの符号化方式を記憶し、端末20に電子メールを送信する際には、特定データの符号化方式を参照して当該特定データを符号化してから送信する。   The server 10 stores the encoding method of the specific data at the time of receiving the mail when decoding the specific data, and refers to the encoding method of the specific data when sending the e-mail to the terminal 20. Then, the specific data is encoded and transmitted.

なお、サーバ10は、復号化の処理を行う場合には次のように処理する。まず、電子メールがシングルパート形式の場合は、ヘッダの「Content−Transfer−Encoding」を参照して符号化方式を検出し、符号化方式に応じて本文を復号化する。例えば、符号化方式が「base64」であれば、base64に基づく復号化処理を行い、符号化方式が「quoted−printable」であれば、「quoted−printable」に基づく復号化処理を行う。また、電子メールがマルチパート形式の場合は、パートヘッダの「Content−Transfer−Encoding」を参照して符号化方式を検出し、符号化方式に応じてパートデータを復号化する。   The server 10 performs the following process when performing the decryption process. First, when the e-mail is in a single part format, the encoding method is detected with reference to “Content-Transfer-Encoding” in the header, and the body is decoded according to the encoding method. For example, if the encoding method is “base64”, a decoding process based on “base64” is performed, and if the encoding method is “quoted-printable”, a decoding process based on “quoted-printable” is performed. When the electronic mail is in a multi-part format, the encoding method is detected by referring to “Content-Transfer-Encoding” in the part header, and the part data is decoded according to the encoding method.

このようにすれば、符号化方式のみが異なるがオリジナルのデータが同一の特定データについて重複して記憶する必要がなくなるので、記憶領域の節約を図ることができる。   In this way, although only the encoding method is different, it is not necessary to store the original data in duplicate for the same specific data, so that the storage area can be saved.

10 サーバ、100 処理部、110 配送対応部(SMTP)、111 受信部、
112 格納処理部、113 配送部、受信対応部(POP/IMAP)、
121 受け付け部、122 送信部、123 参照判断部、124 削除部、
50 記憶部、60 格納領域、70 メールボックス、80 特定領域、
180 情報記憶媒体、20 端末、21 MUA
10 server, 100 processing unit, 110 delivery support unit (SMTP), 111 receiving unit,
112 storage processing unit, 113 delivery unit, reception correspondence unit (POP / IMAP),
121 reception unit, 122 transmission unit, 123 reference determination unit, 124 deletion unit,
50 storage units, 60 storage areas, 70 mailboxes, 80 specific areas,
180 information storage media, 20 terminals, 21 MUA

Claims (2)

受信した電子メールを格納領域に格納し、格納された電子メールを送信する処理を行うサーバのためのプログラムであって、
電子メールを受信する処理を行う受信部と、
当該サーバ管理下のユーザを宛先とする電子メールを受信した場合に、当該電子メールを前記格納領域に格納する格納処理部と、
端末から電子メールの受信要求を受け付けた場合に、電子メールを前記格納領域から読み出し、読み出された当該電子メールを当該端末に送信する処理を行う送信部と、
前記格納領域に格納された電子メール毎に、当該電子メールのリファレンス値を設定し、当該リファレンス値に基づいて当該電子メールが参照されているか否かを判断する参照判断部と、
参照されていないと判断される電子メールを、前記格納領域から削除する処理を行う削除部として、コンピュータを機能させ、
前記格納処理部が、
受信した電子メールに含まれる添付ファイルデータが、前記格納領域に既に格納された他の電子メールに含まれる場合には、当該添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行い、
前記送信部が、
前記格納領域から読み出した電子メールに前記特定データ参照情報が含まれる場合には、前記特定データ参照情報を前記添付ファイルデータに書き戻し、書き戻された電子メールを前記端末に送信する処理を行い、
前記参照判断部が、
予め所定値が設定された電子メールのリファレンス値に当該電子メールの宛先数を加算する処理と、当該電子メールの添付ファイルデータに基づき特定データ参照情報に書き換えられた回数を当該電子メールのリファレンス値に加算する処理とを行い、
当該電子メールのリファレンス値から当該電子メールを送信した宛先数を減算する処理と、当該特定データ参照情報から当該添付ファイルデータに書き戻された回数を当該電子メールのリファレンス値から減算する処理とを行い、
当該電子メールのリファレンス値が所定値である場合に、当該電子メールが参照されていないと判断することを特徴とするプログラム。
A program for a server that performs processing for storing received email in a storage area and transmitting the stored email,
A receiving unit that performs processing to receive an email;
A storage processing unit for storing the e-mail in the storage area when an e-mail addressed to a user under the server management is received;
A transmission unit that performs a process of reading an e-mail from the storage area and transmitting the read e-mail to the terminal when an e-mail reception request is received from the terminal;
For each email stored in the storage area, a reference determination unit that sets a reference value for the email and determines whether the email is referenced based on the reference value;
The computer is caused to function as a deletion unit that performs processing for deleting an e-mail that is determined not to be referenced from the storage area,
The storage processing unit
When the attached file data included in the received e-mail is included in another e-mail already stored in the storage area, the attached file data is rewritten with the specific data reference information, and the rewritten e-mail is Perform processing to store in the storage area,
The transmitter is
When the specific data reference information is included in the email read from the storage area, the specific data reference information is written back to the attached file data, and the written email is transmitted to the terminal. ,
The reference determination unit
The process of adding the number of addresses of the e-mail to the e-mail reference value in which a predetermined value is set in advance, and the number of times the e-mail is rewritten to specific data reference information based on the attached file data of the e-mail And adding to
A process of subtracting the number of destinations to which the e-mail has been transmitted from the reference value of the e-mail, and a process of subtracting the number of times written back to the attached file data from the specific data reference information from the reference value of the e-mail Done
A program for determining that an e-mail is not referred to when the reference value of the e-mail is a predetermined value.
受信した電子メールを格納領域に格納し、格納された電子メールを送信する処理を行うサーバであって、
電子メールを受信する処理を行う受信部と、
当該サーバ管理下のユーザを宛先とする電子メールを受信した場合に、当該電子メールを前記格納領域に格納する格納処理部と、
端末から電子メールの受信要求を受け付けた場合に、電子メールを前記格納領域から読み出し、読み出された当該電子メールを当該端末に送信する処理を行う送信部と、
前記格納領域に格納された電子メール毎に、当該電子メールのリファレンス値を設定し、当該リファレンス値に基づいて当該電子メールが参照されているか否かを判断する参照判断部と、
参照されていないと判断される電子メールを、前記格納領域から削除する処理を行う削除部と、を含み
前記格納処理部が、
受信した電子メールに含まれる添付ファイルデータが、前記格納領域に既に格納された他の電子メールに含まれる場合には、当該添付ファイルデータを特定データ参照情報に書き換え、書き換え後の電子メールを前記格納領域に格納する処理を行い、
前記送信部が、
前記格納領域から読み出した電子メールに前記特定データ参照情報が含まれる場合には、前記特定データ参照情報を前記添付ファイルデータに書き戻し、書き戻された電子メールを前記端末に送信する処理を行い、
前記参照判断部が、
予め所定値が設定された電子メールのリファレンス値に当該電子メールの宛先数を加算する処理と、当該電子メールの添付ファイルデータに基づき特定データ参照情報に書き換えられた回数を当該電子メールのリファレンス値に加算する処理とを行い、
当該電子メールのリファレンス値から当該電子メールを送信した宛先数を減算する処理と、当該特定データ参照情報から当該添付ファイルデータに書き戻された回数を当該電子メールのリファレンス値から減算する処理とを行い、
当該電子メールのリファレンス値が所定値である場合に、当該電子メールが参照されていないと判断することを特徴とするサーバ。
A server that stores received emails in a storage area and performs processing for transmitting the stored emails,
A receiving unit that performs processing to receive an email;
A storage processing unit for storing the e-mail in the storage area when an e-mail addressed to a user under the server management is received;
A transmission unit that performs a process of reading an e-mail from the storage area and transmitting the read e-mail to the terminal when an e-mail reception request is received from the terminal;
For each email stored in the storage area, a reference determination unit that sets a reference value for the email and determines whether the email is referenced based on the reference value;
A deletion unit that performs a process of deleting an e-mail that is determined not to be referenced from the storage area, and the storage processing unit includes:
When the attached file data included in the received e-mail is included in another e-mail already stored in the storage area, the attached file data is rewritten with the specific data reference information, and the rewritten e-mail is Perform processing to store in the storage area,
The transmitter is
When the specific data reference information is included in the email read from the storage area, the specific data reference information is written back to the attached file data, and the written email is transmitted to the terminal. ,
The reference determination unit
The process of adding the number of addresses of the e-mail to the e-mail reference value in which a predetermined value is set in advance, and the number of times the e-mail is rewritten to specific data reference information based on the attached file data of the e-mail And adding to
A process of subtracting the number of destinations to which the e-mail has been transmitted from the reference value of the e-mail, and a process of subtracting the number of times written back to the attached file data from the specific data reference information from the reference value of the e-mail Done
A server that determines that the e-mail is not referred to when the reference value of the e-mail is a predetermined value.
JP2011119618A 2011-05-27 2011-05-27 Program and server Active JP5864133B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011119618A JP5864133B2 (en) 2011-05-27 2011-05-27 Program and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011119618A JP5864133B2 (en) 2011-05-27 2011-05-27 Program and server

Publications (2)

Publication Number Publication Date
JP2012249101A JP2012249101A (en) 2012-12-13
JP5864133B2 true JP5864133B2 (en) 2016-02-17

Family

ID=47469123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011119618A Active JP5864133B2 (en) 2011-05-27 2011-05-27 Program and server

Country Status (1)

Country Link
JP (1) JP5864133B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10691643B2 (en) * 2017-11-20 2020-06-23 International Business Machines Corporation Deduplication for files in cloud computing storage and communication tools
JP7415219B2 (en) * 2019-09-30 2024-01-17 サクサ株式会社 E-mail monitoring device and e-mail management method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02195749A (en) * 1989-01-24 1990-08-02 Nec Corp Multiple address mail controller in mail system
JPH03104345A (en) * 1989-09-18 1991-05-01 Nec Corp Multiple address reception mail management system
JP2933123B2 (en) * 1996-06-10 1999-08-09 日本電気株式会社 Email delivery device
JP2001156831A (en) * 1999-11-29 2001-06-08 Mitsubishi Electric Corp Electronic mail system
US7003551B2 (en) * 2000-11-30 2006-02-21 Bellsouth Intellectual Property Corp. Method and apparatus for minimizing storage of common attachment files in an e-mail communications server
JP2007251554A (en) * 2006-03-15 2007-09-27 Nec Corp Electronic mail filter device, electronic mail filter method, program, and record medium
US8626840B2 (en) * 2006-11-17 2014-01-07 Comverse Ltd. Method and system for generating a referencing secondary electronic mail message from a primary electronic mail message
JP4692558B2 (en) * 2008-02-25 2011-06-01 日本電気株式会社 Mail system, server device, mail management method, program, and recording medium
JP2010010859A (en) * 2008-06-25 2010-01-14 Nec Corp Storage method of e-mail, and system therefor

Also Published As

Publication number Publication date
JP2012249101A (en) 2012-12-13

Similar Documents

Publication Publication Date Title
US8914856B1 (en) Synchronization of networked storage systems and third party systems
US8166112B2 (en) Virtual mail storage for mail distributed using corporate distribution lists
KR102067366B1 (en) Time-managed electronic mail messages
US20090177704A1 (en) Retention policy tags for data item expiration
US20130007162A1 (en) Facilitating a Sender of Email Communications to Specify Policies With Which the Email Communication are to be Managed as a Record
JP5952304B2 (en) System and method for transmitting and filtering instant messaging information
US20090113002A1 (en) Electronic Message Attachment Options
KR20090003405A (en) File upload system and method
CN111159100A (en) Block chain file access method and device, computer equipment and storage medium
JP2004220259A (en) Attached file management system, program, information storage medium, and attached file management method
JP5864133B2 (en) Program and server
US20150046565A1 (en) System and method for archiving messages
US10387663B2 (en) System, a method and a computer readable medium for transmitting an electronic file
US9769099B2 (en) Systems and methods of handling email communication
JP4640433B2 (en) E-mail receiver
JP6583934B2 (en) Mail server device, mail management method, and mail management program
JP4692558B2 (en) Mail system, server device, mail management method, program, and recording medium
US20160283514A1 (en) Information processing method and electronic device
US20090204679A1 (en) Mail management system and mail management method
JP2009188805A (en) Electronic mail system
JP6398368B2 (en) Information processing apparatus, information processing system, and program
US20190005453A1 (en) Method for performing mail data management in a mail system, and associated apparatus
US9143472B2 (en) Updating an e-mail recipient list
US20130339460A1 (en) Protocol Expander System and Method
US20120296990A1 (en) Shared content server for electronic messages

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150128

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150324

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150902

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151111

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20151119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20151216

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151224

R150 Certificate of patent or registration of utility model

Ref document number: 5864133

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350