I am using Kaiten/K-9 Mail to share incoming email data with Tasker. If there is a hit on the "sender" a task takes a couple of pics, gets location and emails pics and location back to the sender. All works just fine IF there is only one email message to retrieve. Things get dicey if there are multiple messages to retrieve from the Inbox. That is to say an %EFROM might be combined with the %ESUBJ of a different message and vice-versa. In an attempt to maintain the integrity of the incoming data I created a profile/task that simply generates a log file with %EFROM and %ESUBJ data thinking I could then proceed with the pic/location/emailing in a separate task. The simple log file also can be corrupted.
I have tried pushing vs. polling an account and that seems to help but it's not a 100%. I am presently playing with MailDroid hoping that I might be able to utilize some of its rules functionality to deal with the incoming email identification and organization.
Any other suggestions as to what I might tweak in Tasker or other approaches to help maintain data integrity would be apprepiciated. I would prefer solutions which would not require me to root the phone. Running this on a Verizon Samsung Galaxy S III (Android 4.1.2).
Thanks
Matt
Good idea (the Variable Set event not the state BTW)
Pent
Created a Profile that responds to any K-9 email received.
Which performs a task which includes an
Array Push with a variable %EMAILMSG and a Value of %evtprm(:)
K-9 Mail returns the variables: Email From,Email Subject, and the Kaiten/K-9 Mail Account Name for which the message is intended for each message received.
%EMAILMSG1
%EMAILMSG2
%EMAILMSG3
And so on..
I "stuffed" :-) my Inbox with approx 15 messages and the data integrity remained intact using this approach to grab data.
Thanks again.