You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
I am trying to setup this nice service. I followed all instructions - and created an (empty) folder /var/spool/mail/telegram. After firing up systemd service and look at status of email-to-telegram I see the message above (but the service is running). I copied a message to the folder but nothing happens API token and chat_id are set correctly.
I solved it by myself. The explanation in the config.ini was misleading me. The path should point to the mailbox-file... After changing this everything works like a charm.
I am trying to setup this nice service. I followed all instructions - and created an (empty) folder /var/spool/mail/telegram. After firing up systemd service and look at status of email-to-telegram I see the message above (but the service is running). I copied a message to the folder but nothing happens API token and chat_id are set correctly.
Here the complete systemd-status messages:
`Mai 22 10:53:59 myserver email-to-telegram[914750]: event_handler.consume_emails()
Mai 22 10:53:59 myserver email-to-telegram[914750]: File "/usr/lib/python3.9/site-packages/email_to_telegram/email.py", line 18, in consume_emails
Mai 22 10:53:59 myserver email-to-telegram[914750]: emails, delete_count = get_emails(self.mail_path)
Mai 22 10:53:59 myserver email-to-telegram[914750]: File "/usr/lib/python3.9/site-packages/email_to_telegram/utils.py", line 9, in get_emails
Mai 22 10:53:59 myserver email-to-telegram[914750]: mbox = mailbox.mbox(mail_path)
Mai 22 10:53:59 myserver email-to-telegram[914750]: File "/usr/lib/python3.9/mailbox.py", line 850, in init
Mai 22 10:53:59 myserver email-to-telegram[914750]: _mboxMMDF.init(self, path, factory, create)
Mai 22 10:53:59 myserver email-to-telegram[914750]: File "/usr/lib/python3.9/mailbox.py", line 584, in init
Mai 22 10:53:59 myserver email-to-telegram[914750]: f = open(self._path, 'rb+')
Mai 22 10:53:59 myserver email-to-telegram[914750]: IsADirectoryError: [Errno 21] Is a directory: '/var/spool/mail/telegram'`
The text was updated successfully, but these errors were encountered: