- // SHOULD NOT issue the same response to the same sender more
- // than once within a period of several days, even though that
- // sender may have sent multiple messages. A 7-day period is
- // RECOMMENDED as a default.
-
- // Personal and Group responses whose purpose is to notify the
- // sender of a message of a temporary absence of the recipient
- // (e.g., "vacation" and "out of the office" notices) SHOULD
- // NOT be issued unless a valid address for the recipient is
- // explicitly included in a recipient (e.g., To, Cc, Bcc,
- // Resent-To, Resent-Cc, or Resent- Bcc) field of the subject
- // message.
-
- throw new Error("FIXME");
- /*
- Message ret = m.reply(fountain, null, false);
-
- ret.headers.put("Auto-Submitted", "auto-replied");
- ret.headers.put("Precedence", "bulk"); // or list
- ret.headers.put("From", autoFrom);
- ret.headers.put("Reply-To", autoFrom);
- if (includeAutoInSubject)
- ret.headers.put("Subject", "Auto: " + m.subject);
- */
+ return m.reply(new String[] {
+ "Auto-Submitted", "auto-replied",
+ "Precedence", "bulk",
+ "Subject", (includeAutoInSubject ? "Auto: " : "")+m.subject,
+ "From", autoFrom.toString(true),
+ "Reply-To", autoFrom.toString(false)
+ },
+ fountain, null, false);