Recent activity

Re: plaintext email addresses exposed 11 days ago

From jman to ~sircmpwn/sr.ht-discuss

> Spammers have stopped harvesting targets from websites at all. I have
> had a honeypot on my blog for over a year now which has received zero
> emails.

My experience differs slightly, I have received 2 spam emails on my
"srht@" - as if they were testing the waters - in the last 2 months. I
expect to keep on receiving spam intermittently on this account but not
enough to bother me.

Re: automated build on feature branches a month ago

From jman to ~sircmpwn/sr.ht-discuss

> I have recently started using Sourcehut and I'm surprised that the
> automated build runs only after commits to the "main" branch of my git
> repository.

According to the documentation, I think you can trigger the build run
from another branch name or even a commit:

Does it work for you?


Re: Unable to reproduce go-git clone issue a month ago

From jman to ~sircmpwn/sr.ht-discuss

> I'm trying to reproduce https://github.com/go-git/go-git/issues/528

Yeah, I tried cloning that too but does not reproduce anymore, I think.

2 days ago I could reproduce using the git repository of the user that reported that on IRC:

but now also that repository works.

[PATCH hub.sr.ht 1/1] Add OpenSearch description file to SourceHut projects 2 months ago

From jman to ~sircmpwn/sr.ht-dev

Signed-off-by: jman <srht@city17.xyz>
 Makefile                             | 6 ++++++
 _static/osd.xml                      | 8 ++++++++
 hubsrht/templates/project-index.html | 1 +
 3 files changed, 15 insertions(+)
 create mode 100644 _static/osd.xml

diff --git a/Makefile b/Makefile
index 1251ce3..e3bc2fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
[message trimmed]

[PATCH hub.sr.ht 0/1] Add OpenSearch description file for SourceHut projects 2 months ago

From jman to ~sircmpwn/sr.ht-dev


this patch adds the capability to set the Sourcehut projects page as a custom
search engine through a file hosted on the server. This file respects the latest
OpenSearch draft specs:

This spec was born as an Amazon side project, it is a bit unfortunate that the name
"OpenSearch" has been repurposed by Amazon for their fork of ElasticSearch.

I have only modified the Sourcehut project index page, I thought it's the only
interesting place for this change.

I've tried but failed in getting the name of the Sourcehut instance from somewhere

[PATCH rss-email 1/1] Use RustTLS instead of native OpenSSL 3 months ago

From jman to ~witcher/public-inbox

Signed-off-by: jman <srht@city17.xyz>
 Cargo.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index fe45c45..bb2c31e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,11 +11,11 @@ strip = "symbols"
diesel = { version = "1.4", features = ["sqlite"] }
rss = "2.0"
anyhow = "1.0"
reqwest = { version = "0.11", features = ["blocking"] }
[message trimmed]

[PATCH rss-email 0/1] Replace OpenSSL with RustTLS 3 months ago

From jman to ~witcher/public-inbox


This patch replaces the native OpenSSL dependency with the pure Rust implementation.
When possible I try to do that in my projects to reduce usage of system dependencies
and because I think RustTLS is mature enough.

After applying this patch, you can check with `cargo tree` that openssl is now nowhere.

What do you think? This patch was not discussed so totally fine if you decide
to discard it :)

I've only compiled so no guarantees I didn't break anything :) I think now you
can remove openssl also from the .build.yml

[PATCH gh2srht v2 1/1] Add support for exporting from organization 3 months ago

From jman to ~emersion/public-inbox

Signed-off-by: jman <srht@city17.xyz>
 README.md |  10 ++++-
 main.go   | 121 +++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 93 insertions(+), 38 deletions(-)

diff --git a/README.md b/README.md
index 4a5043b..f79027f 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,15 @@ A tool to migrate from GitHub to SourceHut.
Only todo.sr.ht is supported for now.

    export GITHUB_TOKEN=<token>
[message trimmed]

[PATCH gh2srht v2 0/1] Add support for exporting from organization 3 months ago

From jman to ~emersion/public-inbox

I've tried implementing your suggestion, minimizing code duplication.
i'm not entirely satisfied with the result but I could not come up with a better
solution (I am also not very conversant with golang).

What do you think?


jman (1):
  Add support for exporting from organization

 README.md |  10 ++++-
 main.go   | 121 +++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 93 insertions(+), 38 deletions(-)

Re: List emails in one list with specific title? 3 months ago

From ~jman to ~sircmpwn/sr.ht-discuss

> Can you give me some example with curl?
> How do you get the mails of this topic: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C20220809213044.0717fcf7352486f799cf4f47%40posteo.net%3E

You will probably get a little it familiar with the GraphQL API. Some examples from the documentation:

So the query suggested by Nguyễn would translate to something like

curl \
  --oauth2-bearer "$oauth_token" \
  -H 'Content-Type: application/json' \
  -d '{"query": "{ me { lists { results { name, archive } } }"}' \