Actions
Feature #7660
openIMAP: import mails to DB, move / delete mails
Start date:
17.01.2019
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Yes
Vote:
CR
Description
Es waere gut wenn QFQ auf Mails via IMAP zugreifen koennten.
- Sync als Daemon laufen lassen,
- Eingehende Mails automatisch in 'INSERT...' Statements verwandelt.
- Folder 'Inbox' und 'Sent' (falls via Mailprogramm versendet wurde kann so ein Thread aufgebaut werden).
- Mails nach 'done' verschieben.
- Neue Mail ablegen (eine Mail die gesendet wurde soll in den Send Folder)
- Wenn die Mails in der DB sind (ggfs.mit Attachment) koennen sie dort angezeigt.
PHP¶
- https://www.php-imap.com/ (incl. oauth2)
- https://github.com/barbushin/php-imap
- Doku um PHP IMAP selber zu implementieren: https://www.toptal.com/php/building-an-imap-email-client-with-php
Fuer Outlook / OAuth 2¶
- https://github.com/Webklex/php-imap/issues/264
- https://www.php-imap.com/examples/oauth
- https://github.com/Molnix-open-source/BouncedMailManager/blob/main/src/Clients/O365Client.php (ist gelistet als eines von 500 Projekten die php-imap nutzen)
- https://github.com/javanile/php-imap2
Python¶
- imaplib (https://docs.python.org/3/library/imaplib.html) * https://coderzcolumn.com/tutorials/python/imaplib-simple-guide-to-manage-mailboxes-using-python * https://coderslegacy.com/python/imap-read-emails-with-imaplib/
- https://imapclient.readthedocs.io/en/3.0.1/
Irgendwie machen mir die Posts den Eindruck als wenn imaplib nicht wirklich sinnvoll ist, wenn das Thema gegoodled wird kommen nur alte Posts zum vorschein.
- https://stackoverflow.com/questions/28776250/move-mail-in-imap-with-python-library
- https://stackoverflow.com/questions/2230037/how-to-fetch-an-email-body-using-imaplib-in-python
- https://stackoverflow.com/questions/25234862/how-to-copy-email-in-inbox-into-important-mailbox-with-imaplib
IMAP best practice¶
- https://www.atmail.com/blog/imap-101-manual-imap-sessions/
- https://www.atmail.com/blog/advanced-imap/ (u.a. UID und APPEND)
- https://www.atmail.com/blog/imap-commands/
- https://en.wikipedia.org/wiki/Internet_Message_Access_Protocol
MAPI (exchange)¶
- https://www.phpflow.com/php/how-to-read-inbox-mails-from-exchange-server/
- https://www.phpflow.com/php/how-to-connect-exchange-server-with-php/
- https://github.com/hfig/MAPI
Outdated¶
Actions