# Add a task when I flag an email

**URL:** <https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001>\
**Category:** Get Help\
**Created:** [June 17, 2025, 5:24pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001 "2025-06-17T17:24:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiammarco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgiammarco/32/4033_2.png) [@mgiammarco](https://community.fibery.io/u/mgiammarco)\
**Post date:** [June 17, 2025, 5:24pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/1 "2025-06-17T17:24:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [June 17, 2025, 7:04pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/2 "2025-06-17T19:04:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [June 17, 2025, 8:07pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/3 "2025-06-17T20:07:37Z")

</div>

> [@mgiammarco](#):
>
> There is no flags field in imap sync unfortunately.  
> How can I do it?

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

---

<div class="post-metadata">

**Author:** ![mgiammarco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgiammarco/32/4033_2.png) [@mgiammarco](https://community.fibery.io/u/mgiammarco)\
**Post date:** [June 26, 2025, 8:07am UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/4 "2025-06-26T08:07:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [June 26, 2025, 12:48pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/5 "2025-06-26T12:48:22Z")

</div>

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](https://stackoverflow.com/questions/5107935/get-starred-messages-from-gmail-using-imap4-and-python) [2](https://developers.google.com/workspace/gmail/imap/imap-extensions).

**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](https://stackoverflow.com/questions/36111927/unpin-or-remove-star-on-gmail-message-using-the-api) [4](https://developers.google.com/workspace/gmail/api/guides/labels).
- The API’s label management documentation lists `STARRED` as a system label that can be applied or removed manually [4](https://developers.google.com/workspace/gmail/api/guides/labels).

---

<div class="post-metadata">

**Author:** ![mgiammarco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgiammarco/32/4033_2.png) [@mgiammarco](https://community.fibery.io/u/mgiammarco)\
**Post date:** [June 26, 2025, 3:21pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/6 "2025-06-26T15:21:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [June 26, 2025, 4:48pm UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/7 "2025-06-26T16:48:10Z")

</div>

> [@mgiammarco](#):
>
> Sorry no gmail standard imap

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.

---

<div class="post-metadata">

**Author:** ![mgiammarco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mgiammarco/32/4033_2.png) [@mgiammarco](https://community.fibery.io/u/mgiammarco)\
**Post date:** [June 30, 2025, 9:45am UTC](https://community.fibery.io/t/add-a-task-when-i-flag-an-email/9001/8 "2025-06-30T09:45:18Z")

</div>

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