Collecting iTunes receipts since 2009
How much money have you spend in the iTunes Store? This Perl hack collects all email receipts you received from the iTunes Store and summarizes your expenses in a time series.
Going through your mail receipts is a more reliable way to monitor your expenses than the method of the well-done App Store Expense Monitor: You really get the actual amount of money you spent on the store based ony the actual receipts sent to you. It should work with German and English receipts and the currencies Euro, Swiss Francs and Dollars.
Feel free to contact me, if you have any questions or feedback.
from:(firstname.lastname@example.org) subject:(Ihre Belegnummer)(for German receipts) to collect your receipts in a folder.
YAML). CPAN is your friend.
Satisfy all the above dependencies.
Setup a YAML file and fill in the details, see sample. Specify your IMAP server, username and password, the name of the IMAP folder and the path where the HTML file and the datafile should be stored.
Run the script
perl iTunesStoreLog.pl sample.yml. You may have to wait a while until everything is set.
Look at the generated HTML file
/path/for/html/and/datafile/index.html and wonder where your money has gone.
If you want to have the HTML file updated regularly, put an appropriate entry in your crontab (or similar). Running daily should suffice.
Copyright (C) 2009, email@example.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.