1 | import wmill |
2 |
|
3 | def main(record: dict): |
4 | message = { |
5 | "channel": "email", |
6 | "received_at": record.get("received_at"), |
7 | "subject": record.get("subject", ""), |
8 | "sender": record.get("sender", ""), |
9 | "body_text": record.get("body_text", ""), |
10 | "attachments": [] |
11 | } |
12 |
|
13 | return wmill.run_script_by_path( |
14 | "u/AlexandrosKoronakis/TARMA-run_inbound_intake_pipeline", |
15 | args={"message": message} |
16 | ) |