New Plugin: Mailmagik

I have changed it for now, using the first option. Seems to work as expected.

I am pleased that it is being implemented.

If it’s not too much trouble, it would be great if the following problem could also be fixed. It is not possible to fill a column if it has a space. For example: ā€œcol:Expose printing platesā€ does not work. ā€œcol:Expose_printing_platesā€ works. That’s not so bad, but not quite so nice.

This an entirely different thing. It might require a massive redesign of the attribute parsing. But I could look at this afterward.

I dont understand the ask. Metamagik already replaces underscores for spaces, in displaying the column field name.

So, although the column name must be created usin ā€œExpose_printing_platesā€ it should be displayed as, ā€œExpose printing platesā€

It relates to the ConvertToTask emails, to place the created task in columns like ā€œWork in progressā€. Currently, this is not possible.

1 Like

I’ve created an issue for that.

I’m already close to a solution.

Ah now i understand, ill take a look if you get stumped.

1 Like

It’s almost done, but I’ll push it after we finished the body parsing.

image

1 Like

Hi all,
I’m currently setting up Mailmagik on my kanboard instance, and I managed to make it work fine when using the URL to fetchmail

but when I run the cron task from my OVH shared webserver, it exits with 255 error code, and apparently (from what I read online so far), this could be caused by wrong relative URLs in the cronjob php file.

my kanboard root folder is not named ā€œkanboardā€ so maybe that could be the issue ?

I think we need more details regarding your system and cron command.

hi @alfredb
the cron commands are calling

/prog/plugins/Mailmagik/Controller/FetchmailController.php
and
/prog/plugins/Mailmagik/Controller/EmailViewController.php

my kanboard directory name is ā€˜prog’

the php version of the server is 8.1 on MYSQL v.8.0 db

all requirements are met.

what other info can I provide to help understanding the cause of the problem ?

Seems terribly wrong. Please try

prog/cli mailmagik:fetchmail

in your crontab. The same way as your usual cron entry for Kanboard.

Or in case you want/have to use webcron, call

https://<your_server>/?controller=FetchmailController&plugin=Mailmagik&action=run&token=<your_token>

Your token to use can be found at

https://<your_server>/settings/webhook

hi Alfred, and thanks for taking some time to help me.

Tha thing is, on OVH shared hosting, the only way to add a cron task is to enter the path of a .php file :

and the user interface will not allow to enter any space, nor special character as ā€œ?ā€ or ā€œ=ā€

Accepted characters for folders are letters, numbers, and - _ . / characters. Furthermore, it is prohibited to access parent folders using …

so maybe I should create a .php file calling the webcron ?

ps : sorry, this is the first time ever I try to set up a crontask…

After digging a little deeper, I found this topic Cron jobs on OVH - #4 by creecros which mentions websites that provide free external webcron service. I might try that…

Yes, you can do that. But many of them limit the count of invocations per day. It might be a serious limitation for this use case.

I found this page.

image

If this doesn’t work due to the additional argument, I’d try to create a PHP file in the Kanboard root folder (prog) and insert this instead.

Hi,

that’s the page I was showing you (but in French), so that’s definitely the place for OVH shared hosting users, but the form doesn’t accept special characters, as I was saying, so the additional argument isn’t possible.

I tried some of the free external services, hoping to have them run the webcron at scheduled time (even twice a day woud have been enough for my use case, which is quite specific since we don’t use Kanboard for support tickets or anything of the kind, but for keeping track of music bands proposals sent through a form on our website…)

But the external service fails as the webcron URL requires to be logged in, in order to run…

Redirection detected
It looks like your URL redirects to another URL. cron-job.org does not automatically follow redirections. In most cases, updating the job URL to the redirection target resolves this issue.
Redirection target: https://MY_DOMAIN/login

That’s what I was thinking of, but I can’t figure out what code the PHP file must contain ?? (Really sorry to be such a noob here…)

Please try to insert and use the following, in this order:

  • cli mailmagik:fetchmail

If this doesn’t work, make a copy of the file cli to cli.php.

  • cli.php mailmagik:fetchmail

If it still doesn’t work, create and use a file named cronjob.php with the following content.

<?php
shell_exec('./cli mailmagik:fetchmail');
  • cronjob.php

This seems to be a bug. I’ll see…

thanks for investigating, and thanks again for taking the time to help me set this up.

as far as the OVH cron GUI is concerned, there’s no way I can pass an argument so I tried the cronjob.php file containing the following code

<?php
shell_exec('./cli mailmagik:fetchmail');

and tested it directly in my web browser, with no success.
(I’m awaiting the cron task to be run by the server in order to see if this changes anything…)