Open source enthusiast and software minimalist. Musician, gamer, badminton player, foodie. Help ever, hurt never.
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
Also, fix bug where 'in_reply_to' never gets set. Closes https://todo.sr.ht/~sircmpwn/lists.sr.ht/82. --- listssrht/blueprints/archives.py | 2 ++ listssrht/process.py | 1 + 2 files changed, 3 insertions(+) diff --git a/listssrht/blueprints/archives.py b/listssrht/blueprints/archives.py index 7adc70b..cf2c385 100644 --- a/listssrht/blueprints/archives.py +++ b/listssrht/blueprints/archives.py @@ -76,7 +76,9 @@ def apply_search(query, terms=None): return search(query, terms, [Email.body, Email.subject], { [message trimmed]
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
Closes https://todo.sr.ht/~sircmpwn/lists.sr.ht/122 --- v2: - URL-encoded Message-Id header in the archived message URL listssrht/process.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/listssrht/process.py b/listssrht/process.py index 13e0a2d..253f486 100644 --- a/listssrht/process.py +++ b/listssrht/process.py @@ -23,6 +23,7 @@ from datetime import datetime from email.mime.text import MIMEText [message trimmed]
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
Good catch, it looks like we do. RFC 3986 [1] indicates that the '@' symbol and the '<'/'>' characters that appear in Message-Ids might need to be encoded to not conflict with the delimiters in the syntax of Archived-At. I'll post a v2 patch soon, please correct me if I'm wrong. [1] https://tools.ietf.org/html/rfc3986#section-2.2
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
Closes https://todo.sr.ht/~sircmpwn/lists.sr.ht/122 --- listssrht/process.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/listssrht/process.py b/listssrht/process.py index 13e0a2d..e6c8ae1 100644 --- a/listssrht/process.py +++ b/listssrht/process.py @@ -36,6 +36,7 @@ policy = email.policy.SMTPUTF8.clone(max_line_length=998) def _forward(dest, mail): domain = cfg("lists.sr.ht", "posting-domain") list_name = "{}/{}".format(dest.owner.canonical_name, dest.name) archive_url = "{}/{}".format(cfg("lists.sr.ht", "origin"), list_name)[message trimmed]
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
Closes https://todo.sr.ht/~sircmpwn/lists.sr.ht/101 --- listssrht/blueprints/patches.py | 12 ++++-------- listssrht/filters.py | 24 ++++++++++-------------- listssrht/process.py | 9 ++++----- listssrht/types/email.py | 20 ++++++++++++-------- setup.py | 1 - 5 files changed, 30 insertions(+), 36 deletions(-) diff --git a/listssrht/blueprints/patches.py b/listssrht/blueprints/patches.py index 1de8ada..d37050d 100644 --- a/listssrht/blueprints/patches.py +++ b/listssrht/blueprints/patches.py @@ -84,14 +84,10 @@ def gen_cover_letter(patches): [message trimmed]
From Siva Mahadevan to ~sircmpwn/sr.ht-dev
This patch fixes the List-ID header to conform to the RFC 2919 [1] syntax specification. In particular, the '@` is not supported by the list-id token as is seen in the RFC: list-id-header = "List-ID:" [phrase] "<" list-id ">" CRLF list-id = list-label "." list-id-namespace list-label = dot-atom-text (from RFC 2822 [2]) dot-atom-text = 1*atext *("." 1*atext) where atext does not include the '@' character. --- listssrht/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [message trimmed]