Menu

#64 autorespond.c - From: / Subject: headers appear in body

open
None
8
2013-10-04
2005-03-04
No

The docs for autorespond.c state that you should put
the following into your message file :

From: blah
Subject: blah
<blank line here>
reset of message here

However if you do this, it doesnt work as expected, the
From and Subject values above end up as part of body
of the response.

The problem is in line 703 and 704
703 fprintf( f, "%sTo: %s\nFrom: %s\nSubject:
Re:%s\n%s\n",
704 my_delivered_to, sender, rpath,
inspect_headers( "Subject", (char *) NULL ), message );

I believe this should actually be repaced with something
like
fprintf( f, "%sTo: %s\n", my_delivered_to, sender);

Discussion

  • Michael Bowe

    Michael Bowe - 2005-03-04

    Logged In: YES
    user_id=795826

    Sorry, correct fix is

    fprintf( f, "%sTo: %s\n%s\n", my_delivered_to, sender,
    message);

     
  • Tom Collins

    Tom Collins - 2005-09-15
    • priority: 5 --> 8
    • assigned_to: nobody --> tomcollins
     
  • Charles Sprickman

    Adding some keywords to help google find this. As of 10/2013, autorespond 2.0.5 seems to be the most current version available, and this change is still necessary to get a proper vacation reply.

    "qmailadmin vacation autorespond vpopmail subject from in body"

     

Log in to post a comment.