Testing email

I'm happy to share the updated docker image for Mailcatcher NG.

Mailcatcher NG is an open source, programming language and framework agnostic solution to test emails generated by your app.

It acts as a "mini" SMTP server and accepts emails on port 1025 by default while letting you test their display and debug their rendering on port 1080 via a modern UI.

The docker image is available on docker hub: https://hub.docker.com/r/stpaquet/alpinemailcatcher and you can get more information about the features of Mailcatcher NG on the official website: https://spaquet.github.io/mailcatcher/

Of course, it's open-source and contributions / suggestions are welcome.

reddit.com
u/stpaquet — 2 days ago
▲ 9 r/rails+1 crossposts

Updated Mailcatcher NG Docker image

We just released a new version of Mailcatcher NG Docker image, v2.3.9.

It's based on Alpine Linux 3.24.1 and is still the smallest image you can dream of to test your mail flows in your ruby or Rails apps.

Alpine Linux 3.24.1 fixes a lot of critical vulnerabilities that were present in version 3.23.

The image is available on docker hub: https://hub.docker.com/r/stpaquet/alpinemailcatcher and is based on the latest version of Mailcatcher NG https://spaquet.github.io/mailcatcher/ for those of you who prefer installing a gem rather than a container.

Of course, it's open-source and contributions / suggestions are welcome.

reddit.com
u/stpaquet — 2 days ago

Astro, CSP and inline scripts

Hi Everyone,

I have a question regarding using CSP in Astro.

I have a bunch of Astro 6 and 7 sites, so CSP is no longer "experimental". However a lot of tracking services (usual suspect: google, meta, etc.) are asking for their JS snippet to be placed inline somewhere on the page.

How do you deal with that:

  1. separate file (does not seem to fix the issue),
  2. hash,
  3. nonce (can be tricky in Astro given the flow),
  4. else?

Thanks

reddit.com
u/stpaquet — 12 days ago
▲ 2 r/swift

How to access Contact creation date

Hi fellow swift developers,

On iOS, do you know which CNKeyDescriptor to add in order to access the date at which a contact was created (and updated)?

I found CNContactDatesKey, but this seem to only have dates such as birthday / anniversaries and not what I'm looking for.

This information is in the device since you can develop a shortcut to filter the last contact you receive or created (example of a shortcut I found in another subreddit: https://www.icloud.com/shortcuts/ccf6993be78e4679a0296bbfed2725e8)

Brute forcing access to the SQLite database might work... but I'm not sure that Apple will like it in a production app on their store.

reddit.com
u/stpaquet — 23 days ago

How to open a new tab or window in current directory?

I'm looking for the shortcuts to open a new tab or window in the current directory.

Let's say you are in a /var/something/something-else/some-folder is there a way to affect some shortcuts or use existing ones to open a new tab or window in that exact same directory ?

Thanks

reddit.com
u/stpaquet — 24 days ago
▲ 3 r/WhatsappBusinessAPI+1 crossposts

Hey there,

I noticed that there are APIs to control or manage almost everything, but Communities.

Groups seem to have a limitation to 8 users, so not really interesting for the use case I'm promoting. I need something where I can have 100s if not 1000s of users in one place and community appears to be the right choice.

But I want to make sure I can create, manage and moderate it programmatically as the larger the comminty is the bigger the responsabilities are.

If there is no API in WABA, could you reference open-source API or wrapper or else, but it must be open-source, that you are using?

Thx

reddit.com
u/stpaquet — 2 months ago

I'm operating campaigns at scale for very large enterprises. After a few days and testing over different devices we notices that no one is implementing RCS the proper way

Example: Rich Cards. On iPhone the image is displayed as expected. However the buttons are all in a dropbox and there is no different between primary and secondary actions! Well done!

Now, the same card on Android... The image is cut where it should not be, but the button hierarchy is preserved.

It's a bit like choose your poison at this point.

Any reason why Android phones are not following the requirements? I can understand why Apple is behind, but I do not understand why Android is not properly implementing RCS. That's another level of mystery.

reddit.com
u/stpaquet — 2 months ago