I noticed there are no documentations for the pop3 and smtp extensions...
anyway here is a list of pop3 commands and how I understand them:
I have tried those with * in the beginning:
pop3_undelete ($pop3_handle, $message_no)
->to issue RSET command. I don't know if the $message_no parameter should be there or not. I think RSET would reset all messages marked for deletion.
pop3_delete_message ($pop3_handle, $message_no)
-> I assume it is to mark a message for deletion.
pop3_get_message ($pop3_handle, $message_no)
-> I assume it is to issue a RETR command.
*pop3_get_message_size ($pop3_handle, $message_no)
-> returns the size of the message.
*pop3_get_message_header ($pop3_handle, $message_no)
-> returns the message's headers.
pop3_get_message_sizes ($pop3_handle)
-> Lists messages and their sizes.
pop3_get_message_ids ($pop3_handle, $message_no)
-> Lists messages and their unique ids
*pop3_get_account_size($pop3_handle)
-> Returns the size limit of the mail account?
*pop3_get_message_count($pop3_handle)
-> Returns the number of messages from inbox.
*pop3_close($pop3_handle)
-> Closes the pop3 connection.
*$pop3_handle = pop3_open($Server,$username,$password)
-> Opens a connection to a pop3 server performs authentication and returns a handle to the pop3 connection.
Note: When you install your php you should include the pop3 extension.
Example:
$server = "tls://pop.gmail.com:995";
$username = "my_user_id@gmail.com";
$password = "mypassword";
$pop3 = pop3_open($server,$username,$password);
$message_header = pop3_get_message_header($pop3, 1);
print_r = $message_header;
pop3_close($pop3);
this code will print_r the message header of the first message. More work is needed to make the above code safe to execute.
IMAP, POP3 and NNTP
- Einführung
- Installation/Konfiguration
- Vordefinierte Konstanten
- IMAP Funktionen
- imap_8bit — Konvertiert einen 8bit String in einen quoted-printable String
- imap_alerts — Liefert alle aufgetretenen IMAP Alarmnachrichten
- imap_append — String als Nachricht in einem Postfach ablegen
- imap_base64 — Dekodiert Base-64 kodierten Text
- imap_binary — Konvertiert einen 8 Bit String in einen Base64 codierten String
- imap_body — Liefert den Körper einer Nachricht
- imap_bodystruct — Liefert die Struktur eines bestimmten Nachrichtenteils
- imap_check — Informationen zum aktuellen Postfach
- imap_clearflag_full — Löscht Flags einer Nachricht
- imap_close — Schließt einen IMAP Stream
- imap_createmailbox — Anlegen eines neuen Postfachs
- imap_delete — Nachrichten im aktuellen Postfach zur Löschung markieren
- imap_deletemailbox — Löscht ein Postfach
- imap_errors — Diese Funktion liefert alle bisher aufgetretenen Fehlermeldungen
- imap_expunge — Löscht alle zum Löschen markierte Nachrichten
- imap_fetch_overview — Liefert einen Auszug aus den Kopfdaten von Nachrichten
- imap_fetchbody — Liefert einen bestimmten Abschnitt aus dem Körper einer Nachricht
- imap_fetchheader — Liefert den Kopf einer Nachricht
- imap_fetchstructure — Ermittelt die Struktur einer Nachricht
- imap_get_quota — Liefert Quota-Beschränkungen und Nutzungsstatistik der Postfächer
- imap_get_quotaroot — Liefert die Quota-Beschränkungen für ein Benutzerpostfach
- imap_getacl — Liste der Zugriffsrechte für ein Postfach bestimmen
- imap_getmailboxes — Liefert detailierte Informationen zu allen verfügbaren Postfächern
- imap_getsubscribed — Liste aller abonnierten Postfächer
- imap_header — Alias von imap_headerinfo
- imap_headerinfo — Liest die Kopfdaten einer Nachricht
- imap_headers — Liefert eine Zusammenfassung aller Nachrichtenköpfe eines Postfachs
- imap_last_error — Liefert die letzte IMAP-Fehlermeldung für dieses Script
- imap_list — Liste der Postfächer lesen
- imap_listmailbox — Alias von imap_list
- imap_listscan — Listet Postfächer nach Suchkriterien
- imap_listsubscribed — Alias von imap_lsub
- imap_lsub — Liste aller abonierten Postfächer
- imap_mail_compose — Erzeugt eine MIME-Nachricht aus Kopf- und Nachrichtenelementen
- imap_mail_copy — Kopiert Nachrichten in ein Postfach
- imap_mail_move — Verschiebt Nachrichten in ein anderes Postfach
- imap_mail — Sendet eine Email Nachricht
- imap_mailboxmsginfo — Informationen zum aktuellen Postfach
- imap_mime_header_decode — Dekodiert MIME-codierte Headerzeilen
- imap_msgno — Liefert die Nachrichtennummer für eine gegebene UID
- imap_num_msg — Anzahl der Nachrichten im aktuellen Postfach
- imap_num_recent — Nummer der kürzlich eingetroffenen Nachrichten
- imap_open — Öffnet eine Verbindung zu einem Mailserver-Postfach
- imap_ping — Prüft einen IMAP-Stream auf Funktionalität
- imap_qprint — Konvertiert einen quoted-printable kodierten String in einen 8 Bit String
- imap_renamemailbox — Ändert den Namen eines Postfachs
- imap_reopen — Wechselt das aktuelle Postfach der Verbindung
- imap_rfc822_parse_adrlist — Zerlegt einen Mailadressstring
- imap_rfc822_parse_headers — Email-Kopfzeilen aus einem String auslesen
- imap_rfc822_write_address — Bildet aus Realnamen, Postfach und Server eine korekt formatierte Mail-Adresse
- imap_savebody — Speichert einen bestimmten Body-Abschnitt einer Nachricht als Datei
- imap_scanmailbox — Alias von imap_listscan
- imap_search — Liefert ein Array von Nachrichten die den gegebenen Suchkriterien entsprechen
- imap_set_quota — Setzt die Mengenbeschrenkung für ein Postfach
- imap_setacl — Setzen der ACL für ein Postfach
- imap_setflag_full — Setzt Nachrichtenflags
- imap_sort — Sortiert Nachrichten eines Postfachs
- imap_status — Liefert Statusinformationen zum angegebenen Postfach
- imap_subscribe — Abbonieren eines Postfachs
- imap_thread — Liefert einen Baum zusammenhängender Nachrichten
- imap_timeout — Imap Timeout setzen oder lesen
- imap_uid — Liefert die UID für die gegebene Nachrichtennummer
- imap_undelete — Nimmt eine bereits gesetzte Löschmarkierung einer Nachricht zurück
- imap_unsubscribe — Abbonement eines Postfachs rückgängig machen
- imap_utf7_decode — Dekodiert einem String im modifizierten UTF-7 Format.
- imap_utf7_encode — Kodiert ISO-8859-1 Text im modifizieren UTF-7 Format
- imap_utf8 — Konvertiert Text zu UTF8
IMAP
dickey at ascent dot co dot cc
25-Jun-2008 01:21
25-Jun-2008 01:21
