Hi,

in some newsgroups, FAQs & Co. are posted regularly with
subjects like "<2026-01-01> FAQ for newsgroup foo.bar" and
pseudo-headers like "Archive-name: foo-bar/faq".  My current
workflow is as follows:

- Read the document.

- Add a score file entry for that newsgroup that matches on
  the subject being "<2026-01-01> FAQ for newsgroup foo.bar"
  and marking those articles as read.

- When a new article with the subject "<2026-02-01> FAQ for
  newsgroup foo.bar" arrives:

  - Find and browse the document's Git repository.

  - Look in the score file for the last related entry
    ("<2026-01-01> […]").

  - In the Git repository, read the diff between versions
    2026-01-01 and 2026-02-01.

  - Add/update a score file entry that matches on the sub-
    ject being "<2026-02-01> […]".

I would like to automate this as follows:

- When an article is selected that has an "Archive-name"
  pseudo-header:

  - If the file named by the "Archive-name" pseudo-header
    has not been saved before:

    - If I answer affirmatively to a suitable question:

      - Save the article's body in some subdirectory with
        the file name taken from the "Archive-name" pseudo
        header (either with some security checks or with me
        confirming the file name as safe as part of that
        question).

      - Add a score file entry that matches on that
        article's subject.

    - Otherwise:

      - Show the diff between the saved article's body and
        the selected article's body.

      - If I confirm that I have read the diff:

        - Save the selected article's body by overwriting
          the saved file.

        - Add a score file entry that matches on the
          selected article's subject.

Has someone worked on this topic before?

TIA,
Tim

Reply via email to