Skip to content

be: read unicredit's html e-mail from one public sample, its direction still to confirm - #41

Merged
landsman merged 1 commit into
mainfrom
unicredit
Nov 10, 2026
Merged

landsman merged 1 commit into
mainfrom
unicredit

Conversation

@landsman

Copy link
Copy Markdown
Owner

Adds UniCredit Bank the way MONETA, Creditas and Raiffeisenbank came in: from the one sanitised sample in radekhulan/myinvoice (MIT), no key pinned, so withDns() refuses every UniCredit e-mail as Unverified. Synthetic HTML fixture, fake accounts (the sample's failed the modulo 11 check).

The direction is the open question. The parser takes the amount's sign, as myinvoice does: none is money in, a minus money out. The only sample is incoming. Were an outgoing payment written without a minus, a refund to a customer, with the invoice's amount and symbol, would pay that invoice again. The class comment, KEY_FINGERPRINTS and the bank's page say a real outgoing e-mail has to settle this before a key is pinned.

  • The sentence's account has no bank code, so /2700 is added; its currency, in parentheses, has to be the amount's.
  • English amounts: 20,546.00 CZK.
  • The template prints every label, an empty one too, so the Variabilní symbol line is required exactly once: a forged one smuggled in through the counter-party's name makes a second. A first version of the test, which removed the line rather than emptying it, passed a forged symbol; the line is now required.
  • Fixtures in fixtures/unicredit-cz/: UniCredit also runs in Slovakia.

Each of four breaks fails a test: the currency not compared, a minus not read as money out, the symbol line not required, anything allowed after the details. make build: green.

@landsman
landsman merged commit a3bb960 into main Nov 10, 2026
5 checks passed
@landsman
landsman deleted the unicredit branch November 10, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant