LDAP REPLYTEXT

From Qmail-LDAP Wiki

Jump to: navigation, search

A reply text for every incoming message (multiline).

Default LDAP attribute name:

mailReplyText

Example:

mailReplyText: I'm on vacation until next monday

Example2: multiline base64

mailReplyText: SGkgcW1haWwtbGRhcCBmYW5zLAoKaWYgSSBjb3VsZCBJIHdvdWxkIGJlIGlu
               IHRoZSBtb3VudGFpbnMgc2tpaW5nIGJ1dCBJJ20gYXQgaG9tZQp3cml0aW5n
               IHRoaXMgbWVzc2FnZSBmb3IgdGhlIFFMREFQSU5TVEFMTCBmaWxlLgpUbyBi
               ZSBob25lc3QsIHRoZXJlIGlzIG5vdCBlbm91Z2ggc25vdyBhcm91bmQgdG8g
               ZW5qb3kgc2tpaW5nLgoKdGhhbmtzIGZvciByZWFkaW5nIHRoZSBRTERBUElO
               U1RBTEwgZmlsZQoKLS0KOndxIENsYXVkaW8K

Notes:

  • Used only if deliveryMode is set to reply.
  • To use multiline text in ldap it has to be BASE64 in the LDIF.
  • GUI tools like GQ are doing this correct, ldapadd can handle base64 inputs or a path to a file containing the reply text (man ldapadd).
  • It is now possible to add a header section to the reply.
  • If the replytext starts with a %HEADER% line all lines following until the next empty line are treated as header.
  • The fields From:, Subject:, the content type headers and most X- headers can be set. To:, X-Mailer: and Precedence: are ignored and set by qmail-reply.
  • If %SUBJECT% is used in the Subject field it is expanded with the Subject of the sent mail. This expansion will only work for the first line of a multiline Subject header.
Personal tools