If you are tired of seeing files named 'Invoice.pdf' or 'scan001.pdf' cluttering your Downloads folder, there is a better way to handle email attachments. A new tutorial on DEV.to introduces FilesDesk, a tool that automatically saves, renames, and organizes incoming email attachments. By connecting your mailbox once, the software handles the repetitive task of filing documents, letting you focus on actual work instead of administrative cleanup.
How Watch Inbox Works
The core feature, Watch Inbox, connects to your email account via IMAP with read-only access. This means your original emails remain untouched in their current folders. When a new email with an attachment arrives, FilesDesk saves the file, analyzes its content, and renames it based on extracted details like the date, vendor, and amount. It then moves the file into a designated folder, such as 'Invoices/2026'. The system supports Gmail, iCloud, Yahoo, and any standard IMAP account.
Smart Renaming and Templates
FilesDesk offers two naming methods: Smart Rename and Templates. Smart Rename uses AI to pull out key details from mixed document types, while Templates allow for fixed patterns like '{date}_{vendor}_{amount}'. For bookkeeping, templates are often superior because they ensure consistency, which is crucial when reconciling hundreds of files. The tool also supports plain English instructions to build these templates, lowering the barrier for users who might find coding patterns intimidating.
Privacy and AI Options
Privacy is a major concern with financial documents, so FilesDesk provides three AI processing options. Users can choose Managed AI for convenience, Bring Your Own Key (BYOK) using providers like OpenAI or Claude, or Local AI using Ollama or LM Studio. The Local AI option is particularly appealing for those handling sensitive data, as it ensures no internet connection is required and no files leave the user's machine. Keys for BYOK are stored securely in macOS Keychain or Windows Credential Manager.
Key Takeaways
- FilesDesk uses IMAP read-only access to automate attachment saving and organization.
- AI or templates can rename files using ISO date formats for better sorting.
- Local AI options via Ollama or LM Studio keep sensitive financial data on-device.
- The tool pairs with Watch Folders to apply consistent naming rules across all file sources.
- A free tier with 15 AI credits is available for macOS and Windows users.
The Bottom Line
This is a practical solution for anyone drowning in digital paperwork. By automating the tedious parts of file management, FilesDesk lets you reclaim hours every month while keeping your data secure and organized.