1d1976ef22
3807 auto creation of contact when importing emails ( #3888 )
...
* Add CreateContactService to messaging services
* Add logic to create a contact if it doesn't exist
* Add name
* Improvements
* contact creation working
* fix bug
* Add IsPersonEmailService to check if an email is personal or not
* filter is working
* improve filter
* create companies and people
* Refactor createContactFromHandleAndDisplayName to createContactAndCompanyFromHandleAndDisplayName
* improve regex
* reorganizing services
* updates
* reorganize folders
* wip
* use transaction
* wip
* wip
* wip
* batch queries
* almost working
* working
2024-02-13 14:24:28 +01:00
c13e55a753
Fix bull-mq retry option and exceptions not being captured for jobs ( #3905 )
...
* Fix bull-mq retry option
* fix exception inside worker
* add logs
* fix after review
2024-02-12 15:12:52 +01:00
0096e60489
[messaging] add cronjob for workspaces messages partial sync ( #3800 )
...
* [messaging] add cronjob for workspaces messages partial sync
* run cron every 10 minutes
* use logger
2024-02-05 17:15:11 +01:00
729e2dc651
[Messaging] Delete empty threads after message deletion import ( #3716 )
...
* [Messaging] Delete empty threads after message deletion import
* fix
2024-02-02 18:13:41 +01:00
142affbeea
[messaging] reorder messages desc to asc ( #3755 )
2024-02-01 15:28:00 +01:00
e787b4e3b8
[messaging] add more logs to gmail full-sync ( #3728 )
2024-01-31 17:03:11 +01:00
64b2ef3dc2
Delete message when no more association ( #3701 )
...
* Delete message when no more association
* remove unused injections
* rename methods
* fix after review
2024-01-30 17:58:36 +01:00
d66d8c9907
[Messaging] Gmail Full sync pagination ( #3664 )
2024-01-29 11:57:54 +01:00
6d997edabb
[Messaging] Fix duplicate messageChannelMessage ( #3616 )
...
* [Messaging] Fix duplicate channelMessageChannel
* add messageChannelMessage check before querying gmail
* rename messageChannelMessage to messageChannelMessageAssociation
2024-01-25 14:15:57 +01:00
dc7fccb0a8
Merge messages and threads #1 ( #3583 )
...
* Merge messages and threads
* rename messageChannelSync to messageChannelMessage
* add merge logic
* remove deprecated methods
* restore enqueue GmailFullSyncJob after connectedAccount creation
2024-01-23 17:28:14 +01:00
5a61e34f4c
3239 create a command to do a partial sync with the gmail api using the historyid ( #3405 )
...
* create utils service
* getLastSyncHistoryId
* getHistory
* add historyTypes messageAdded and messageDeleted
* getMessageIdsAndThreadIdsNotInDatabase
* wip
* fix messageThreadId null
* no need to fetch threads anymore
* get messagesAdded in partial sync
* adding errors
* save lastSyncHistoryId
* improve
* renaming
* create partial sync job
* improve partial sync
* adding messages with partial sync is working
* now adding messages with partial sync is working
* deleting messages and empty threads is working
* wip
* wip
* fix bug to delete threads
* update partial sync to cover edge cases
* renaming
* modify ambiguous naming
* renaming
2024-01-12 17:46:55 +01:00