# Maintainer: Mickael "PAPAMICA" Asseline # Update: 2022-06-28 #& type: 3 #& title: email2pdf #& description: Any unread email that does not have an attachment will be converted to a pdf and then emailed to the address you specify. #& note: Website: Github.com #& categories: SelfHosted, PAPAMICA #& platform: linux #& logo: https://img.papamica.com/logo/email2pdf.png #% SERVICE: Name of the service (No spaces or points) [email2pdf] #% IMAP_SERVER: IMAP server (Exemple: mail.infomaniak.com) [mail.infomaniak.com] #% IMAP_USERNAME: IMAP Username #% IMAP_PASSWORD: IMAP Password #% IMAP_FOLDER: Mail folder to inspect (Exemple: PAPERLESS) [PAPERLESS] #% SMTP_SERVER: SMTP server (Exemple: mail.infomaniak.com) [mail.infomaniak.com] #% SMTP_PORT: SMTP port (Exemple: 587) [587] #% SMTP_TLS: SMTP TLS (True/False) [True] #% MAIL_SENDER: Mail sender #% MAIL_DESTINATION: Mail destination #% INTER_RUN_INTERVAL: Run interval (in seconde) [300] #% HOSTS: List of hosts added to /etc/hosts (Semicolon separated) [127.0.0.1 tracking.paypal.com] # Work with Portainer version: "3.8" services: email2pdf: image: ghcr.io/rob-luke/emails-html-to-pdf:latest container_name: $SERVICE environment: - IMAP_URL=$IMAP_SERVER - IMAP_USERNAME=$IMAP_USERNAME - IMAP_PASSWORD=$IMAP_PASSWORD - IMAP_FOLDER=$IMAP_FOLDER - SMTP_URL=$SMTP_SERVER - MAIL_SENDER=$MAIL_SENDER - MAIL_DESTINATION=$MAIL_DESTINATION - INTER_RUN_INTERVAL=$INTER_RUN_INTERVAL - SMTP_PORT=$SMTP_PORT - SMTP_TLS=$SMTP_TLS - HOSTS=$HOSTS - WKHTMLTOPDF_OPTIONS={"load-media-error-handling":"ignore"} restart: unless-stopped labels: - "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater