JP4269538B2 - E-mail display device and program - Google Patents
E-mail display device and program Download PDFInfo
- Publication number
- JP4269538B2 JP4269538B2 JP2001149685A JP2001149685A JP4269538B2 JP 4269538 B2 JP4269538 B2 JP 4269538B2 JP 2001149685 A JP2001149685 A JP 2001149685A JP 2001149685 A JP2001149685 A JP 2001149685A JP 4269538 B2 JP4269538 B2 JP 4269538B2
- Authority
- JP
- Japan
- Prior art keywords
- attached image
- line
- display
- cpu
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、添付画像ファイル付電子メールを表示させる電子メール表示装置及びプログラムに関する。
【0002】
【従来の技術】
従来から、電子メールの表示において、添付画像ファイル付のプレーンテキストメールを表示する場合、当該添付画像を本文前に表示する、本文後に表示する、又は別のウインドウで表示するなど、固定位置に表示していた。また、画像を挿入表示するためには、メールをHTML(Hyper Text Markup Language)、XML(eXtensive Markup Language)等のページ記述言語で記述する方法があった。
【0003】
【発明が解決しようとする課題】
しかし、添付画像ファイル付プレーンテキストメールの表示において、従来の添付画像の固定位置表示では、限られた表示領域上に無駄なスペースが存在し、有効な表示ができていないという問題があった。また、本文の量が多い場合等は、添付画像を表示するまでにスクロール等の多くの操作が必要であるという問題があった。また、本文の内容に関わらず、固定場所に表示されるので、メールによっては当該固定表示位置が不適切な表示位置でありうるという問題もあった。また、送り手の望む位置に画像を表示させることができないという問題があった。
【0004】
更に、従来の添付画像の固定位置表示では、画像を挿入表示するべくHTML等のページ記述言語に対応するには、メールエンジンを含む沢山のソフトウェア処理が必要であり、技術的なハードルが高いといった問題があった。
【0005】
本発明の課題は、HTML等のページ記述言語を用いずに添付画像ファイル付プレーンテキストメールを表示させるにあたり、表示領域の節約をし、本文が長い文章の場合は、本文の先頭に画像を表示し、また、文章の内容に適した位置に画像を表示させ、また、送信者の望む位置に画像を表示させることにある。
【0006】
【課題を解決するための手段】
以上の課題を解決するために、請求項1に記載の発明は、電子メールを受信して表示する電子メール表示装置において、添付画像ファイル付きのメールを受信した場合に、当該メール本文テキストのレイアウトを解析して行毎の空白の領域を示す行管理テーブルを作成する解析手段(例えば図1のCPU1a、図2のステップA5〜A6)と、当該メール本文内において前記行管理テーブルを参照し、本文テキストの前記行毎の空白の領域に前記添付画像ファイルの添付画像の高さに合わせて空白行を追加することにより、前記添付画像ファイルの添付画像を表示可能な領域を形成する形成手段(例えばCPU1a、図2のステップA7〜A10)と、その形成された領域に前記添付画像を表示する表示手段(例えば図1のCPU1a、表示部1d、図2のステップA11)とを具備した、ことを特徴としている。
【0007】
請求項1に記載の発明に拠れば、添付画像ファイル付きのメールを受信した場合において、当該メール文テキストのレイアウトを解析し、当該メール本文内において行毎の空白の領域に前記添付画像ファイルの添付画像の高さに合わせて空白行を追加することにより、前記添付画像ファイルの添付画像を表示可能な領域を形成し、その形成した領域に前記添付画像を表示する。
【0009】
【発明の実施の形態】
以下、添付図面を参照して、本発明の第1の実施の形態、第2の実施の形態、第3の実施の形態及び第4の実施の形態について順に説明する。
【0010】
(第1の実施の形態)
本実施の形態を図1〜図6を参照して説明する。図1は、本実施の形態である電子メール表示装置の内部構成を示すブロック図である。
【0011】
電子メール表示装置1は、電子メールを受信可能で当該電子メールを表示するコンピュータ等の電子メール表示装置の1つであり、例えば、デスクトップPC、携帯型PCや、PDA(Personal Digital Assistants)等である。
【0012】
電子メール表示装置1は、その内部に、電子メール表示装置1の中央制御を行うCPU(Central Processing Unit)1aと、入力部1bと、RAM(Random Access Memory)1cと、表示部1dと、ROM(Read Only Memory)1eと、外部記憶装置1fと、外部記憶装置1f内の記録媒体1gと、通信制御部1hと、CPU1a、入力部1b、RAM1c、表示部1d、ROM1e、外部記憶装置1f及び通信制御部1hを接続するバス1iとを有する。
【0013】
CPU1aは、添付画像適切位置表示プログラム、文頭末添付画像表示プログラム、既定語句添付画像表示プログラム、キーワード添付画像表示プログラムを実行する。CPU1aは、電子メールを通信回線を介して通信制御部1hから受信した後、添付画像適切位置表示プログラムの実行により、当該電子メールのMIMEを抽出して、当該電子メールの本文がプレーンテキストであるか、及び表示可能な添付画像ファイルがあるかを判別し、該当する場合に、前記画像ファイルの添付画像の画像サイズを取得し、前記電子メールの本文を読込み、当該本文についての行管理テーブルを作成し、当該行管理テーブルから添付画像挿入位置を検索し、前記画像サイズ及び当該添付画像挿入位置から前記添付画像が挿入可能であるかを判別し、挿入可能な場合、前記添付画像挿入位置に、また挿入可能でない場合、予め既定した既定位置に、それぞれ前記添付画像を表示部1dに表示させる(図2参照)。
【0014】
また、CPU1aは、電子メールを通信回線を介して通信制御部1hから受信した後、文頭末添付画像挿入プログラムの実行により、当該電子メールのMIMEを抽出して、当該電子メールの本文がプレーンテキストであるか、及び表示可能な添付画像ファイルがあるかを判別し、該当する場合に、前記電子メールの本文を読込んで、当該本文の行管理テーブルを作成し、当該行管理テーブルから前記本文中の行数を取得し、当該行数が予め既定した規定行数より大きいかを判別し、規定行数より大きい場合、添付画像挿入位置を前記本文の先頭に、また規定行数より大きくない場合、添付画像挿入位置を前記本文の文末に、それぞれ前記添付画像ファイルの添付画像を表示部1dに表示させる(図7参照)。
【0015】
また、CPU1aは、電子メールを通信回線を介して通信制御部1hから受信した後、既定語句添付画像挿入プログラムの実行により、当該電子メールのMIMEを抽出して、当該電子メールの本文がプレーンテキストであるか、及び表示可能な添付画像ファイルがあるかを判別し、前記電子メールの本文を読込み、当該本文についての行管理テーブルを作成し、前記MIMEから添付画像ファイル名を読込み、ROM1eから既定語句を読出し、当該添付画像ファイル名中の前記既定語句又は添付画像ファイル名を前記本文から検索し、検索された場合、前記行管理テーブルを用いて、前記本文中のこれらの語句を含む段落の後の添付画像挿入位置に、また検索されない場合、予め既定した既定位置に、それぞれ前記添付画像ファイルの添付画像を表示部1dに表示させる(図9参照)。
【0016】
またCPU1aは、電子メールを通信回線を介して通信制御部1hから受信した後、既定語句添付画像挿入プログラムの実行により、当該電子メールのMIMEを抽出して、当該電子メールの本文がプレーンテキストであるか、及び表示可能な添付画像ファイルがあるかを判別し、行管理テーブルを作成し、前記電子メールの本文を読込み、当該本文の行管理テーブルを作成し、ROM1eからキーワードの読出しを行い、前記電子メールの本文中からキーワードを抽出し、キーワードが抽出された場合、前記行管理テーブルを用いて当該キーワードのある行を添付画像挿入位置として、キーワードを削除して前記添付画像ファイルの添付画像を表示部1dに表示させ、またキーワードが抽出されない場合、予め既定しておいた既定位置に、前記添付画像を表示部1dに表示させる(図11参照)。
【0017】
入力部1bは、カーソルキー、数字入力キー及び各種機能キー等を備えたキーボード及びマウスを含み、キーボードで押下された押下信号やマウスの位置信号をCPU1aに出力する。
【0018】
RAM1cは、前記プログラム、入力指示、入力データ及び処理結果等の各種データを、CPU1aでランダムアクセス展開可能に格納するメモリ領域を有して、各種状態を記憶するメモリである。また外部記憶装置1f,ROM1eの各種プログラム及びデータを展開自在である。
【0019】
表示部1dは、CRT(Cathode Ray Tube)、又はLCD(Liquid Crystal Display)等により構成され、CPU1aから入力される表示指示に従って各種表示データの画面表示を行う。
【0020】
ROM1eは、読み出し専用のメモリであり、システムプログラム、電子メール表示プログラム等のアプリケーションプログラム及び既定データ等を記憶する。ROM1eは、データの書換可能なフラッシュROMでもよい。
【0021】
外部記憶装置1fは、プログラムやデータなどが予め記憶されまたは書込み可能な記録媒体1gを有し、記録媒体1gは、磁気的、光学的記録媒体、若しくは半導体等の不揮発性メモリ等のCPU1a読取り可能な記録媒体で構成されている。記録媒体1gは、ハードディスク等の外部記憶装置1fに固定的に設けたもの、若しくはCD−ROM、メモリカード等の着脱自在に装着する可搬型のものを含む。この記録媒体1gには各種処理プログラム、及びこれらのプログラムで処理する又は処理されたデータ等の各種データを格納する。RAM1c及び外部記憶装置1fは、CPU1aの制御により内部データの書換が可能な構成である。
【0022】
また、記録媒体1gに記憶されたプログラム、データ等は、その一部若しくは全部を外部機器からWAN(Wide Area Network)、LAN(Local Area Network)等の通信回線を介して通信制御部1hから受信して格納する構成にしてもよく、また、記録媒体1gは通信回線上に構築された外部機器の記録媒体であってもよい。更に、前記各種プログラムを通信回線を介して外部機器へ送信及びインストールする構成にしてもよい。
【0023】
通信制御部1hは、通信回線を介して、外部機器との通信を行うためのモデム、TA(Terminal Adapter)、ルータ等によって構成される。
【0024】
通信回線は、例えばインターネット等のネットワークであり、電話回線網、ISDN回線網、専用線、移動体通信網、通信衛星回線、CATV回線、光通信回線、無線通信回線と、それらを接続するインターネットサービスプロバイダや基地局等を含む。
【0025】
ここで、添付画像適切位置表示手順を図2〜図6を用いて説明する。図2は、添付画像適切位置表示プログラムのフローチャートである。電子メール表示装置1上のCPU1aが、添付画像適切位置表示プログラムを実行することにより添付画像を適切な位置に表示させる。
【0026】
このフローチャートは、電子メール表示装置1を構成するコンピュータに各機能を実現させるためのプログラムを説明する為のものである。このプログラムは、CPU1aが読取可能なプログラムコードの形態でROM1eに格納されている例で説明するが、全ての機能をROM1eに格納する必要は無く、必要に応じてその一部若しくは全部を記録媒体1fから、又は通信回線を介して通信制御部1hから受信して実現するようにしてもよい。この説明は、以下の電子メール表示装置1上で実行するプログラムのフローチャートについて同様である。
【0027】
処理手順の前に、受信した電子メールに添付画像ファイルが存在し、添付画像ファイルに適切な表示位置が得られなかった場合を考慮し、メール本文前に表示する、本文後に表示する等の既定位置を予め設定しておく。そして、電子メール表示装置1上のCPU1aは、通信回線及び通信制御部1hを介して、電子メールを受信して記録媒体1gに記録し、RAM1c上に格納する。
【0028】
先ず、CPU1aは、RAM1c上の前記電子メール中のMIME(Multipurpose Internet Mail Extensions)を抽出して解析する(ステップA1)。そして、CPU1aは、受信した電子メールのMIMEからプレーンテキストかを判別する(ステップA2)。具体的には、CPU1aは、前記電子メールの様々な情報を記述するフィールドとして、MIME規約の一部であるデータ識別記述(Content-Type)を用いて、プレーンテキストメールである旨を示すContent-Type: text/plainが存在するかにより判別する。フィールドは、電子メールのヘッダ部分又はMIMEによって分割された部分に存在する。
【0029】
プレーンテキストである場合(ステップA2;YES)、CPU1aは、表示部1dで表示可能な添付画像ファイルがあるかを判別する(ステップA3)。具体的には、CPU1aは、前記電子メールのMIMEのフィールドとしてJPEGファイルを示すContent-Type: image/jpeg;やGIFファイルを示すContent-Type: image/gif;等の添付画像ファイルを示すデータ識別記述を検索して判別する。
【0030】
表示可能な添付画像ファイルがある場合(ステップA3;YES)、CPU1aは、前記添付画像ファイルの内部を解析することにより、横幅と高さからなる前記添付画像ファイルの添付画像の画像サイズを取得する(ステップA4)。そして、CPU1aは、受信した電子メールのプレーンテキストである本文を読込む(ステップA5)。そして、CPU1aは、行管理テーブルを作成し(ステップA6)、CPU1aは、添付画像挿入位置を検索する(ステップA7)。なお、ステップA6及びA7は、後で詳述する。
【0031】
次にCPU1aは、前記添付画像が挿入可能であるかを判別する(ステップA8)。ステップA7で添付画像挿入位置が得られて、前記添付画像が挿入可能である場合(ステップA8;YES)、CPU1aは、ステップA7で検索した添付画像挿入位置に前記添付画像の表示を設定する(ステップA9)。ステップA7で添付画像挿入位置が得られず、前記添付画像が挿入可能でない場合(ステップA8;NO)、CPU1aは、予め設定しておいた既定位置に前記添付画像の表示を設定する(ステップA10)。
【0032】
そして、CPU1aは、表示部1dに前記電子メールを表示させる(ステップA11)。具体的には、CPU1aは、先ず本文を表示し、ステップA8を経由した場合は添付画像挿入位置に、ステップA9を経由した場合は既定位置に、それぞれ前記添付画像ファイルの添付画像を表示させる。なお、プレーンテキストでない場合(ステップA2;NO)、表示可能な添付画像ファイルがない場合(ステップA3;NO)、ステップA11に進み、CPU1aは通常どおり前記電子メールを表示部1dに表示させる。以上で、添付画像適切位置表示手順を終了する。
【0033】
次に、ステップA6での行管理テーブル作成手順について図3及び図4を参照して説明する。図3は、行管理テーブル作成プログラムのフローチャートであり、図4は、行管理テーブルを説明する図であり、(I)は行管理テーブルの内部構成を示す図であり、(II)は、(I)に対応するメール本文を示す図である。行管理テーブルは、記録媒体1g上で、電子メールの本文中の行番号、当該行番号毎の行頭空白文字数、当該行頭空白文字以外の文字数、前記行番号毎の改行位置を対応付けて記憶する。
【0034】
ステップA5が終了した後、ステップA6の行管理テーブル作成手順を開始し、先ず、CPU1aは、前記受信した電子メールの本文から1文字を取得する(ステップB1)。最初は、当該本文の最初の行の最初の文字を取得する。そして、当該取得した1文字が行頭の空白文字であるかを判別する(ステップB2)。行頭空白文字である場合(ステップB2;YES)、CPU1aは、行頭空白文字数を1つカウントアップする(ステップB3)。そして、ステップB1に戻り、次の1文字を取得する。
【0035】
行頭空白文字でない場合(ステップB2;NO)、CPU1aは、前記取得した文字が改行文字かによって、その行が改行かどうかを判別する(ステップB4)。改行でない場合(ステップB4;NO)、CPU1aは、1行最大表示文字数をオーバーしたかを判別する(ステップB5)。具体的には、予め設定しておいた横方向の最大表示可能幅である横方向表示サイズから、行毎の最大表示可能行総文字数を1行最大表示文字数として取得しておき、前記カウントした行頭空白文字数+文字数を行総文字数として、当該行総文字数が前記1行最大表示文字数をオーバーしたかを判別する。
【0036】
前記1行最大表示文字数をオーバーしない場合(ステップB5;NO)、CPU1aは、文字数を1つカウントアップする(ステップB6)。そして、ステップB1に戻り、次の1文字を取得する。改行である場合(ステップB4;YES)、CPU1aは、「文字数+行頭空白文字数」(行総文字数)+1を改行の位置として、前記行管理テーブルに登録する(ステップB7)。前記1行最大表示文字数をオーバーする場合(ステップB5;YES)、CPU1aは、0を改行の位置として、前記行管理テーブルに登録する(ステップB8)。つまり、改行又は表示領域上で行が折り返されるまで文字数及び行頭空白文字数をカウントアップする。
【0037】
そして、CPU1aは、カウントした文字数を前記行管理テーブルに登録し(ステップB9)、カウントした行頭空白文字数を前記行管理テーブルに登録し(ステップB10)、行番号を前記行管理テーブルに登録する(ステップB11)。ステップB11は、最初は1を登録する。
【0038】
そして、CPU1aは、本文中に、ステップB1で取得していない文字が電子メール本文中で他にあるかを判別する(ステップB12)。文字が他にある場合(ステップB12;YES)、CPU1aは、行番号をカウントアップし(ステップB13)、ステップB1へ戻り、次の行の1文字を取得する。文字が他にない場合(ステップB12;NO)、当該行管理テーブル作成手順を終了し、ステップA7へ進む。
【0039】
ここで、図4を参照して、具体例を説明する。今、1行最大表示文字数が、30で、図4(II)に示すメール本文の各データが登録された場合、図4(I)のように行管理テーブルが作成される。このとき、改行位置のない第1行目は、段落の始まりとなり図4(I)の改行位置に「0」が記録される。改行位置のある第2行目は前記段落の終わりとなり図4(I)の改行位置に改行が指定された位置「29」が記録される。第3行目は、段落として始まり、その行中で当該段落の終わりとなる。
【0040】
次に、ステップA7の添付画像挿入位置検索手順を図5を参照して説明する。図5は、添付画像挿入位置検索プログラムのフローチャートである。先ず、CPU1aは、ステップA6で作成した記録媒体1g上の行管理テーブルを読込む(ステップC1)。そして、CPU1aは、行管理テーブルの最初の行番号の文字数と行頭空白文字数から行総文字数を算出し、当該行番号の行の行幅を算出して前記行管理テーブルに記憶する(ステップC2)。行幅は、該当行番号の行の行総文字数(行頭空白文字数+文字数)×文字間隔である。そして、CPU1aは、全ての行について行幅を算出したかを判別し(ステップC3)、全ての行の行幅を算出していない場合(ステップC3;NO)、ステップC2へ戻り、算出していない行の行幅を算出して記憶する。
【0041】
全ての行の行幅を算出した場合(ステップC3;YES)、CPU1aは、予め設定した前記横方向表示サイズからステップC2で算出した各行の行幅を引いて、「横方向表示サイズ」−「行幅」を算出して前記行管理テーブルに記憶する(ステップC4)。そして、CPU1aは、全ての行について横方向表示サイズ−行幅を算出したかを判別する(ステップC5)。全ての行について横方向表示サイズ−行幅を算出していない場合(ステップC5;NO)、ステップC4へ戻り、算出していない行の「横方向表示サイズ」−「行幅」を算出して前記行管理テーブルに記憶する。
【0042】
全ての行について「横方向表示サイズ」−「行幅」を算出した場合(ステップC5;YES)、CPU1aは、記憶した全ての行の「横方向表示サイズ」−「行幅」から、横幅について添付画像ファイルを挿入可能な行が存在するかを判別する(ステップC6)。具体的には、「横方向表示サイズ」−「行幅」が、ステップA4で取得した添付画像の画像サイズの横幅を超える行が存在するかを判別する。横幅について添付画像を挿入可能な行が存在する場合(ステップC6;YES)、CPU1aは、当該横幅について添付画像を挿入可能な行を抽出する(ステップC7)。そして、CPU1aは、ステップC7で抽出した行の中から、高さについて当該添付画像を挿入できる位置が存在するかを判別する(ステップC8)。具体的には、ステップC7で抽出した挿入可能な行の中で連続するものを抽出し、連続する行の総高さが、ステップA4で取得した添付画像の画像サイズの高さを超える連続した行が存在するかを判別する。連続する行がない場合は、単独行を抽出して判別する。
【0043】
高さについて添付画像を挿入できる位置が存在しない場合(ステップC8;NO)、CPU1aは、前記連続する行の総高さに1行分の空白高さを追加する(ステップC9)。そして、ステップC8に戻り、当該行追加した連続する行の総高さについて、添付画像を挿入できる位置が存在するかを判別する。なお、ステップC9では、空白行追加に代えて、不足分の空白高さを追加する構成としてもよい。
【0044】
高さについて添付画像を挿入できる位置が存在する場合(ステップC8;YES)、CPU1aは、当該高さについて添付画像を挿入できる位置を抽出する(ステップC10)。そして、ステップC10で抽出した位置から、添付画像挿入位置を決定する(ステップC11)。横方向の添付画像挿入は、改行文字の位置に拠らず右端から表示させてもよく、また改行位置に表示するよう設定してもよい。なお、ステップC11で添付画像挿入位置が数箇所ある場合は、電子メール表示装置1上のユーザが選択してもよく、又は上の行から優先的に選択させるものとしてもよく、更に最大の空き領域を優先的に選択する等してもよい。
【0045】
横幅について添付画像を挿入可能な行が存在しない場合(ステップC6;NO)、添付画像を挿入する添付画像挿入位置を設定しない。そして、添付画像挿入位置の検索手順を終了し、ステップA8へ進む。
【0046】
ここで、図4を参照して、具体例を説明する。図4(II)において、横方向の最大表示文字数は30文字で、文字間隔は16ドットであるので、横方向表示サイズは480ドットである。このとき、図4(I)に示すように、行幅と、「横方向表示サイズ」−「行幅」の値がそれぞれ算出される。「横方向表示サイズ」−「行幅」が示す横方向の空き領域は、改行位置のない第1行目は0である。
【0047】
また、図6を参照して、本実施の形態の表示例を従来例と比較して説明する。図6は、従来例と添付画像適切位置表示手順との表示結果を示す図であり、(I)は、従来の表示画面を示す図であり、(II)は、添付画像適切位置表示手順による表示画面を示す図である。図6(II)は、従来例とは異なり、横方向については第2行から第6行まで添付画像ファイルの添付画像の挿入が可能であり、高さについては第2行から第6行までの総高さに空白行の追加によって添付画像を右端に表示させている。
【0048】
なお、本実施の形態の変形例として、ステップC7で電子メール本文の最大の空き領域が添付画像ファイルの添付画像の画像サイズに満たない場合には、当該最大の空き領域中に、添付画像を縮小表示させてもよい。
【0049】
更に、ステップC1〜C11とは別の手順で、ステップC4,C5と同様に、行管理テーブル中の行頭空白文字数から、全ての行の行頭空白文字幅を算出して記録媒体1gに記憶し、ステップC6,C7と同様に、横幅について当該行頭空白文字幅に挿入可能な行を抽出し、ステップC8,C9,C10と同様に、前記抽出した行から、高さについて挿入可能な位置を抽出して、C11と同様に添付画像挿入位置を決定する構成をとってもよい。例えば、ステップA8では、前記の横方向表示サイズ−行幅を用いた添付画像挿入位置、当該行頭空白文字幅を用いた添付画像挿入位置があるかにより判別を行う。なお、ステップA8で添付画像挿入位置が数箇所ある場合は、電子メール表示装置1上のユーザが選択してもよく、又は上の行から優先的に選択させるものとしてもよく、更に最大の空き領域を優先的に選択する等してもよい。
【0050】
よって、本実施の形態によれば、HTML等のページ記述言語を使用せずに、MIMEを利用してメール本文のプレーンテキストを解析して添付画像を表示可能な領域が適宜抽出されるので、技術的ハードルを低くして、電子メール表示装置上で画像を表示するための処理及び設定を簡略化でき、テキストの空き領域に添付画像を表示できるので、表示領域を有効活用できる。
【0051】
(第2の実施の形態)
本実施の形態を図7及び図8を参照して説明する。第1の実施の形態と同様に電子メール表示装置1を用いて、CPU1aが、文頭末添付画像挿入プログラムを実行することにより添付画像を電子メール本文の総行数により判別した適切な位置に表示させる。図7は、文頭末添付画像表示プログラムのフローチャートである。
【0052】
先ず、通信回線及び通信制御部1hを介して電子メール受信後、文頭末添付画像挿入プログラムを実行することにより文頭末添付画像表示手順を開始する。なお、既定位置の設定は不要である。ステップD1〜D5はそれぞれ、ステップA1〜A3,A5〜A6と同様である。次に、CPU1aは、ステップD5で作成した行管理テーブル中の行番号から、読込んだ本文中の行数を取得して記録媒体1g上に記憶する(ステップD6)。そして、CPU1aは、ステップD6で取得した行数が予め既定した規定行数より大きいかを判別する(ステップD7)。規定行数より大きい場合(ステップD7;YES)、CPU1aは、添付画像挿入位置を前記電子メール本文の先頭に設定する(ステップD8)。規定行数より大きくない場合(ステップD7;NO)、CPU1aは、添付画像挿入位置を本文の文末に設定する(ステップD9)。
【0053】
そして、CPU1aは、表示部1dに前記電子メールを表示させる(ステップD10)。具体的には、CPU1aは、先ず本文を表示し、ステップD8又はD9を経由した場合は、添付画像挿入位置に、前記添付画像ファイルの添付画像を表示させる。なお、プレーンテキストでない場合(ステップD2;NO)、表示可能な添付画像ファイルがない場合(ステップD3;NO)は、ステップD10に進み、CPU1aは、表示部1dに通常どおり前記電子メールを表示させる。以上で、文頭末添付画像表示手順を終了する。
【0054】
ここで、図8を参照して、本実施の形態の表示例を総行数で比較して説明する。図8は、文頭末添付画像表示手順による表示結果を示す図であり、(I)は、総行数が規定行数よりも大きくない場合の表示画面を示す図であり、(II)は、規定行数よりも大きい場合の表示画面を示す図である。(I)では少行なので電子メールの本文の文末に添付画像ファイルの添付画像を表示し、(II)では多行なので電子メールの本文の先頭に添付画像を表示している。
【0055】
よって、本実施の形態によれば、長い文章の場合は、文章の先頭に添付画像ファイルの添付画像を表示するようにしたので、添付画像表示位置まで文章をスクロールする必要がなく、メール受信者はすぐに画像を見ることができる。
【0056】
(第3の実施の形態)
本実施の形態を図9及び図10を参照して説明する。第1の実施の形態と同様に電子メール表示装置1を用いて、CPU1aが、既定語句添付画像挿入プログラムを実行することにより添付画像ファイルの添付画像を電子メール本文中の既定語句により判別した適切な位置に表示させる。図9は、既定語句添付画像表示プログラムのフローチャートである。
【0057】
先ず、通信回線及び通信制御部1hを介して電子メール受信後、既定語句添付画像挿入プログラムを実行することにより既定語句添付画像表示手順を開始する。第1の実施の形態と同様に、予め既定位置の設定をしておく。ステップE1〜E5はそれぞれ、ステップA1〜A3、A5〜A6と同様である。
【0058】
そして、CPU1aは、ROM1eから既定語句の読出しを行う(ステップE6)。既定語句は、例えば、「絵」、「画像」、「写真」、「地図」等の添付画像ファイルと対応するに相等しい語句である。ROM1e内にこれらの既定語句を登録する既定語句テーブルを予め格納し、本手順で当該既定語句テーブル上の既定語句を読出す。また、既定語句は記録媒体1gに格納しておき、適時変更可能な構成として、ステップE6で記録媒体1gから既定語句を読出してもよい。そして、CPU1aは、ステップE1で抽出した電子メールのMIMEのフィールドから添付画像ファイル名を抽出する(ステップE7)。
【0059】
そして、CPU1aは、読出した添付画像ファイル名の中に読出した既定語句が含まれているかを判別する(ステップE8)。既定語句が含まれている場合(ステップE8;YES)、CPU1aは、該当する既定語句を電子メールの本文中で検索する(ステップE9)。既定語句が含まれていない場合(ステップE9;NO)、CPU1aは、前記添付画像ファイル名を本文中で検索する(ステップE10)。
【0060】
そして、CPU1aは、ステップE9又はE10において、目的とする語句としてそれぞれ既定語句又は添付画像ファイル名を検索できたかを判別する(ステップE11)。検索できた場合(ステップE11;YES)、前記目的とする語句が存在する段落の後に添付画像挿入位置を設定する(ステップE12)。具体的には、CPU1aは、ステップE5で作成した行管理テーブルを用いて、前記目的とする語句が存在する行の改行位置が0以外の値かを判別し、0である場合、次の行の改行位置を順に調べていき、改行位置が0以外の値である最初の行を、前記目的とする語句を有する段落の最後の行とし、当該段落の最後の行の次の行を添付画像挿入位置として設定する。
【0061】
目的とする語句がない場合(ステップE11;NO)、CPU1aは、添付画像ファイルの表示位置を予め既定しておいた既定位置に設定する。
【0062】
そして、CPU1aは、表示部1dに前記電子メールを表示させる(ステップE14)。具体的には、CPU1aは、先ず本文を表示し、ステップE12を経由した場合は、添付画像挿入位置に、ステップE13を経由した場合は既定位置に、それぞれ前記添付画像ファイルの添付画像を表示させる。なお、プレーンテキストでない場合(ステップE2;NO)、表示可能な添付画像ファイルがない場合(ステップE3;NO)は、ステップE14に進み、CPU1aは、表示部1dに通常どおり前記電子メールを表示させる。以上で、既定語句添付画像表示手順を終了する。
【0063】
なお、既定語句又は添付画像ファイル名を表示部1d上で強調表示する構成としてもよい。
【0064】
ここで、図10を参照して、既定語句添付画像表示手順の表示例を従来例と比較して説明する。図10は、従来例と既定語句添付画像挿入表示例との表示結果を示す図であり、(I)は、従来の表示画面を示す図であり、(II)は、既定語句添付画像挿入表示手順による表示画面を示す図である。図10(II)は、従来例とは異なり、既定語句である「地図」を含む段落の次の行に添付画像ファイルの添付画像を表示させて、かつ「地図」を強調表示している。
【0065】
よって、本実施の形態によれば、文章の内容に関連した位置に添付画像ファイルの添付画像を表示させることができる。
【0066】
(第4の実施の形態)
本実施の形態を図11及び図12を参照して説明する。第1の実施の形態と同様に電子メール表示装置1を用いて、CPU1aが、キーワード添付画像挿入プログラムを実行することにより添付画像ファイルの添付画像を電子メール本文のキーワードに対応した位置に表示させる。図11は、キーワード添付画像表示プログラムのフローチャートである。
【0067】
最初に、第1の実施の形態と同様に、予め既定位置の設定をしておく。また、キーワードとは電子メールの送信側、受信側間で認識でき、添付画像ファイルの添付画像を挿入表示させるために予め前記送信側及び前記受信側で設定した語句であり、例えば、"$ATTACHMENT_1$"や"&IMAGE_INS2"等である。
【0068】
先ず、通信回線及び通信制御部1hを介して電子メール受信後、キーワード添付画像挿入プログラムを実行することによりキーワード添付画像表示手順を開始する。ステップF1〜F5はそれぞれ、ステップA1〜A3,A5〜A6と同様である。
【0069】
次に、CPU1aは、ROM1eからキーワードの読出しを行う(ステップF6)。ROM1e内にこれらのキーワードを登録するキーワードテーブルを格納し、本手順で当該キーワードテーブル上のキーワードを読出す。また、キーワードは記録媒体1gに格納しておき、適時変更可能な構成として、ステップF6で記録媒体1gからキーワードを読出してもよい。そして、CPU1aは、読出したキーワードを電子メールの本文中から検索する(ステップF7)。
【0070】
そして、CPU1aは、本文中に読出したキーワードが含まれているかを判別する(ステップF8)。キーワードが含まれている場合(ステップF8;YES)、CPU1aは、該当するキーワードのある行に添付画像挿入位置を設定する(ステップF9)。具体的には、CPU1aは、ステップF5で作成した行管理テーブルを用いて、前記キーワードが存在する行を検索し、前記キーワードを有する行を添付画像挿入位置として設定する。そして、キーワードは表示する必要がないため、CPU1aは、本文中のキーワードを削除する(ステップF10)。キーワードが含まれていない場合(ステップF8;NO)、CPU1aは、添付画像ファイルの表示位置を予め既定しておいた既定位置に設定する(ステップF11)。
【0071】
そして、CPU1aは、表示部1dに前記電子メールを表示させる(ステップF12)。具体的には、CPU1aは、先ず本文を表示し、ステップF9を経由した場合は、添付画像挿入位置に、ステップF11を経由した場合は既定位置に、それぞれ前記添付画像ファイルの添付画像を表示させる。なお、プレーンテキストでない場合(ステップF2;NO)、表示可能な添付画像ファイルがない場合(ステップF3;NO)は、ステップF12に進み、CPU1aは、表示部1d上に通常どおり前記電子メールを表示させる。以上で、キーワード添付画像表示手順を終了する。
【0072】
ここで、図12を参照して、キーワード添付画像表示手順の表示例を従来例と比較して説明する。図12は、従来例とキーワード添付画像挿入表示例との表示結果を示す図であり、(I)は、従来の表示画面であり、(II)は、キーワード添付画像挿入表示手順による表示画面である。図12(II)は、キーワードである$ATTACHMENT_1$を含む行に添付画像を表示させている。
【0073】
また、応用例として、メールの受信側において、送信者が指定するキーワードの添付画像挿入位置から更に自分の都合によってキーワードの表示位置を変更し、添付画像ファイルの添付画像を好きな位置に表示させる構成としてもよい。
【0074】
よって、本実施の形態によれば、予め設定しておいたキーワードの位置する場所に添付画像ファイルの添付画像を表示するようにしたので、メール送信時において、最も適当と思われる位置に添付画像を表示するように指定することができる。また上記応用例によれば、メール受信側では更に自分の都合によってキーワードの表示位置を変更し、添付画像を好きな位置に表示させることができる。
【0075】
以上、本発明の実施の形態につき説明したが、本発明は、必ずしも上述した手段及び手法にのみ限定されるものではなく、本発明にいう目的を達成し、本発明にいう効果を有する範囲内において適宜に変更実施が可能なものである。
【0076】
【発明の効果】
以上詳述したごとく、請求項1、請求項4に記載の発明によれば、メール本文テキストを解析して行毎の空白の領域に添付画像の高さに合わせて空白行を追加することにより、添付画像を表示可能な領域が適宜形成されるので、技術的ハードルを低くして、電子メール表示装置上で画像を表示するための処理及び設定を簡略化でき、テキストの空き領域に添付画像を表示できるので、表示領域を有効活用できる。
【0077】
請求項2に記載の発明によれば、長い文章の場合は、文章の先頭に添付画像ファイルの添付画像を表示するようにしたので、添付画像表示位置まで文章をスクロールする必要がなく、メール受信者はすぐに画像を見ることができる。
【0078】
請求項3に記載の発明によれば、文章の内容に関連した位置に添付画像ファイルの添付画像を表示させることができる。
【図面の簡単な説明】
【図1】本実施の形態である電子メール表示装置の内部構成を示すブロック図である。
【図2】添付画像適切位置表示プログラムのフローチャートである。
【図3】図2における行管理テーブル作成プログラムのフローチャートである。
【図4】図3における行管理テーブルを説明する図であり、(I)は行管理テーブルの内部構成を示す図であり、(II)は、(I)に対応するメール本文を示す図である。
【図5】図2における添付画像挿入位置検索プログラムのフローチャートである。
【図6】図2における、従来例と添付画像適切位置表示手順との表示結果を示す図であり、(I)は、従来の表示画面を示す図であり、(II)は、添付画像適切位置表示手順による表示画面を示す図である。
【図7】文頭末添付画像表示プログラムのフローチャートである。
【図8】図7における、文頭末添付画像表示手順による表示結果を示す図であり、(I)は、総行数が規定行数よりも大きくない場合の表示画面を示す図であり、(II)は、規定行数よりも大きい場合の表示画面を示す図である。
【図9】既定語句添付画像表示プログラムのフローチャートである。
【図10】従来例と既定語句添付画像挿入表示例との表示結果を示す図であり、(I)は、従来の表示画面を示す図であり、(II)は、既定語句添付画像挿入表示手順による表示画面を示す図である。
【図11】キーワード添付画像表示プログラムのフローチャートである。
【図12】図12における、従来例とキーワード添付画像挿入表示例との表示結果を示す図であり、(I)は、従来の表示画面を示す図であり、(II)は、キーワード添付画像挿入表示手順による表示画面を示す図である。
【符号の説明】
1…電子メール表示装置
1a…CPU
1b…入力部
1c…RAM
1d…表示部
1e…ROM
1f…外部記憶装置
1g…記録媒体
1h…通信制御部
1i…バス[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic mail display device and a program for displaying an electronic mail with an attached image file.
[0002]
[Prior art]
Conventionally, when displaying plain text mail with attached image file in the display of e-mail, the attached image is displayed at a fixed position, such as being displayed before the text, displayed after the text, or displayed in another window. Was. Further, in order to insert and display an image, there has been a method of describing an e-mail in a page description language such as HTML (Hyper Text Markup Language) or XML (eXtensive Markup Language).
[0003]
[Problems to be solved by the invention]
However, in the display of a plain text mail with an attached image file, there is a problem that in the conventional fixed position display of an attached image, there is a useless space on a limited display area, and effective display cannot be performed. In addition, when the amount of text is large, there is a problem that many operations such as scrolling are necessary before displaying an attached image. In addition, since the message is displayed at a fixed location regardless of the content of the text, the fixed display position may be an inappropriate display position depending on the mail. There is also a problem that an image cannot be displayed at a position desired by the sender.
[0004]
Furthermore, in the conventional fixed position display of attached images, a lot of software processing including a mail engine is required to support a page description language such as HTML for inserting and displaying images, and technical hurdles are high. There was a problem.
[0005]
An object of the present invention is to save a display area when displaying a plain text mail with an attached image file without using a page description language such as HTML, and display an image at the head of the text when the text is long. In addition, an image is displayed at a position suitable for the content of the sentence, and an image is displayed at a position desired by the sender.
[0006]
[Means for Solving the Problems]
In order to solve the above-described problems, the invention according to
[0007]
According to the invention described in
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a first embodiment, a second embodiment, a third embodiment, and a fourth embodiment of the present invention will be described in order with reference to the accompanying drawings.
[0010]
(First embodiment)
This embodiment will be described with reference to FIGS. FIG. 1 is a block diagram showing an internal configuration of the electronic mail display apparatus according to the present embodiment.
[0011]
The
[0012]
The
[0013]
The CPU 1a executes an attached image appropriate position display program, a sentence end attached image display program, a default phrase attached image display program, and a keyword attached image display program. After receiving the electronic mail from the
[0014]
Further, after receiving the electronic mail from the
[0015]
In addition, after receiving the electronic mail from the
[0016]
In addition, after receiving the electronic mail from the
[0017]
The
[0018]
The
[0019]
The
[0020]
The ROM 1e is a read-only memory, and stores application programs such as a system program and an e-mail display program, predetermined data, and the like. The ROM 1e may be a data rewritable flash ROM.
[0021]
The
[0022]
In addition, a part or all of the programs, data, and the like stored in the
[0023]
The
[0024]
The communication line is a network such as the Internet, for example, a telephone line network, an ISDN line network, a dedicated line, a mobile communication network, a communication satellite line, a CATV line, an optical communication line, a wireless communication line, and an Internet service for connecting them. Includes providers and base stations.
[0025]
Here, the procedure for displaying the attached image appropriate position will be described with reference to FIGS. FIG. 2 is a flowchart of the attached image appropriate position display program. The CPU 1a on the
[0026]
This flowchart is for explaining a program for causing the computer constituting the electronic
[0027]
Consider the case where an attached image file exists in the received e-mail before the processing procedure, and an appropriate display position cannot be obtained in the attached image file. The position is set in advance. Then, the CPU 1a on the electronic
[0028]
First, the CPU 1a extracts and analyzes MIME (Multipurpose Internet Mail Extensions) in the electronic mail on the
[0029]
If it is plain text (step A2; YES), the CPU 1a determines whether there is an attached image file that can be displayed on the
[0030]
When there is a displayable attached image file (step A3; YES), the CPU 1a analyzes the inside of the attached image file to obtain the image size of the attached image having the width and height. (Step A4). Then, the CPU 1a reads the body that is the plain text of the received electronic mail (step A5). Then, the CPU 1a creates a row management table (step A6), and the CPU 1a searches for an attached image insertion position (step A7). Steps A6 and A7 will be described in detail later.
[0031]
Next, the CPU 1a determines whether or not the attached image can be inserted (step A8). When the attached image insertion position is obtained in step A7 and the attached image can be inserted (step A8; YES), the CPU 1a sets the display of the attached image at the attached image insertion position searched in step A7 ( Step A9). If the attached image insertion position cannot be obtained in step A7 and the attached image cannot be inserted (step A8; NO), the CPU 1a sets the display of the attached image at a preset default position (step A10). ).
[0032]
Then, the CPU 1a displays the e-mail on the
[0033]
Next, the procedure for creating a row management table at step A6 will be described with reference to FIGS. 3 is a flowchart of the row management table creation program, FIG. 4 is a diagram for explaining the row management table, (I) is a diagram showing an internal configuration of the row management table, and (II) is ( It is a figure which shows the mail text corresponding to I). The line management table stores the line number in the body of the email, the number of leading blank characters for each line number, the number of characters other than the leading blank character, and the line feed position for each line number on the
[0034]
After step A5 is completed, the row management table creation procedure of step A6 is started. First, the CPU 1a acquires one character from the text of the received electronic mail (step B1). First, the first character of the first line of the body is obtained. Then, it is determined whether the acquired one character is a blank character at the beginning of the line (step B2). If it is a leading blank character (step B2; YES), the CPU 1a counts up the number of leading blank characters by one (step B3). And it returns to step B1 and acquires the following 1 character.
[0035]
If it is not a space character at the beginning of the line (step B2; NO), the CPU 1a determines whether the line is a line feed based on whether the acquired character is a line feed character (step B4). If it is not a line feed (step B4; NO), the CPU 1a determines whether or not the maximum number of display characters per line has been exceeded (step B5). Specifically, the maximum displayable total number of characters for each line is acquired as the maximum number of displayable characters per line from the horizontal display size that is the maximum horizontal displayable width set in advance, and the above-mentioned count is performed. Using the number of blank characters at the beginning of the line plus the number of characters as the total number of characters, it is determined whether the total number of characters exceeds the maximum number of display characters per line.
[0036]
When the maximum number of characters displayed per line is not exceeded (step B5; NO), the CPU 1a counts up the number of characters by one (step B6). And it returns to step B1 and acquires the following 1 character. If it is a line break (step B4; YES), the CPU 1a registers “number of characters + number of blank characters at the beginning of line” (total number of characters in the line) +1 as the line break position in the line management table (step B7). If the maximum number of characters displayed per line is exceeded (step B5; YES), the CPU 1a registers 0 in the line management table as a line feed position (step B8). That is, the number of characters and the number of blank characters at the beginning of the line are counted up until the line is folded on the line feed or display area.
[0037]
Then, the CPU 1a registers the counted number of characters in the line management table (step B9), registers the counted number of leading blank characters in the line management table (step B10), and registers a line number in the line management table (step B10). Step B11). In step B11, 1 is initially registered.
[0038]
And CPU1a discriminate | determines whether the character which is not acquired by step B1 exists in the text other than in an email text (step B12). When there is another character (step B12; YES), the CPU 1a counts up the line number (step B13), returns to step B1, and acquires one character of the next line. If there are no other characters (step B12; NO), the row management table creation procedure is terminated and the process proceeds to step A7.
[0039]
Here, a specific example will be described with reference to FIG. If the maximum number of characters displayed per line is 30, and each data of the mail body shown in FIG. 4 (II) is registered, a line management table is created as shown in FIG. 4 (I). At this time, the first line without a line feed position is the beginning of a paragraph, and “0” is recorded at the line feed position in FIG. The second line with the line feed position is the end of the paragraph, and the position “29” where the line feed is designated is recorded at the line feed position in FIG. The third line starts as a paragraph and ends the paragraph in that line.
[0040]
Next, the attached image insertion position search procedure in step A7 will be described with reference to FIG. FIG. 5 is a flowchart of the attached image insertion position search program. First, the CPU 1a reads the row management table on the
[0041]
When the row widths of all rows are calculated (step C3; YES), the CPU 1a subtracts the row width of each row calculated in step C2 from the preset horizontal display size to obtain “horizontal display size” − “ The “line width” is calculated and stored in the line management table (step C4). And CPU1a discriminate | determines whether the horizontal direction display size-row width was calculated about all the lines (step C5). When the horizontal display size-row width is not calculated for all rows (step C5; NO), the process returns to step C4, and the "horizontal display size"-"row width" of the uncalculated rows is calculated. Store in the row management table.
[0042]
When “horizontal display size” − “row width” is calculated for all rows (step C5; YES), the CPU 1a determines the horizontal width from the “horizontal display size” — “row width” of all stored rows. It is determined whether there is a line into which the attached image file can be inserted (step C6). Specifically, it is determined whether or not there is a row where “horizontal display size” − “row width” exceeds the horizontal width of the image size of the attached image acquired in step A4. When there is a row in which an attached image can be inserted for the horizontal width (step C6; YES), the CPU 1a extracts a row in which the attached image can be inserted for the horizontal width (step C7). And CPU1a discriminate | determines whether the position which can insert the said attachment image about height exists from the line extracted by step C7 (step C8). Specifically, continuous insertable lines extracted in step C7 are extracted, and the total height of the continuous lines exceeds the height of the image size of the attached image acquired in step A4. Determine if the row exists. If there are no consecutive lines, a single line is extracted and determined.
[0043]
When there is no position where the attached image can be inserted with respect to the height (step C8; NO), the CPU 1a adds a blank height for one line to the total height of the continuous lines (step C9). Then, the process returns to step C8, and it is determined whether or not there is a position where the attached image can be inserted with respect to the total height of the continuous lines added. In step C9, a blank space height may be added in place of blank line addition.
[0044]
When there is a position where the attached image can be inserted for the height (step C8; YES), the CPU 1a extracts a position where the attached image can be inserted for the height (step C10). Then, the attachment image insertion position is determined from the position extracted in step C10 (step C11). The attached image insertion in the horizontal direction may be displayed from the right end regardless of the position of the line feed character, or may be set to be displayed at the line feed position. If there are several attachment image insertion positions in step C11, the user on the
[0045]
If there is no row in which the attached image can be inserted for the horizontal width (step C6; NO), the attached image insertion position for inserting the attached image is not set. Then, the procedure for searching for the attached image insertion position is terminated, and the process proceeds to Step A8.
[0046]
Here, a specific example will be described with reference to FIG. In FIG. 4 (II), the maximum number of characters displayed in the horizontal direction is 30 characters, and the character spacing is 16 dots, so the horizontal display size is 480 dots. At this time, as shown in FIG. 4I, the row width and the value of “horizontal display size” − “row width” are calculated. In the horizontal empty area indicated by “horizontal display size” − “line width”, the first line having no line feed position is zero.
[0047]
In addition, a display example of the present embodiment will be described in comparison with a conventional example with reference to FIG. FIG. 6 is a diagram showing display results of a conventional example and an attached image appropriate position display procedure, (I) is a diagram showing a conventional display screen, and (II) is an attached image appropriate position display procedure. It is a figure which shows a display screen. In FIG. 6 (II), unlike the conventional example, it is possible to insert the attached image of the attached image file from the second line to the sixth line in the horizontal direction, and the height from the second line to the sixth line. The attached image is displayed at the right end by adding a blank line to the total height of.
[0048]
As a modification of the present embodiment, if the maximum free area of the e-mail body is less than the image size of the attached image of the attached image file in step C7, the attached image is included in the maximum free area. It may be reduced and displayed.
[0049]
Further, in the same procedure as steps C1 to C11, as in steps C4 and C5, the head blank character widths of all the rows are calculated from the number of head blank characters in the row management table and stored in the
[0050]
Therefore, according to the present embodiment, since the plain text of the mail body is analyzed using MIME without using a page description language such as HTML, an area where the attached image can be displayed is appropriately extracted. Processing and setting for displaying an image on an e-mail display device can be simplified by lowering technical hurdles, and an attached image can be displayed in an empty area of text, so that the display area can be effectively used.
[0051]
(Second Embodiment)
This embodiment will be described with reference to FIGS. Similar to the first embodiment, using the electronic
[0052]
First, after receiving an e-mail via the communication line and the
[0053]
Then, the CPU 1a displays the electronic mail on the
[0054]
Here, with reference to FIG. 8, the display example of this Embodiment is compared and demonstrated by the total number of lines. FIG. 8 is a diagram showing a display result according to the end-of-sentence attached image display procedure, (I) is a diagram showing a display screen when the total number of lines is not larger than the specified number of lines, and (II) is It is a figure which shows a display screen in case it is larger than the regulation number of lines. In (I), since there are few lines, the attached image of the attached image file is displayed at the end of the body of the e-mail. In (II), since there are many lines, the attached image is displayed at the beginning of the body of the e-mail.
[0055]
Therefore, according to the present embodiment, in the case of a long sentence, the attached image of the attached image file is displayed at the beginning of the sentence, so there is no need to scroll the sentence to the attached image display position, and the mail recipient Can see the image immediately.
[0056]
(Third embodiment)
This embodiment will be described with reference to FIGS. As in the first embodiment, using the electronic
[0057]
First, after receiving an e-mail via the communication line and
[0058]
Then, the CPU 1a reads a predetermined word / phrase from the ROM 1e (step E6). The default phrase is, for example, a phrase that is equivalent to an attached image file such as “picture”, “image”, “photo”, “map”, and the like. A default phrase table for registering these default phrases in the ROM 1e is stored in advance, and the default phrases on the default phrase table are read out in this procedure. Alternatively, the default phrase may be stored in the
[0059]
Then, the CPU 1a determines whether or not the read default word / phrase is included in the read attached image file name (step E8). If the default word / phrase is included (step E8; YES), the CPU 1a searches for the corresponding default word / phrase in the text of the e-mail (step E9). When the default phrase is not included (step E9; NO), the CPU 1a searches the attached image file name in the text (step E10).
[0060]
Then, the CPU 1a determines whether or not the default phrase or the attached image file name can be retrieved as the target phrase in step E9 or E10 (step E11). If the search is successful (step E11; YES), an attached image insertion position is set after the paragraph in which the target word / phrase exists (step E12). Specifically, the CPU 1a uses the line management table created in step E5 to determine whether the line feed position of the line in which the target word is present is a value other than 0. The first line whose line break position is a value other than 0 is taken as the last line of the paragraph having the target word and the next line after the last line of the paragraph is an attached image. Set as insertion position.
[0061]
When there is no target word / phrase (step E11; NO), the CPU 1a sets the display position of the attached image file to a predetermined default position.
[0062]
Then, the CPU 1a displays the electronic mail on the
[0063]
The default phrase or attached image file name may be highlighted on the
[0064]
Here, with reference to FIG. 10, a display example of the default phrase attached image display procedure will be described in comparison with a conventional example. FIG. 10 is a diagram showing display results of a conventional example and a default phrase attached image insertion display example, (I) is a diagram showing a conventional display screen, and (II) is a default phrase attached image insertion display. It is a figure which shows the display screen by a procedure. In FIG. 10 (II), unlike the conventional example, the attached image of the attached image file is displayed on the line next to the paragraph including the “map” which is the default word / phrase, and “map” is highlighted.
[0065]
Therefore, according to the present embodiment, the attached image of the attached image file can be displayed at a position related to the content of the text.
[0066]
(Fourth embodiment)
This embodiment will be described with reference to FIGS. Similar to the first embodiment, using the electronic
[0067]
First, the default position is set in advance as in the first embodiment. The keyword is a word that can be recognized between the sending side and the receiving side of the e-mail and is set in advance on the sending side and the receiving side to insert and display the attached image of the attached image file. For example, “$ ATTACHMENT_1” $ ","& IMAGE_INS2 ", etc.
[0068]
First, after receiving an electronic mail via the communication line and
[0069]
Next, the CPU 1a reads a keyword from the ROM 1e (step F6). A keyword table for registering these keywords is stored in the ROM 1e, and the keywords on the keyword table are read out in this procedure. Further, the keyword may be stored in the
[0070]
Then, the CPU 1a determines whether or not the read keyword is included in the text (step F8). If a keyword is included (step F8; YES), the CPU 1a sets the attached image insertion position in a line with the corresponding keyword (step F9). Specifically, the CPU 1a searches for a line in which the keyword exists using the line management table created in step F5, and sets the line having the keyword as an attached image insertion position. And since it is not necessary to display a keyword, CPU1a deletes the keyword in a text (step F10). When the keyword is not included (step F8; NO), the CPU 1a sets the display position of the attached image file to a predetermined default position (step F11).
[0071]
Then, the CPU 1a displays the electronic mail on the
[0072]
Here, a display example of the keyword-attached image display procedure will be described in comparison with the conventional example with reference to FIG. FIG. 12 is a diagram showing the display results of the conventional example and the keyword-attached image insertion display example. (I) is a conventional display screen, and (II) is a display screen according to the keyword-attached image insertion display procedure. is there. In FIG. 12 (II), an attached image is displayed on a line including the keyword $ ATTACHMENT_1 $.
[0073]
As an application example, on the mail receiving side, the keyword display position is further changed by the user's convenience from the keyword attached image insertion position specified by the sender, and the attached image of the attached image file is displayed at a desired position. It is good also as a structure.
[0074]
Therefore, according to the present embodiment, since the attached image of the attached image file is displayed at the location where the keyword is set in advance, the attached image is displayed at the most appropriate position at the time of mail transmission. Can be specified to be displayed. Further, according to the above application example, the mail receiving side can further change the display position of the keyword at his convenience and display the attached image at a desired position.
[0075]
As described above, the embodiments of the present invention have been described. However, the present invention is not necessarily limited only to the above-described means and methods, and within the scope of achieving the object of the present invention and having the effects of the present invention. It is possible to make changes as appropriate.
[0076]
【The invention's effect】
As detailed above,
[0077]
According to the second aspect of the present invention, in the case of a long sentence, the attached image of the attached image file is displayed at the beginning of the sentence, so there is no need to scroll the sentence to the attached image display position, and mail is received. The person can see the image immediately.
[0078]
According to the third aspect of the present invention, the attached image of the attached image file can be displayed at a position related to the content of the sentence.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an internal configuration of an electronic mail display apparatus according to an embodiment.
FIG. 2 is a flowchart of an attached image appropriate position display program.
FIG. 3 is a flowchart of the row management table creation program in FIG. 2;
4 is a diagram for explaining a row management table in FIG. 3, (I) is a diagram showing an internal configuration of the row management table, and (II) is a diagram showing a mail text corresponding to (I). is there.
5 is a flowchart of an attached image insertion position search program in FIG. 2. FIG.
6 is a diagram showing a display result of the conventional example and an attached image appropriate position display procedure in FIG. 2, (I) is a diagram showing a conventional display screen, and (II) is an attached image appropriate FIG. It is a figure which shows the display screen by a position display procedure.
FIG. 7 is a flowchart of an end-of-sentence attached image display program.
FIG. 8 is a diagram showing a display result by a sentence end attached image display procedure in FIG. 7, (I) is a diagram showing a display screen when the total number of lines is not larger than the prescribed number of lines; II) is a diagram showing a display screen when the number of lines is larger than the specified number of lines.
FIG. 9 is a flowchart of a default phrase attached image display program.
FIGS. 10A and 10B are diagrams showing display results of a conventional example and a default word / phrase attached image insertion display example, where FIG. 10 (I) is a diagram showing a conventional display screen, and FIG. 10 (II) is a default word / phrase attached image insertion display; It is a figure which shows the display screen by a procedure.
FIG. 11 is a flowchart of a keyword-attached image display program.
12 is a diagram showing a display result of the conventional example and the keyword-attached image insertion display example in FIG. 12, (I) is a diagram showing a conventional display screen, and (II) is a keyword-attached image. It is a figure which shows the display screen by an insertion display procedure.
[Explanation of symbols]
1. E-mail display device
1a ... CPU
1b: Input unit
1c ... RAM
1d: Display section
1e ROM
1f ... External storage device
1g ... Recording medium
1h: Communication control unit
1i ... Bus
Claims (4)
添付画像ファイル付きのメールを受信した場合に、当該メール本文テキストのレイアウトを解析して行毎の空白の領域を示す行管理テーブルを作成する解析手段と、
当該メール本文内において前記行管理テーブルを参照し、本文テキストの前記行毎の空白の領域に前記添付画像ファイルの添付画像の高さに合わせて空白行を追加することにより、前記添付画像ファイルの添付画像を表示可能な領域を形成する形成手段と、
その形成された領域に前記添付画像を表示する表示手段とを具備した、
ことを特徴とする電子メール表示装置。In an email display device that receives and displays email,
An analysis means for analyzing a layout of the email body text and creating a row management table indicating a blank area for each row when an email with an attached image file is received;
By referring to the line management table in the mail body and adding a blank line to the blank area for each line of the body text according to the height of the attached image of the attached image file, Forming means for forming an area capable of displaying an attached image;
Display means for displaying the attached image in the formed area;
An electronic mail display device characterized by that.
前記メール本文の行数をカウントし、予め設定しておいた行数と比較し、
メール本文の行数が予め設定しておいた行数より少ない場合は前記メール本文の後に添付画像を表示する領域を形成し、
メール本文の行数が予め設定しておいた行数より多い場合は前記メール本文の前に添付画像を表示する領域を形成する、ことを特徴とする請求項1に記載の電子メール表示装置。The forming means includes
Count the number of lines in the email body and compare it with the preset number of lines,
If the number of lines in the email body is less than the preset number of lines, an area for displaying the attached image is formed after the email body,
2. The electronic mail display device according to claim 1, wherein an area for displaying an attached image is formed in front of the mail text when the number of lines in the mail text is larger than a preset number of lines.
前記メール本文から予め登録された語句を検索し、その語句が検索された場合、その検索された語句の段落の次の領域を添付画像を表示する領域として形成する、ことを特徴とする請求項1に記載の電子メール表示装置。The forming means includes
2. A pre-registered word / phrase is searched from the mail text, and when the word / phrase is searched, an area next to the paragraph of the searched word / phrase is formed as an area for displaying an attached image. The electronic mail display device according to 1.
添付画像ファイル付きのメールを受信した場合に、当該メール文テキストのレイアウトを解析して行毎の空白の領域を示す行管理テーブルを作成する機能と、
当該メール本文内において前記行管理テーブルを参照し、本文テキストの前記行毎の空白の領域に前記添付画像ファイルの添付画像の高さに合わせて空白行を追加することにより、前記添付画像ファイルの添付画像を表示可能な領域を形成する機能と、
その形成された領域に前記添付画像を表示する機能と、
を実現させるための電子メール表示プログラム。On the computer,
When a mail with an attached image file is received, a function for analyzing the layout of the mail text and creating a line management table indicating a blank area for each line ;
By referring to the line management table in the mail body and adding a blank line to the blank area for each line of the body text according to the height of the attached image of the attached image file, A function to form an area where an attached image can be displayed;
A function of displaying the attached image in the formed area;
E-mail display program for realizing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001149685A JP4269538B2 (en) | 2001-05-18 | 2001-05-18 | E-mail display device and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001149685A JP4269538B2 (en) | 2001-05-18 | 2001-05-18 | E-mail display device and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002342238A JP2002342238A (en) | 2002-11-29 |
| JP4269538B2 true JP4269538B2 (en) | 2009-05-27 |
Family
ID=18994820
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001149685A Expired - Fee Related JP4269538B2 (en) | 2001-05-18 | 2001-05-18 | E-mail display device and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4269538B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010165218A (en) * | 2009-01-16 | 2010-07-29 | Toshiba Corp | Device, method and program for controlling display of electronic mail |
| JP2011253488A (en) * | 2010-06-04 | 2011-12-15 | Casio Comput Co Ltd | Mail receiver and program |
| US8504907B2 (en) | 2011-03-07 | 2013-08-06 | Ricoh Co., Ltd. | Generating page and document logs for electronic documents |
-
2001
- 2001-05-18 JP JP2001149685A patent/JP4269538B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002342238A (en) | 2002-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7882450B2 (en) | Interactive document summarization | |
| US7111234B2 (en) | System and method for in-line editing of web-based documents | |
| US7810049B2 (en) | System and method for web navigation using images | |
| US8788948B2 (en) | Electronic mail display device | |
| CN102708116B (en) | For the system and method for image procossing | |
| US20030046318A1 (en) | Reorganizing content of an electronic document | |
| US20110016386A1 (en) | Information processing device which controls display of summaries and previews of content of columns in web content depending on display area sizes, and recording medium which records control program thereof | |
| US20060294476A1 (en) | Browsing and previewing a list of items | |
| US20020065842A1 (en) | System and media for simplifying web contents, and method thereof | |
| US20080028292A1 (en) | Techniques to facilitate reading of a document | |
| JP2001312515A (en) | Information processing apparatus and method, and program storage medium | |
| JP2004326216A (en) | Document search device, method, program, and recording medium | |
| JP2011113512A (en) | Electronic book content generation device and electronic book content generation method | |
| JPH09200254A (en) | Email display | |
| JP4269538B2 (en) | E-mail display device and program | |
| JP2010165218A (en) | Device, method and program for controlling display of electronic mail | |
| US20080109752A1 (en) | Expanding search query input box to support livesearch interaction | |
| KR20070011547A (en) | Item type specific structured search | |
| US6961464B2 (en) | Method for creating a database such as a dictionary used for a word conversion system | |
| JP2010244412A (en) | Apparatus, method and program for processing document | |
| CN113268686B (en) | Processing method for multiple browsing modes of form in information at APP (application) end | |
| US7461341B2 (en) | Structured document display processor, method for processing display of structured document, and program for displaying structured document | |
| US20030202016A1 (en) | System and method for generating and displaying attribute-enhanced documents | |
| JPH05233699A (en) | Mehtod and system for operating document | |
| JPH10162024A (en) | Electronic filing method and electronic filing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060427 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081110 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081202 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090114 |
|
| 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: 20090203 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090216 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120306 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4269538 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120306 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130306 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130306 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140306 Year of fee payment: 5 |
|
| LAPS | Cancellation because of no payment of annual fees |