以下の関数は、その名前から連想されるようにIMAP プロトコルのみを扱うわけではありません。実装レベルのc-client ライブラリは、NNTP、POP3、 ローカルなメールボックスのアクセスメソッドもサポートします。
この拡張モジュールは、c-clientライブラリがインストールされている ことを要します。ftp://ftp.cac.washington.edu/imap/から最 新版を入手し、コンパイルしてください。
いくつかのファイルをリンクパス(例: /usr/local/lib/)およびインクルードディレクト リ(例: /usr/local/include)にコピーする必要が あります。コピーするべきファイルは、 make を実行した後に imap-200x/c-lient の下のソースツリーにあります。 c-client.aを /usr/local/lib/libc-client.a または リンクパスの他のディレクトリにコピーして下さ い。
注意: c-client.a をリンクパスに libc-client.aという名前でコピーしてください。
以下のファイルを/usr/local/include または インクルードパスの他のディレクトリにコピーし てください。
c-client.h |
imap4r1.h |
rfc822.h |
mail.h |
linkage.h |
env.h |
env_unix.h |
fs.h |
ftl.h |
misc.h |
nntp.h |
nl.h |
osdep.h |
smtp.h |
tcp.h |
注意: env_unix.hの名前は、使用するOSに依存します。 以下のシンボリックオプションを指定してこのファイルをコピーするよ うにしてください。SSLまたはKerberosサポートを指定してc-clientライ ブラリを構築するには、パッケージに付属するドキュメントを読んで下 さい。
以下の関数を動作させるには、--with-imap=[DIR]を指定してPHPをコンパイル する必要があります。ただし、DIRはc-clientインストールプレフィックス です。
注意: c-clientの設定によっては、 --with-imap-ssl=/path/to/openssl/ または --with-kerberos=/path/to/kerberos をconfigureのオプションに指定する必要があります。
この拡張モジュールは設定ディレクティブを全く定義しません。
これらの定数は、この拡張モジュールで定義されており、 この拡張モジュールがPHP内部にコンパイルされているか実行時に動的にロー ドされるかのどちらかの場合のみ使用可能です。
Open mailbox read-only
Don't use or update a .newsrc for news (NNTP only)
For IMAP and NNTP names, open a connection but don't open a mailbox.
silently expunge the mailbox before closing when calling imap_close()
The parameter is a UID
Do not set the \Seen flag if not already set
The return string is in internal format, will not canonicalize to CRLF.
The sequence argument contains UIDs instead of sequence numbers
the sequence numbers contain UIDS
Delete the messages from the current mailbox after copying with imap_mail_copy()
Return UIDs instead of sequence numbers
Don't prefetch searched messages
This mailbox has no "children" (there are no mailboxes below this one).
This is only a container, not a mailbox - you cannot open it.
This mailbox is marked. Only used by UW-IMAPD.
This mailbox is not marked. Only used by UW-IMAPD.
Sort criteria for imap_sort(): message Date
Sort criteria for imap_sort(): arrival date
Sort criteria for imap_sort(): mailbox in first From address
Sort criteria for imap_sort(): message subject
Sort criteria for imap_sort(): mailbox in first To address
Sort criteria for imap_sort(): mailbox in first cc address
Sort criteria for imap_sort(): size of message in octets
この文書では、提供される関数に関する全ての話題の詳細について立ち入 ることはできません。より詳細な情報については、Cクライアントライブ ラリのソースに付属するドキュメント (docs/internal.txt)および以下のRFCドキュメン トで提供されています。
RFC2821: Simple Mail Transfer Protocol (SMTP).
RFC2822: Standard for ARPA internet text messages.
RFC2060: Internet Message Access Protocol (IMAP) Version 4rev1.
RFC1939: Post Office Protocol Version 3 (POP3).
RFC977: Network News Transfer Protocol (NNTP).
RFC2076: Common Internet Message Headers.
RFC2045 , RFC2046 , RFC2047 , RFC2048 & RFC2049: Multipurpose Internet Mail Extensions (MIME).
警告 |
recode拡張モジュールとともにこの拡張モジュールをロードした際に PHP がクラッシュしたり、起動できないという問 題が発生する可能性があります。 詳細な情報については、recode 拡張モジュールを参照ください。 |