68user's page 掲示板

Prev< No. 4747〜4752> Next  [最新発言に戻る] [過去ログ一覧]
No. 4747 # 68user 2007/01/15 (月) 15:31:12
>>4746 hornets
> OpenSSLを用いてElGamal暗号もできるのでしょうか?
現時点の OpenSSL には ElGamal は実装はされていません。

OpenSSL の ML を探すと、実装が欲しいなら
    http://mixmaster.sourceforge.net/
を見れば、とありました。

# http://marc.theaimsgroup.com/?l=openssl-users&m=92476310717523&w=2

No. 4748 # Kenichi Maehashi [E-mail] 2007/01/15 (月) 23:00:02
初めまして。Kenichi Maehashi と申します。
いつもネットワーク関連の情報を拝読させていただいております。

さて、
>> http://x68000.q-e-d.net/~68user/net/module-pop3.html
を参考にさせていただきながら、POP3 クライアントを書いたのですが、
実行すると、カレントディレクトリに msg-xxxxx-x.txt というような
テキストファイルが出力されてしまいます。(x は数字です)

これは Net::POP3 モジュールの仕様なのでしょうか。
または、出力をしないような設定方法はありますでしょうか。

ご教示いただければ幸いです。
よろしくお願いいたします。

No. 4749 # 68user 2007/01/16 (火) 11:18:14
>>4748 Kenichi Maehashi
Perl5.8.5 の Net::POP3 で試してみましたが、そのようなファイルは
生成されませんでした。

Net/POP3.pm や、それが利用している Net/Cmd.pm、Net/Config.pm を見ても、
msg-xxxx-x.txt というファイルが生成されるようには見えませんでしたので、
今一度確認していただけますか。接続時に
    $pop = Net::POP3->new($hostname, Debug => 1);
と Debug を ON にすると何かわかるかもしれません。

No. 4750 # Kenichi Maehashi [E-mail] 2007/01/18 (木) 00:56:08
>>4748 68user さま
有り難うございます。
コードを削って確認してみたところ、併用していた MIME::Parser モジュールが
出力するファイルであることが分かりました。確認不足で申し訳ありません。
MIME::Parser の出力するメッセージファイルは出力しないよう設定できないのでしょうか。。。

重ね重ね申し訳ございませんが、何卒宜しくお願い致します。

No. 4751 # 68user 2007/01/19 (金) 10:31:02
>>4750 Kenichi Maehashi
よくわかりませんが、output_to_core でしょうか。
    http://search.cpan.org/~eryq/MIME-tools-5.411a/lib/MIME/Parser.pm
    output_to_core YESNO
        Instance method. Normally, instances of this class output all
        their decoded body data to disk files (via MIME::Body::File).
        However, you can change this behaviour by invoking this method
        before parsing:

        If YESNO is false (the default), then all body data goes to
        disk files.

        If YESNO is true, then all body data goes to in-core data
        structures This is a little risky (what if someone emails
        you an MPEG or a tar file, hmmm?) but people seem to want
        this bit of noose-shaped rope, so I'm providing it. Note
        that setting this attribute true does not mean that parser-
        internal temporary files are avoided! Use tmp_to_core() for that.

        With no argument, returns the current setting as a boolean.

No. 4752 # Kenichi Maehashi [E-mail] 2007/01/19 (金) 22:18:37
>>4748 68user さま
お世話になっております。
ご指摘の通り、$parser->output_to_core(1); で解決できました。
このページはチェックしていたのですが、見落としておりました。。。申し訳ありません。
本当に有り難うございました。

Prev< No. 4747〜4752> Next  [最新発言に戻る] [過去ログ一覧]