v0.4.0-alpha

knadh/listmonkv0.4.0-alphaFeb 9, 2020by knadh

AI Summary

Introduces double-opt-in functionality and campaign types with significant breaking changes to templates and database schema.

Key Highlights

  • Add double opt-in support
  • Add support for sending 'opt-in' campaigns
  • Template function `{{ .UnsubscribeURL }}` renamed to `{{ UnsubscribeURL }}`

Breaking Changes

  • Template function name change ({{ .UnsubscribeURL }} -> {{ UnsubscribeURL }})
  • Database schema changes (new ENUM types and columns for optin and type)

New Features

  • Double opt-in support
  • Opt-in campaign types

Full Release Notes

This release introduces breaking changes. It adds support for double-optin lists, subscriptions, and campaigns.

![listmonk1](https://user-images.githubusercontent.com/547147/74103550-f0692900-4b72-11ea-81f6-403ee1ca8556.png)
![listmonk3](https://user-images.githubusercontent.com/547147/74103554-fbbc5480-4b72-11ea-9c2f-f6eec6d5d8e1.png)


## Uprading from the previous version.
- The template function `{{ .UnsubscribeURL }}` loses the period and is now `{{ UnsubscribeURL }}`. All templates need to be edited to reflect this change.

Apply the changes to DB tables by running the following queries.
```sql
DROP TYPE IF EXISTS list_optin CASCADE; CREATE TYPE list_optin AS ENUM ('single', 'double');
DROP TYPE IF EXISTS campaign_type CASCADE; CREATE TYPE campaign_type AS ENUM ('regular', 'optin');
ALTER TABLE lists ADD COLUMN optin list_optin NOT NULL DEFAULT 'single';
ALTER TABLE campaigns ADD COLUMN type campaign_type DEFAULT 'regular';
```


## Changelog

62aa31b Refactor {{ UnsubURL }} into a global function (breaking change)
2ee2e68 Inject version during build into the frontend
f039f35 Link list name to subscribers page on lists UI
afdf053 Add 'send opt-in mail' link to subscriber modal UI
6be3352 Refactor/merge optin-list fetch queries
6cb2cd7 Tweak default list and subscriber entries in install
8616aa8 Remove `status` from example on the import UI
ab8bac2 Fix title bug in list modal UI
022b35c Add support for sending 'opt-in' campaigns.
9a890c7 Add button style to default template
af14fff Refactor campaign content type references
ec22170 Fix list ID parsing in campaign UI
a2d21a8 Refactor opt-in subscriber selection queries
ea302d1 Use default template if there isn't one in campaign creation
871893a Add double opt-in support.
bdd42b6 Refactor notificatin data structure
e9685b2 Refactor HTML views with new data structures
f8a2044 Add default values to sample config URLs
f71493e Add PNG logo for e-mails
4abcb28 Refactor template functions.



## Docker images

- `docker pull listmonk/listmonk:latest`
- `docker pull listmonk/listmonk:v0.4.0-alpha`