I would welcome it if alfred were also there. Like me, he is from Switzerland and I could communicate my wishes better - in my mother tongue: German
OK, I’m in. But for the next 4 weeks I’m in Spain, with limited resources and time.
Unless he is in a rush, do you want to just wait till your back from Spain. Trust me, im in no hurry here.
I’m not rushing, it’s my vacation.
I would prefer to wait.
While you are on vacation, i decided to at least experiment and hopefully get us a good starting point.
I added a basic version to the Task Email feature, that will parse data out of the message that we want to update.
example message:
Testing my email for data parsing!
Please check that it works.
&@date_due="11/24/2024"@&
$@cost="$100"@$
&@owner_id="creecros@gmail.com"@&
Thanks,
Craig
I am differentiating “Task” fields and “MetaMagik” fields by encapsulating the data with “&@…@&” and “$@…@$” respectively.
Then the parse picks it out and creates a key=>value for each bit of data,:
then by clicking on them, it will update the database with those values. It runs through the vaildator to validate the data, before updating. and for “owner_id” or “creator_id” it will check if it is an intger or email and convert accordingly.
So, all in all, it works, and this is definately doable, and we will have a decent starting point for when you get back.
That looks very promising. I am confident that I will find a solution to my request.
Well, I’m back home.
Im ready when you are. Should probably confirm this guy still wants it, and details.
also, just want to use gituhb? or something else?
I think this depends on the requestor, the options he has.
I’m open to anything, I have GitHub, Matrix, XMPP and also the Forum on Discord.
But of course, we can remain here. But in this case, We should create a dedicated topic.
I’m ready to start. Did you push your experimental code somewhere, to take a look at it?
Nah, i never did. I can tho. Ill push it to a branch today when i get a chance.
Did you hear back from the requester?
Yes, I had a phone call with him yesterday. He is still highly interested.
Awesome, wanted to make sure we didnt waiste our time. I got a few things i need to take care of for work, and then i can push it.
pushed the code to new branch, test_branch
.
I was messing around a bit to get familiar with the code.
But so far, I do not fully understand the logic behind updating a meta field, TBH.
Currently, if I set a field via email, all other meta fields are wiped out, set to ‘’.
Ill do a double take and look at it tonight. Maybe i missed something. I was using 1.2.35 kb when i wrote it.
So do I, the 1.2.36 was broken when I tried it. (Commenting function)
Its highly plausible, i remember i didnt test with anything but the one field i was editing.
I havent tested yet, but now that i look at the code, thats probably accurate.
You wont wrap your head around thr meta part if all you look at is the mailmagik code. I was just using the native metamagik modification model to do the update, but it expects all the metamagik fields to be in $value, and i only sent it the one i was focused on.
So either we feed it all the values, or make a new method for update of just 1 value.
The first option is probably the simplest, and wont require much effort, and keeps all the code updates in mailmagik.