Powered by Nodemailer and Puppeteer, StudentVue Mailer is an automation program that will forward all of your StudentVue mail to your preferred personal inbox.
- Node.js
- A StudentVue Account
- A Gmail Account
- Windows OS (optional, to install as service)
First, StudentVue Mailer will log into your account and temporarily save your session cookies. The mailer will then use these credentials to make fetch requests to the StudentVue mail service.
By referencing the date in bucket.json, StudentVue Mailer will determine if there is any new mail. If new mail is found, StudentVue Mailer will fetch the content for each one and forward them to the destination emails specified in the config.json
file.
The forwarded email will include extra information about the email including the sender, the send time, the sender organization, and the read/sent count.
*This service can only be installed on Windows. However it can still be used just like any other Node application.
- Run
npm install
- Add credentials to the
config.template.json
, then rename it toconfig.json
- If on Windows, Run
node install
in the root directory - If not, run
node index
- Send a StudentVue mail to yourself to see if it's working! (It may take a while, depending on your update interval)
*This only applies to Windows users that installed the mailer as a service
- Run
node uninstall
in the root directory. - After it is finished, run
node uninstall
again for a confirmation
{
"synergy-id": "SYNERGY USERNAME",
"synergy-password": "SYNERGY PASSWORD",
"gmail-user": "GMAIL SERVICE EMAIL",
"gmail-app-password": "GMAIL SERVICE PASSWORD",
"destination-emails": ["DESTINATION EMAILS"],
"update-interval": 1800000,
"start-on-interval": false
}
To obtain your gmail-app-password
, visit (myaccount.google.com)[myaccount.google.com], navigate to the "Security" tab, and underneath the "Signing in to Google" section, click "App passwords". Then, generate an app password for "Gmail" and paste it into the gmail-app-password
field in the config.json
file.
*You will need to have 2FA activated on your Google account to create an app password.
This is the interval, in milliseconds, that the mailer will check for new messages.
If this is true, then the mailer will check on the interval defined on the hour.
For example, if the update-interval
was set to 1800000 (30 minutes), then the mailer will check for mail at XX:00 and XX:30
*This feature has not been thoroughly tested and may break the mailer at certain intervals.