# Does email/IMAP support threading? If not, will it ever?

**URL:** https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138
**Category:** Get Help
**Tags:** email-integration
**Created:** [October 23, 2021, 5:51pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138 "2021-10-23T17:51:18Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Oshyan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oshyan/32/11431_2.png) [@Oshyan](https://community.fibery.io/u/Oshyan)
#### Post date: [October 23, 2021, 5:51pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/1 "2021-10-23T17:51:18Z")

</div>

I’m not able to get the email integration working at the moment, and I don’t find any mention of this in the docs (might want to add this there once answered 😄). So I thought I’d ask here:

Does the email integration support “threading”? (grouping of messages on a single topic/chain of replies) If not, does this mean that e.g. every new reply to an email thread will create a new Entity? This seems rather… non-ideal. For me I think I’d actually prefer if it worked like the Discourse integration currently does, and simply updated the Rich Text field with the full contents of the email thread whenever a new message came in.

If threading is not supported, is there any suggested approach to make it more manageable to deal with email in Fibery?

I’m hoping that this will be solved based on the discussion in [“Conversations” for integrations / Email integration](https://community.fibery.io/t/conversations-for-integrations-email-integration/1721) and the fact that it is being considered during the Blocks planning and implementation process.

---

<div class="post-metadata">

### Author: ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)
#### Post date: [October 25, 2021, 8:46am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/2 "2021-10-25T08:46:51Z")

</div>

Hi, @Oshyan

Thanks for asking. We are going to add threading support after blocks implementation in Fibery. Unfortunately no workarounds are coming to my mind as alternative to handle it right now.

Thanks,  
Oleg

---

<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: [July 21, 2023, 7:29pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/3 "2023-07-21T19:29:24Z")

</div>

@Oleg,  
Should we still expect to have thread/conversation support for GMail/IMAP integrations in Fibery?

---

<div class="post-metadata">

### Author: ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)
#### Post date: [July 22, 2023, 8:37am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/4 "2023-07-22T08:37:39Z")

</div>

Hi, @Matt_Blais

That is in our plans. Unfortunately we can’t tell exactly when it will be implemented.

Thanks,  
Oleg

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [August 22, 2023, 1:24pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/5 "2023-08-22T13:24:18Z")

</div>

just bumping this if there is any development 🙂

someone posted that they had programmed a solution with stripping the RE: and then grouping by name or something, but i cannot find it. also wondering if that is something that breaks horribly when sync updates all fields again?

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [August 22, 2023, 1:26pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/6 "2023-08-22T13:26:44Z")

</div>

i dont even know if this is something that exists or how to even name this … but a sorting that is begin to sort from the last character (right to left) would be a “workaround” … (which sparks the question if you have support for languages that are right to left …)

---

<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: [August 22, 2023, 1:54pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/7 "2023-08-22T13:54:44Z")

</div>

> [@dukevannori](#):
>
> someone posted that they had programmed a solution with stripping the RE: and then grouping by name or something, but i cannot find it. also wondering if that is something that breaks horribly when sync updates all fields again?

I don’t know if it got posted ever, but I have previously experimented with stripping the RE: FW: etc. from the message subject using regex.  
It is [potentially quite complicated though](https://stackoverflow.com/questions/16395814/removing-re-and-alikes-from-email-subject-using-regex-class), because different email clients and different languages give prefixes with a variety of formats.

However, if you get such a field working, there’s no reason to think it will break with a sync - you can add fields to an integration database without affecting the fields that are being synced.

> [@dukevannori](#):
>
> a sorting that is begin to sort from the last character (right to left) would be a “workaround”

If all you wanted to do was sort messages so that ones with the same subject (minus the Re: bits) then reversing the string would be a solution, but it wouldn’t really create a thread. For that, you would ideally need to use an auto-relation that linked all emails to others with the same fundamental subject.

> [@dukevannori](#):
>
> which sparks the question if you have support for languages that are right to left

We don’t have any specific localisation support. Of course, users can choose to name their databases however they like (with some minor restrictions).

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [August 23, 2023, 11:28am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/8 "2023-08-23T11:28:27Z")

</div>

> [@Chr1sG](#):
>
> I don’t know if it got posted ever, but I have previously experimented with stripping the RE: FW: etc. from the message subject using regex.  
> It is [potentially quite complicated though](https://stackoverflow.com/questions/16395814/removing-re-and-alikes-from-email-subject-using-regex-class), because different email clients and different languages give prefixes with a variety of formats.

for this you would work within a formula field or write an automation with a script and then add that self-relation looking for same name of field, correct?

would that be something that an AI could solve as well? or would that be a bit too much in regards of cost

I was wondering if google is tagging these msgs somehow as replies in their API to get a read out of that … ( i guess there is more to this threads connections than just the Subject field, or inst it?)

---

<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: [August 23, 2023, 11:37am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/9 "2023-08-23T11:37:59Z")

</div>

> [@dukevannori](#):
>
> for this you would work within a formula field or write an automation with a script and then add that self-relation looking for same name of field, correct?

If it were me, I would use a formula field to extract the fundamental subject from the name field, and then I would use auto-relation to link messages together based on them having the same fundamental subject and the same sender.

> [@dukevannori](#):
>
> would that be something that an AI could solve as well? or would that be a bit too much in regards of cost

It might be possible, but AI is currently rather unreliable/untrustworthy, so I wouldn’t be confident that it had done its job correctly.

---

<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: [August 23, 2023, 12:53pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/10 "2023-08-23T12:53:38Z")

</div>

The other, simpler, solution would be to adjust the Email integration to include the email headers as a synced field, or at least those headers that are used for thread ID.

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [August 23, 2023, 1:12pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/11 "2023-08-23T13:12:17Z")

</div>

> [@Matt\_Blais](#):
>
> The other, simpler, solution would be to adjust the Email integration to include the email headers as a synced field, or at least those headers that are used for thread ID.

is that something a user can do or does fibery need to do that?

> [@Chr1sG](#):
>
> If it were me, I would use a formula field to extract the fundamental subject from the name field, and then I would use auto-relation to link messages together based on them having the same fundamental subject and the same sender.

this is the formula I ended up using: `Trim(ReplaceRegex(Lower(Name), "^.*(?:re:|aw:|fwd:)", ""))`

it changes everything to lower case and then looks for the last occurence of either re:, aw: or fwd: and gets rid of that. (chatgpt helped with the regex)

then i made a relation many-to-many with the auto match on the formula field.  
ultimately adding a feed-view of the related msgs to the view and sorting by date.

awesome!

… now how to strip the “quoted” parts of the msgs … (it never stops hahaha … )

---

<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: [August 23, 2023, 2:27pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/13 "2023-08-23T14:27:43Z")

</div>

> [@dukevannori](#):
>
> is that something a user can do or does fibery need to do that?

Fibery would need to add that.

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [September 1, 2023, 3:48pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/14 "2023-09-01T15:48:26Z")

</div>

my integration of the “strip” field (that gets rid of all the re) works great … until the same title is there from two different mail-chains … any way of adding a filter that is matching if an email is either from or to the same person …?

the feed-view can not be filtered by formula … so i dont know how to do this on a dynamic end …

---

<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: [September 1, 2023, 4:49pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/15 "2023-09-01T16:49:18Z")

</div>

> [@dukevannori](#):
>
> any way of adding a filter that is matching if an email is either from or to the same person …?

Well, assuming that for every message you’re either the sender or the recipient, you could create a formula field which gets the other field.  
I.e. if the Message is To dukevannori then return the From email, and vice versa.  
Then you can add matching on this formula field to your auto-linking.  
However, the To field can actually theoretically contain multiple people, so it’s not infallible. You can just pick the first listed name, but there’s a small chance that you’ll miss a match.

---

<div class="post-metadata">

### Author: ![dukevannori](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dukevannori](https://community.fibery.io/u/dukevannori)
#### Post date: [September 1, 2023, 6:05pm UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/16 "2023-09-01T18:05:05Z")

</div>

i always make the mistake that I think there is some shortcut 😉 but it’s just adding some more fields to make the validations. easy! 🤔🙃

i guess the chance of both the banner missing and the title being the same is quite low. i take it. until you make some internal magic with the thread stuff 😉

thanks! have a great weekend

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [September 20, 2024, 6:03am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/17 "2024-09-20T06:03:48Z")

</div>

Threads are now supported

> [@Sep 5, 2024 / dashing\_away Updated Entity View Header & Go-to navigation, Reorder rules & buttons, Lock Whiteboard](https://community.fibery.io/t/sep-5-2024-updated-entity-view-header-go-to-navigation-reorder-rules-buttons-lock-whiteboard/6598):
>
> This release is dedicated to polishing and small improvements in many areas. metal Updated Entity View Header Entity View header was updated to match new Views headers released last week. Multiple Entity Views switcher is more visible, panel navigation is moved to the right, and you can jump to space fron any entity with a single click. dash Go-to navigation from Entity View We’ve added a Go-to navigation on Entity View (find \>\> icon in the top right corner). You can quickly jump…

---

<div class="post-metadata">

### Author: ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)
#### Post date: [September 20, 2024, 6:04am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/18 "2024-09-20T06:04:53Z")

</div>

And you can even Reply from Fibery now

https://www.loom.com/embed/1bf61de02ece45bca8f7c6847ff271af?sid=2a842845-c8c1-42a5-869f-73c924a7736c

---

<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: [September 20, 2024, 7:32am UTC](https://community.fibery.io/t/does-email-imap-support-threading-if-not-will-it-ever/2138/19 "2024-09-20T07:32:39Z")

</div>


