A C# application for automated email processing and attachment management. It fetches new emails from Gmail, processes attachments (images and PDFs), and uploads them to Dropbox.
- Polls Gmail for new messages every 5 minutes
- Processes image and PDF attachments
- Converts images to PDF before upload
- Uploads processed files to Dropbox
- Marks emails as processed or unknown
- .NET
- Gmail API
- Dropbox API
- PdfSharpCore
- ImageSharp
- Serilog
- Gmail and Dropbox credentials are stored in configuration files.
- OAuth tokens are saved locally (
C:\fgCode\IM\token.jsonfor Gmail,C:\fgCode\IM\Dropbox\token.jsonfor Dropbox).
- Configure Gmail and Dropbox credentials.
- Build and run the application.
- The service will start polling Gmail and uploading attachments to Dropbox.
- Uses Serilog for structured logging.
- Logs errors and processing information.
MIT