#113: dataTransferFilesBeingDeletedMail.html

plugins/org.projectforge.plugins.datatransfer/src/main/resources/mail/dataTransferFilesBeingDeletedMail.html Path: plugins/...datatransfer/src/main/resources/mail/dataTransferFilesBeingDeletedMail.html · Lines: 43 · Type: Freemarker HTML email template 43 lines · 39 code · 4 comments · 0 blank

Expiry notification email — sent by a scheduled job to area owners when files are approaching their auto-deletion date. Uses ProjectForge's Freemarker-based mail system with #INCLUDE{...} directives for shared header/footer components (mailHead.html, mailOpening.html, mailClosing.html, mailFooter.html).

Template variables

Content structure

  1. i18n header: "List of files being deleted:" — from key plugins.datatransfer.mail.notificationBeforeDeletion.info
  2. Table columns: Area name, File name, File size, Expiry date, Time left
  3. Each file is a clickable link to its data transfer area (target="_blank" rel="noreferrer")
  4. Info paragraph at bottom: explains that clicking a file and pressing "Update" renews the expiry — from key plugins.datatransfer.mail.notificationBeforeDeletion.hint

The i18n keys used are defined in DataTransferI18nResources.properties (keys 46-48).

Rendering engine

Uses Freemarker (<%= ... %> output expressions, <% ... %> control flow) — distinct from ProjectForge's Groovy scripting engine. The #INCLUDE{...} syntax is a ProjectForge extension to Freemarker for reusable email components. The pf object is bound to the Freemarker context by MailService in the core framework.