Loading repository data…
Loading repository data…
PrityRastogi16 / repository
The aim of this project is to setup google and microsoft oauth to gain access to user emails. Assigning labels after reading the email context and dividing them into three categories "Interested", "Not interested" and "More information" using openAI.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The objective of this initiative is to establish OAuth integration with Google and Microsoft platforms to obtain authorization for accessing user email accounts. Following email retrieval, the system will employ OpenAI to analyze the content and classify emails into three distinct categories: 'Interested', 'Not Interested', and 'Requesting More Information'. Subsequently, automated email responses will be generated based on these classifications, utilizing OpenAI's capabilities
{
"drafts": [
{
"id": "",
"message": {
"id": "",
"threadId": ""
}
}
],
"resultSizeEstimate": 0
}
GET /api/mail/read-mail/prityss7991@gmail.com/message/18a609755b7af37c
Response:
{
"id": "18a609755b7af37c",
"threadId": "18a609755b7af37c",
"labelIds": [
"DRAFT"
],
"snippet": "Sent from Mail for Windows",
"payload": {
"partId": "",
"mimeType": "text/html",
"filename": "",
"headers": [
{
"name": "MIME-Version",
"value": "1.0"
},
],
"body": {
"size": 37678,
"data": ""
}
},
"sizeEstimate": 41906,
"historyId": "192942",
"internalDate": "1693837643000"
}
Body:
{
"from":"prityss7991@gmail.com",
"to":"surajyoti9839@gmail.com",
"label":"Interested"
}
Response:
{
"msg": "Email Sent Succesfully",
"data": {
"accepted": [
"surajyoti9839@gmail.com"
],
"rejected": [],
"ehlo": [
"SIZE 35882577",
"8BITMIME",
"AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH",
"ENHANCEDSTATUSCODES",
"PIPELINING",
"CHUNKING",
"SMTPUTF8"
],
"envelopeTime": 924,
"messageTime": 883,
"messageSize": 2491,
"response": "250 2.0.0 OK 1711967220 fb11-20020a056a002d8b00b006ecb639fa56sm1240474pfb.217 - gsmtp",
"envelope": {
"from": "prityss7991@gmail.com",
"to": [
"surajyoti9839@gmail.com"
]
},
"messageId": "<0366e940-b9f2-1029-21bf-ff8c53150a32@gmail.com>"
}
}
Body:
- Example:
```json
Body:
{
"from":"prityss7991@gmail.com",
"to":"surajyoti9839@gmail.com",
"label":"Interested"
}
Response:
Email sent successfully