Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure name and email fields content #40

Open
gbonnefille opened this issue Nov 5, 2024 · 0 comments
Open

Configure name and email fields content #40

gbonnefille opened this issue Nov 5, 2024 · 0 comments

Comments

@gbonnefille
Copy link

With CVS as recipient list (#1 ) it is possible to have a lesser control over the column's names or the columns contents.

For example, when extracting a list of contact from an other tool, perhaps will I have one column for name and one column for surname. Thus, I wish to be able to configure paperboy in order it create the Name field form two other fields.

An other example: perhaps I do not have the email directly, but only the username of each contact. So I wish to configure paperboy in order to create the email from the username + "@example.com".

Proposition

I suggest to add two options:

  • --name-template
  • --email-template

Both accept a string. These strings are used as text/template and the template is executed against the already read user's data.

For example:

paperboy ... --name-template "{{FirstName}} {{LastName}}" --email-template "{{UserName}}@xample.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant