All, I am attempting to export a listing of the contents of Exchange 2003 mailboxes to a CSV file. Specifically, I am trying to retrieve the folder path, subject, size, received time, sent time (optional), and message id (also optional) of each message in a user's mailbox.
I have this working in Exchange 2007 and above using the Exchange Web Services API, but this isn't applicable to 2003.
WebDAV is not enabled in the environment and I'm currently working to verify if POP3/IMAP is available. Assuming it isn't, is there another way to do this I'm missing?
You haven't provided much information about what access you have to the system or mailbox that you are trying to access. If you are the exchange admin for this server, it is probably easiest to add read access for you to the mailbox in question and use exmerge to make a copy of it to another account or if you happen to have Access installed as part of your Office suite, you can use "Get External Data" in Access to suck email in from Outlook, and the date field can be included. From Access you can dump the table into Excel (or csv) very simply.
Sadly, the exchange web services API does NOT work with exchange 2003 or SBS.
Since this is 2003 you are talking about, you could use WMI or powershell to do what you are thinking of.
Brian Desmond has a WMI script at his site that can pull this kind of information. This script will dump quite a bit of useful information about each mailbox on a particular server or set of servers to a CSV file which you can in turn import into Excel and create a spreadsheet from. I typically would import data into a SQL Server table using DTS (Data Transformation Services) if I needed to do alot of computation or data mining. Excel gets very slow when doing tasks that really require an index over a lot of data.
Note: The script uses WMI to get this information so Exchange 2003 is required. Only Exchange View Only level permissions are required in Active Directory, however you will likely need local Administrator privleges on each Exchange server. I don't have an Exchange 2003 server readily available to test and he was running as an Exchange Full Admin when he originally wrote this script. So use at your own risk! Taken from: http://briandesmond.com/blog/script-to-dump-exchange-mailbox-info-to-spreadsheet-csv/