mail2wordpresspost_cfg.py 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. # https and htaccess/htpasswd login using user:pass@host is also possible
  2. WORDPRESS_URL = "http://wordpress.server/xmlrpc.php"
  3. # username used to login into wordpress
  4. WORDPRESS_USER = 'emailpost'
  5. # password used to login into wordpress (plaintext)
  6. WORDPRESS_PASS = '$jFKno%%u!JCKa!1c*Erc@FT'
  7. # the status of the post which would be created
  8. POST_DEFAULT_STATUS = 'publish'
  9. # the default category of the new post
  10. POST_CATEGORIES = [ 'allgemein' ]
  11. # your tags that would be applied to the new post
  12. POST_TAGS = [ 'Nele' ]
  13. # HTML based image url with link template to include images to the new post
  14. DESCRIPTION_IMAGE = '<a href="IMAGE_URL" target="_blank" rel="attachment wp-att-IMAGE_ID><img class="wp-image-IMAGE_ID size-medium aligncenter" src="IMAGE_URL" alt="IMAGE_FILENAME" width="169" height="300" /></a>'
  15. # set to 0 if not desired, otherwise set image number
  16. USE_EMAIL_IMAGE_AS_THUMBNAIL = 0
  17. # If set to true the images are set beyond the post text
  18. POST_TEXT_BEYOND_IMAGES = True
  19. # allowed file types that are allowed to put at a post
  20. ALLOWED_MIMETYPES = [ 'image/jpeg', 'image/png' ]
  21. # a list of email adresses which are allowed to create posts
  22. ALLOWED_EMAIL_FROM = [ 'mq@somedomain.de' ]
  23. # TODO
  24. # configure input directory
  25. # configure temporary directory