fetchmail-friends
[Top] [All Lists]

[fetchmail] PATCH: Include user-specified text in bounce messages

2003-04-24 08:02:14
Hello all.

See the attachment for patches to include user-specified text in bounce
messages immediately following fetchmail's hard-coded message. They
were applied to fetchmail-5.9.6, but they do apply to 6.2.2 with a few
line offsets.

Command-line option: "--errmsgfile message_or_filename"
Run control file option: "set errmsgfile message_or_filename"

If message_or_filename begins with a slash, it's assumed to be a file,
else it's taken as the literal text (which should be quoted). In either
case, plain, newline-delimited text is expected, and rudimentary logic
changes NL to CRLF on output. If a multi-line message is specified,
add a literal "\r" at the end of each line.

Accessing the file may not meet security concerns, but that shouldn't
be hard to add.

Dave

-- 
  ______________________                         ______________________
  \__________________   \    D. J. HAWKEY JR.   /   __________________/
     \________________/\     hawkeyd(_at_)visi(_dot_)com    /\________________/
                      http://www.visi.com/~hawkeyd/

Attachment: asdf
Description: patch for user-spec'd text in bounce messages

<Prev in Thread] Current Thread [Next in Thread>
  • [fetchmail] PATCH: Include user-specified text in bounce messages, D J Hawkey Jr <=