posted 19 years ago
You need to clarify your requirements. Outlook is an e-mail client, which means it connects to an e-mail server to get messages.
Now, you can write your own e-mail client that connects to that server and gets messages and saves attachments and so on, using JavaMail. But you don't have to interact with Outlook to do that. You just go direct to the server, just like Outlook would. In fact people have done exactly that.
The other requirement that needs to be clarified is why you don't just use Outlook. It can save attachments perfectly well without any extra programming.