1 month ago
Fix new clippy lints
1 month ago
bump melib to version 0.8.7

This also updates attachment.text to pass Text::Rfc822 due to an API change
in melib.
3 months ago
mailpot: make sure inserted headers are properly encoded

Closes #14

Link: <https://git.meli-email.org/meli/mailpot/issues/14>
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
3 months ago
Update various dependencies

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
3 months ago
Update melib dependency to 0.8.6

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
4 months ago
docs/rfcs: add rfc9057_Email_Author_Header_Field

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
4 months ago
Various features lumped together

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
7 months ago
Rename workspace dirs to their actual crate names

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
7 months ago
Update h2 dependency to 0.3.24

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
7 months ago
Update stderrlog, tempfile dependencies

- Update stderrlog dependency to 0.6.0
- Update tempfile dependency to 3.9

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
7 months ago
web: don't use carets (<,>) in URLs

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
7 months ago
web: wrap names with <bdi> to support bidi user names

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
8 months ago
Cargo.lock: update dependencies

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
8 months ago
web: don't panic when calculating list posts

When going through a list's root messages, use filter_map() instead of
map() to avoid panicking in case the Envelope cannot be parsed or
there's a bug in the thread calculation.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
8 months ago
Fix new clippy lints.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
8 months ago
add ability to export lists in mbox format

This adds the ability to export mailing lists, threads, or individual messages
in the mboxcl2 format directly from the database.
8 months ago
bump melib dependency to a modern version

This updates the melib dependency from an old version it was pinned to and
updates the associated code and tests.
8 months ago
add TO_ADDRESS as an environment variable for sendmail command

This fixes a bug where when using the sendmail command the server sends mail
to the mailing list address rather than subscribers of the list. Additionally
if the sendmail command exits with a non-zero exit code mpot will now output
stderr for diagnostic purposes.
8 months ago
move thread listing to core
8 months ago
bump rusqlite to v0.30.0
8 months ago
core: minor fixes

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
9 months ago
Add rustfmt.toml symbolic links to each crate

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
9 months ago
Fix clippy lints

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
9 months ago
core/templates: add more info to SUBSCRIPTION_REQUEST_NOTICE_OWNER

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
9 months ago
Fix warning for rust-lang/rust/issues/115010

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: add link anchors to posts

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: fix topic tags spacing

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: fix invalid html markup

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
.github: replace ~ with /home/runner

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
core/config.rs: add context for I/O errors

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: add in-memory ssh sig verification with ssh-key crate

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
core: split commands in their own module

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: fix glob re-export clippy lint

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
cli: add command to send subscription confirmation manually

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: show active sub requests in edit list page

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: add accept sub request option

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: fix clippy lints

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
core/tests: fix hardcoded include path

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
core/posts: fix approval_needed in subscription request

Checking if approval is needed for a subscription request was done from
the post policy instead of the subscription policy (ugh...)

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
cli: add possible_values for QueueValueParser

--help did not display possible values for --queue argument, so it was
not possible for the user to figure it out without looking at the source
code.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
cli: add sub req list and accept commands

There was no way to accept subscription requests, which was dumb. So add
one.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
10 months ago
web: fix invalid column name in list edit page

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
11 months ago
Update --help output in README.md

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
11 months ago
core: move build module to build/ subdirectory

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
11 months ago
core/build.rs: set user_version PRAGMA in generated schema.sql

The generated schema did not include the `user_version` which tracks
which migration is the latest one. This made the README.md example of
creating a database manually fail because it would be initialized with a
`user_version` of 0 and then `mailpot` would attempt to apply migrations
to it.

```shell
$ sqlite3 /path/to/db < ./core/src/schema.sql
$ cargo run --bin mpot -- [some command]
ERROR - 1 no such table: templates in "
ALTER TABLE templates RENAME TO template;"
[1] Error returned from sqlite3 no such table: templates.
```

Fixes #1

https://git.meli.delivery/meli/mailpot/issues/1

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
1 year ago
core: replace error_chain with thiserror

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
1 year ago
core: Add MimeReject filter stub
1 year ago
workflows: download new sqlite3 version
1 year ago
rustdoc: add unstable features rustdoc-scrape-examples and rustdoc-map
1 year ago
web: Fix some list listing CSS
1 year ago
core: implement message filter settings, use them in ArchivedAtLink filter
1 year ago
core: add data kind of migrations
1 year ago
core,web: move StripCarets trait to core
1 year ago
core: add list_settings_json and settings_json_schema tables
1 year ago
core: add separate message filter for subject list tag prefixes
1 year ago
web: add searching for topic tags
1 year ago
web: fix list tag text padding
1 year ago
web: make list description string safe for html if any owner is an admin
1 year ago
core/schema: add trigger that sorts topics alphabetically
1 year ago
docs: add scratchpad.md for ideas,features,notes
1 year ago
web: show list topics on site
1 year ago
core: add migration test
1 year ago
core: Add topics field to MailingList
1 year ago
web: add unit tests+++
1 year ago
web: add unit tests++
1 year ago
web: add unit tests
1 year ago
rest-http: add unit tests
1 year ago
rest-http: add axum-based server
1 year ago
core: add sqlite savepoints
1 year ago
web: make post.html layout more compact
1 year ago
grcov: increase coverage with rustdoc tests
1 year ago
web: add unit tests to utils functions
1 year ago
web: add urlize() and heading() template filters
1 year ago
Run cargo update
1 year ago
cli: add import from mailman3 rest api
1 year ago
web: expand list owner edit view
1 year ago
web: add rel="canonical" urls for lists
1 year ago
Remove warp
1 year ago
core: add doc examples
1 year ago
core: add database migrations
1 year ago
core: reorganise old module hierarchy
1 year ago
core: attach archive databases in transaction
1 year ago
Bump version to 0.1.1
1 year ago
cli: add repair command with some lints
1 year ago
core: add more template replies tests
1 year ago
core: add post rejection tests
1 year ago
CI: Fix release build workflow
1 year ago
Bump version to 0.1.0
1 year ago
web: add entry.html template
1 year ago
web: add SITE_SUBTITLE setting
1 year ago
web: add thread replies to post view
1 year ago
web: css changes for accessibility
1 year ago
web: css menu changes for small viewports
1 year ago
Tidy up rustdocs
1 year ago
core/db/subscriptions.rs: add subscr ops tests
1 year ago
core/db/queue.rs: add delete_from_queue() test
1 year ago
core/db/policies.rs: test optional policy fetch
1 year ago
README.md: add code coverage badge
1 year ago
core: remove obsolete error_queue module

Replace with generic queue functionality
1 year ago
Add grcov workflow