email-importer.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Insipid has a feature to fetch new links from E-Mails.
  2. Those E-Mails are read from a configured IMAP mailbox.
  3. # Requirements
  4. You need to enable the imap/ssl functions within PHP and
  5. have a IMAP mailbox on a SSL/TLS email server.
  6. # Config
  7. Set the config variables in the config file.
  8. Make sure you an individual marker string!
  9. There is no "security" within this method. Only the special string you can define.
  10. The new links will be hidden at first. You need to verify them before they are
  11. visible in your list.
  12. Here are the important configs:
  13. EMAIL_SERVER => Address of your E-Mail server
  14. EMAIL_SERVER_PORT_IMAP => The SSL Imap port. Default: 993
  15. EMAIL_SERVER_MAILBOX => The name of your Inbox. Default: INBOX
  16. EMAIL_ARCHIVE_FOLDER => The name of the archive folder in which the processed emails will be moved
  17. EMAIL_REPORT_BACK => set this to true if you want to report to the sender. Default: false
  18. EMAIL_SERVER_PORT_SMTP => The SSL SMTP port for using the report back function. Default: 465
  19. EMAIL_REPLY_BACK_VALID => Multiple E-Mails addresses which can be reported back to. RFC822-style comma-separated email addresses
  20. EMAIL_REPLY_BACK_ADDRESS => The E-Mail address which sends the report mail. Usually the address from which your read the mails
  21. # Moderation
  22. Access the moderation with this link: index.php?p=stats
  23. After authentication there will be more info and one called Moderation
  24. # Usage
  25. Syntax of the E-Mail body:
  26. absolute-link|multiple,category,strings|multiple,tag,strings\n
  27. new-absolute-link|multiple,category,strings|multiple,tag,strings\n
  28. Create a cronjob to execute the email-import.php file.
  29. # Access and "protection"
  30. If the file needs to be in a web accessible folder you can either use the provided htaccess file
  31. or active the "protection" with a secret given by URL / cli param.
  32. If you activate EMAIL_JOB_PROTECT you NEED to set an individual string in EMAIL_JOB_PROTECT_SECRET
  33. AND remove the provided .htaccess file in the job folder.
  34. cli: php email-import.php ----hiddenSouce=EMAIL_JOB_PROTECT_SECRET
  35. webaccess: email-import.php?hiddenSouce=EMAIL_JOB_PROTECT_SECRET
  36. Use the following settings in the config file:
  37. define('EMAIL_JOB_PROTECT', false); => Set to true if you want this kind of "protection"
  38. define('EMAIL_JOB_PROTECT_SECRET', 'YOUR_SOME_SECRET_STRING'); => Change to your liking