Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): adding idle and polling mechanism to imap #1196

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
df1238f
Console commands added
Shadow243 Oct 24, 2024
bea464e
Refactored cli-service structure
Shadow243 Oct 26, 2024
2a720b8
Job & Queue added with multiple drivers
Shadow243 Oct 26, 2024
bec8af8
Events & listeners, Scheduling added
Shadow243 Oct 29, 2024
3d6cfae
Adding Notifications
Shadow243 Oct 29, 2024
d8dd0fd
add Singleton Class for containerBuilder
Shadow243 Oct 31, 2024
75585dc
Refactor queue worker command & adding error handling
Yannick243 Oct 31, 2024
8dd16b5
Queue manager: dispatching jobs to queue
Yannick243 Oct 31, 2024
3269e27
Complete Database queue driver and tested in real scenario
Shadow243 Oct 31, 2024
39e5ea3
Sqs & Redis queue driver completed and tested
Shadow243 Nov 1, 2024
7cb60c2
Working on Scheduling
Shadow243 Nov 4, 2024
b49c140
Testing Scheduling
Shadow243 Nov 8, 2024
6eea27a
Refactor queue configuration and update schedule command handling
Yannick243 Nov 8, 2024
8a254a9
Testing Scheduling
Shadow243 Nov 8, 2024
dac1a73
Merge branch 'imap-idle-polling-mechanism' of github.com:Shadow243/cy…
Shadow243 Nov 8, 2024
1b03512
Scheduling Comlete, next step Notification with channels: telegram,sl…
Shadow243 Nov 8, 2024
6ae2444
Implement Channels Notifications
Shadow243 Nov 13, 2024
5a888b4
refactor(dep inj): implementation in service privider
Shadow243 Dec 2, 2024
c58dd48
feat(slack): fixed and tested with queue work
Shadow243 Dec 9, 2024
9faa6f5
feat(telegram/vonage/twilio): fixed and tested telegram with queue work
Shadow243 Dec 9, 2024
318da41
fix undefined key with queue
Shadow243 Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,34 @@ FANCY_LOGIN=false
WIN_CACERT_DIR=

JS_EXCLUDE_DEPS=

QUEUE_ENABLED=false
QUEUE_DRIVER=database

AWS_ACCESS_KEY_ID='your-aws-access-key'
AWS_SECRET_ACCESS_KEY='your-aws-secret-key'
AWS_DEFAULT_REGION=us-east-1
# AWS_SQS_QUEUE_URL='https://sqs.us-east-1.amazonaws.com/your-account-id/your-queue-name'

ENABLE_REDIS=true
REDIS_SERVER=localhost
REDIS_PORT=6379
REDIS_INDEX=1
REDIS_PASS=null
REDIS_SOCKET=/var/run/redis/redis-server.sock
REDIS_PREFIX=

TELEGRAM_BOT_TOKEN=your-telegram-bot-token
TELEGRAM_CHAT_ID=your-chat-id

TWILIO_SID=your-twilio-sid
TWILIO_TOKEN=your-twilio-token
TWILIO_FROM=your-twilio-from-number

#Nexmo is now Vonage
VONAGE_API_KEY=your-nexmo-api-key
VONAGE_API_SECRET=your-nexmo-api-secret
VONAGE_FROM_NUMBER=your-nexmo-from-number

SLACK_TOKEN=your-slack-token
SLACK_CHANNEL=your-slack-channel
33 changes: 28 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
],
"homepage": "https://cypht.org",
"license": "LGPL-2.1",
"autoload": {
"psr-4": {
"Services\\": "services/"
}
},
"authors": [
{
"name": "Jason Munro",
Expand All @@ -35,22 +40,33 @@
"docs": "https://cypht.org/documentation.html"
},
"require": {
"bacon/bacon-qr-code": "^1.0.3 || ^2.0.0",
"christian-riesen/base32": "^1.3.2",
"composer": "^2.0.0",
"php": ">=8.1",
"ext-curl": "*",
"ext-fileinfo": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-session": "*",
"composer": "^2.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep this list alphabetically sorted.

"aws/aws-sdk-php": "*",
"bacon/bacon-qr-code": "^1.0.3 || ^2.0.0",
"cboden/ratchet": "^0.4.4",
"christian-riesen/base32": "^1.3.2",
"ezyang/htmlpurifier": "^4.17",
"henrique-borba/php-sieve-manager": "^1.0",
"league/commonmark": "^2.4",
"paragonie/random_compat": "^2.0.18",
"php": ">=8.1",
"ratchet/pawl": "^0.4.1",
"symfony/console": "^6.4",
"symfony/dependency-injection": "*",
"symfony/dotenv": "^4.3 || 5.4",
"symfony/error-handler": "^6.4",
"symfony/notifier": "*",
"symfony/slack-notifier": "^6.4",
"symfony/telegram-notifier": "^6.4",
"symfony/twilio-notifier": "^6.4",
"symfony/vonage-notifier": "^6.4",
"symfony/yaml": "~6.4.3",
"thomaspark/bootswatch": "^5.3",
"twbs/bootstrap": "^5.3",
Expand All @@ -59,7 +75,13 @@
"zbateson/mail-mime-parser": "^2.4"
},
"require-dev": {
"phpunit/phpunit": "^10.5"
"phpunit/phpunit": "^10.5",
"symfony/var-dumper": "^6.4"
},
"autoload-dev": {
"psr-4": {
"Tests\\": "packages/cli-service/tests/"
}
},
"suggest": {
"ext-pdo": "To use database features, this needs to be installed",
Expand All @@ -74,6 +96,7 @@
"php": "8.1"
},
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"endroid/installer": false
}
Expand Down
Loading
Loading