projects
/
SonOfLokstallBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fda9db
)
Remove internet bill rule (TPG don't send emails, sadly)
author
Cameron Ball
<cameron@moodle.com>
Tue, 8 Dec 2020 02:40:56 +0000
(10:40 +0800)
committer
Cameron Ball
<cameron@moodle.com>
Tue, 8 Dec 2020 02:40:56 +0000
(10:40 +0800)
src/rules.php
patch
|
blob
|
history
diff --git
a/src/rules.php
b/src/rules.php
index
8f57393
..
b0b9798
100644
(file)
--- a/
src/rules.php
+++ b/
src/rules.php
@@
-13,11
+13,6
@@
return [
return str_replace('/', '-', $date);
}
],
return str_replace('/', '-', $date);
}
],
- 'Internet' => [
- 'imapQuery' => 'FROM "@online.telstra.com"',
- 'regex' => '/Total.*?\$(?<amount>[0-9]+(\.[0-9]{2})?).*?Due Date.*?(?<due>\d{1,2} \w{3} \d{4})/',
- 'messageTransform' => ∘(glue(" "), map('trim'), lines, 'strip_tags', 'html_entity_decode')
- ],
'Gas' => [
'imapQuery' => 'FROM "@energy.agl.com.au"',
'regex' => '/Direct Debit amount: \$(?<amount>[0-9]+(\.[0-9]{2})?).*?Direct Debit date: (?<due>\d{1,2} \w{3} \d+)/',
'Gas' => [
'imapQuery' => 'FROM "@energy.agl.com.au"',
'regex' => '/Direct Debit amount: \$(?<amount>[0-9]+(\.[0-9]{2})?).*?Direct Debit date: (?<due>\d{1,2} \w{3} \d+)/',