creecros / Mailmagik

Kanboard Plugin - Send emails to Kanboard and convert to tasks or comments
MIT License
22 stars 3 forks source link

Emails not fetching #33

Closed fernandodiacenco closed 1 year ago

fernandodiacenco commented 1 year ago

Hello, I'm using a brand new install o Kanboard 1.2.30, on Debian 12 running Apache, PostgreSQL and PHP 7.4

Kanboard its the only thing running on this server, and its installed at /var/www/html/kanboard

All modules appear to be installed correctly, as shown by php -m

[PHP Modules]
calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext hash iconv imap json ldap libxml mbstring openssl pcntl pcre PDO pdo_pgsql pgsql Phar posix readline Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib

[Zend Modules]
Zend OPcache

Mailmagik plugin v1.2.2 installed without issues and is configured, the automatic actions are configured as well

When I run /var/www/html/./cli mailmagik:fetchmail it appears to run correctly and finishes without error, apache2 don't show any error

Yet, nothing happens, the emails are not marked as read or deleted depending on config, no tasks are created on the board

I tried with a Microsoft account and a brand new Gmail account with imap activated, and app password set, neither the standard account password or the app password worked

I suspect something happens when Mailmagik tries fetching the emails and fails, but I don't know where are the log files for that operation, where I can find the logs?

Thank you.

creecros commented 1 year ago

Does the Task email feature work?

fernandodiacenco commented 1 year ago

Does not seem to work, the automatic actions are set but nothing happens

image

image

The only task shown is one I created manually as a placeholder

image

Emails sent as test as seen from gmail

image

creecros commented 1 year ago

You did not answer my question.

I was referring to the Task email function. Not the auto conversion features.

Confirm that either works or doesn't work, and it will be easier to assist you.

The Readme should help you on that feature. image

creecros commented 1 year ago

Also, im not sure you parse option, but if you are parsing via subject line, your subject is incorrect

fernandodiacenco commented 1 year ago

Ah its working if you set up with the app password instead of the standard account password, clicking on task email it fetches and gives the option to convert to task or email, some emails with signatures comes in pure text form

image

So If I understand correctly either the subject or the TO field depending on the parsing options need to be exact? I can't have for example an email support@company and any emails fetched from that account going to project "support" similar to a ticketing system?

creecros commented 1 year ago

Must be as it is in the readme.

When using the TO: option, see examples below:

to send an email directly to a task: Task#1<myemail@email.com>
to send an email to a project for task conversion: Project#1<myemail@email.com>
to send an email to a task for comment conversion: CommentOnTask#1<myemail@email.com>
When using the SUBJECT: option, see examples below:

to send an email directly to a task: [Task#1]  should appear at the start of the Subject
to send an email to a project for task conversion: [Project#1]  should appear at the start of the Subject
to send an email to a task for comment conversion: [CommentOnTask#1]  should appear at the start of the Subject
note: the action must be in brackets
creecros commented 1 year ago

The brackets are a must as well, if using Subject as parse.

alfredbuehler commented 1 year ago

Ah its working if you set up with the app password instead of the standard account password