Commit Graph

34 Commits

Author SHA1 Message Date
Conrad Hoffmann fb651a7997 todosrht-lmtp: try a bit harder to parse msg ID
Even though it is rarely used, the full format of the Message-ID header
is (grossly simplified): "Comment to be ignored <actual@message.id>",
similar to an address. Parsing this as address will still be a bit too
lax (it would accept quoted string literals on the left-id side), but
it's at least much better than the current approach.
2024-01-31 10:11:18 +01:00
наб 7348b4a29b Include References: <Message-ID of triggering e-mail>, if any, in the comment notification
This mirrors the ticket_new notification
2024-01-26 11:47:47 +01:00
наб 80956c5981 Include an In-Reply-To: <Message-ID of triggering e-mail>, if any, in the new_ticket notification. Again
In commit 8a3c9b63b9 ("Include an
 In-Reply-To: <Message-ID of triggering e-mail>, if any,
 in the new_ticket notification") on 2020-07-17,
I made it so the return mail for a ticket submission
is a reply to the submission.

commit dee9e75762 ("todosrht-lmtp:
 Use GraphQL for ticket submission") on 2022-04-05 deletes this.

Why? Unclear. The patch submission in
  https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3C20220405161354.11100-1-me%40adnano.co%3E
says this is the case but doesn't try to justify or rectify it.

Why? Unclear. Add it back because this is basic functionality.
2024-01-26 11:01:32 +01:00
Josh Soref b7a0b20c32 spelling: discussion
Signed-off-by: Josh Soref <jsoref@gmail.com>
2023-10-24 12:35:42 +02:00
Adnan Maolood 10d9d29edb todosrht-lmtp: Use GraphQL for comment submission
Use GraphQL to submit comments from incoming emails so that
GraphQL-native webhooks are delivered.

Also use comments to document internal GraphQL mutations instead of
docstrings.

References: https://todo.sr.ht/~sircmpwn/sr.ht/315
2022-05-03 08:23:58 +02:00
Adnan Maolood 67c96a4a54 todosrht-lmtp: Commit transaction before calling exec_gql
Commit the current transaction before calling exec_gql to ensure that
the senderId passed to the GraphQL API is always valid.
2022-04-11 11:27:28 +02:00
Adnan Maolood a250ca81ff todosrht-lmtp: Use tracker owner for exec_gql
Use the tracker owner as the user for exec_gql since the sender user may
be None (e.g. in the case of an email not associated with a user).
2022-04-11 11:27:27 +02:00
Adnan Maolood dee9e75762 todosrht-lmtp: Use GraphQL for ticket submission
Use GraphQL for ticket submission so that GraphQL TICKET_CREATED webhook
events are delivered.
2022-04-08 13:12:51 +02:00
Drew DeVault 533ca5c4d5 todosrht-lmtp: fix error reason selection 2021-02-28 08:39:10 -05:00
David Florness 6efba83e54 Only care about the mail handler's sock-group when using LMTP
The "not None" logic was copied from listssrht:
372eda06cb/item/listssrht-lmtp (L349-352)
2021-02-22 08:58:48 -05:00
наб bb5a0a8ccf Add option to notify users of their own web activity
Ref: ~sircmpwn/todo.sr.ht#94
2020-10-10 14:00:58 -04:00
Drew DeVault 6dbc8e927b todosrht-lmtp: allow command without comment 2020-09-01 16:28:56 -04:00
наб b7b5abb83a Allow (un)subscribing by mailing ~u/t[/1]/[un]subscribe 2020-07-22 13:19:56 -04:00
наб 8a3c9b63b9 Include an In-Reply-To: <Message-ID of triggering e-mail>, if any, in the new_ticket notification 2020-07-17 09:59:49 -04:00
Gabriel Augendre 6599be5371 Notify sender for tickets created by email.
Fix ticket ~sircmpwn/todo.sr.ht/180
2020-06-08 13:42:37 -04:00
Drew DeVault 0a30060cb4 todosrht-lmtp: alias !resolved as !resolve 2020-04-05 09:50:10 -04:00
Drew DeVault 204597dfb4 Accept email tickets/comments for anon users 2019-08-22 13:20:39 +09:00
Drew DeVault b4c92a39db Generalize users into participants 2019-08-22 11:05:25 +09:00
Drew DeVault ebc57e1c43 Enforce ticket access on labels via email 2019-07-08 13:10:18 -04:00
Drew DeVault 102998365b Add !label and !unlabel to todosrht-lmtp 2019-07-08 13:03:47 -04:00
Drew DeVault b0a3857cb5 Discard HTML emails sent to LMTP daemon 2019-06-14 11:09:20 -04:00
Drew DeVault 274d050572 Finalize webhooks 2019-06-11 11:50:00 -04:00
Drew DeVault 2368339664 Rig up ticket webhooks 2019-06-10 15:46:32 -04:00
Drew DeVault a3f1f9491b Fix fallback addresses for ticket submission 2019-05-15 11:41:11 -04:00
Drew DeVault 0b70b847be Add tracker labels endpoint 2019-05-09 11:34:55 -04:00
Drew DeVault d6986aed72 Add simple ticket API 2019-04-30 16:17:43 -04:00
Drew DeVault 060eea1c1a Add support for replying to tickets via email 2019-04-29 18:26:36 -04:00
Drew DeVault 3df816c9f8 Pass sender into get_tracker as explicit kwarg 2019-04-29 15:36:50 -04:00
Drew DeVault 93c2b4fa59 Fix typo in data command 2019-04-29 15:18:01 -04:00
Drew DeVault 4c51567ca0 Roll back database session on exceptions 2019-04-29 15:15:12 -04:00
Drew DeVault 8ba331bd53 Check sender before destination 2019-04-29 15:07:38 -04:00
Drew DeVault 16530ada56 Fix unbound variable usage 2019-04-29 14:57:57 -04:00
Drew DeVault 9a5d256e53 Enforce permissions on submissions via email 2019-04-29 14:48:20 -04:00
Drew DeVault b765014994 Implement todosrht-lmtp daemon 2019-04-29 14:42:45 -04:00