Add a task when I flag an email

Hi,
I would like that, when in my imap client I am reading email, and I flag one as important, or urgent or something similar, I can launch a rule in Fibery to add it as a new task.
There is no flags field in imap sync unfortunately.
How can I do it?
Thanks,
Mario

Could you use a GMail label instead of a flag? Do the Labels show up in Fibery?

For IMAP, copying or moving an email to a folder is the equivalent of adding a label, I believe.

Sorry no gmail standard imap.
My workflow is: I receive a mail on mobile or on pc, if it is a todo I quickly flag it (sorry but moving the email in a folder in a mobile is very slow to do) and it becomes a task in fibery.

Research says:

IMAP Access

  • Gmail’s “Starred” status maps directly to the IMAP \Flagged keyword.
  • You can determine if a message is starred by checking for the \Flagged flag on the message.
  • To search for starred messages, use the FLAGGED search criterion. For unstarred, use UNFLAGGED.
  • Gmail provides a special IMAP folder, typically [Gmail]/Starred, which contains all starred messages. The exact folder name may vary by locale, but it will always have the \Flagged special-use attribute in the IMAP LIST response 1 2.

Gmail API Access

  • The Gmail API exposes “starred” status as the system label STARRED.
  • You can check if a message or thread is starred by inspecting its label list for STARRED.
  • To add or remove a star, use the messages.modify() method with addLabelIds or removeLabelIds set to STARRED 3 4.
  • The API’s label management documentation lists STARRED as a system label that can be applied or removed manually 4.

Thank you but the real problem I think is that I flag messages after they arrive in the mailbox.

Does this mean you aren’t using Gmail?
If you’re mobile email client has the option to ‘star’ an email, it probably is equivalent to adding a star label, which should mean that this label shows up as a sync option in your Fibery integration.

Never mentioned gmail, I will check for star label thanks.