config.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # where eml messages are located
  2. inbox="./inbox"
  3. [html]
  4. page="mwe.html"
  5. model="""
  6. <div class="container"> <article>
  7. <h4>
  8. <span class="sender">
  9. {sender}
  10. </span>
  11. <time class="date">
  12. {date}
  13. </time>
  14. </h4>
  15. <div class="message">
  16. {message}
  17. </div>
  18. </article> </div>
  19. """
  20. date-format="%Y %b %d"
  21. # allow html tags to appear unescaped for e-mails
  22. # from the following senders
  23. # use with caution
  24. whitelist=[
  25. "noreply@neocities.org",
  26. ]
  27. [html.anonymity]
  28. # which portion of the sender address to hide
  29. # example: username@domain.tld
  30. # 0 = show @domain.tld only
  31. # 1 = show username only
  32. type = 0
  33. #if type = 1, what string replaces the original username
  34. alias="(anonymous)"
  35. # which e-mail addresses not to anonymize
  36. excluded = [
  37. "noreply@neocities.org"
  38. ]
  39. [diff]
  40. [[diff.services]]
  41. sender="noreply@neocities.org"
  42. filter="filters/neocities.html"
  43. highlight = "<a href=\"https://neocities.org/site/{username}\">{username}</a>"
  44. keep_link_in_message = false