0
I use Buxfer.com app for money management. This service allows to report expenses by sending an email to a special, private email address assigned to user by Buxfer.
The format required to report an expense, income or transfer is:
<description> [+]<amount> [tags:<tags>] [acct:<account>] [from:<account>] [to:<account>] [date:<date>] [status:<status>] [memo:<memo>]
Elements in [squared brackets] are optional. Text can be written in title field or in message content.
Examples:
coffe 5.45
The simplest example with minimum information required to process the request. Expense: 5.45 from default account, description: "coffee".
coffee 5.45 tags:drinks,coffee acct:amex
Expense: 5.45 on coffee from 'Amex' account, attached tags: 'drinks' and 'coffee'
Pay check +6952.32 status:pending
Income: a pay check of 6952.32. The check is yet to clear
ATM withdrawal 200 from:BoA Checking to:Cash
Transfer: withdrew 200 from a Bank of America ATM into wallet
After each transaction I receive e-mail notification from bank. The sample e-mail looks like this:
from: info@equabank.cz
to: [myemail]@gmail.com
topic: Payment card transaction
Dear Mr. [Surname],
on 05.11.2017 at 10:08 a transaction was performed on your payment card in the amount of 536.80 CZK. Payment detail: KOSIK RETAIL S.R.O.>PRAHA 9 CZ.
For more information, please visit your internet banking.
Equa bank
[...]
I'm looking for a solution to automatically process incoming e-mail, read the information about transaction and send e-mail to predefined adress from Buxfer.
The desired output in this example is:
from: [myemail]@gmail.com
to: [privateemail]@buxfer.com
topic: KOSIK RETAIL S.R.O.>PRAHA 9 CZ 536.80
My available hardware is:
- notebook with Windows 10,
- RaspberryPi 3B with Ubuntu Mate 16.04 LTS,
- smartphone with Android 7.1.2 (AOSP Extended 4.6)
I tried to do this with filter rules in Gmail and Thunderbird; to find add-on to Thunderbird which could do that; searched the web to find appropiate software, but I found only tools for batch sending bulk e-mails, e-mail forwarding or automatic replies.
Thank you for advicing me Linux tools, I'll try to look at them further, but I still don't see the way to connect fetchmail and sendmail, I mean: how to get info from incoming mail, put it into correctly formatted text and pass it to sendmail – Sebastian – 2017-11-28T18:54:34.327
In the usual config manner, fetchmail pushes incoming messages to sendmail for delivery to the local mailboxes. – Claude Frantz – 2017-11-29T20:02:30.720
In the usual config manner, fetchmail pushes incoming messages to sendmail for delivery to the local mailboxes. The message to send, should have a From:, a To:, a Subject: lines, then an empty line and the contains of the message. Finally use "sendmail -G -t < messagefile" to supply the message to sendmail. – Claude Frantz – 2017-11-29T20:09:20.770