On Tue, Mar 21, 2006 at 11:55:56AM +1100, ZanDAhaR wrote:
Obviously sms has no subject so I am just wondering how the mailack would work when recieving a message back ? By default does it look for the ACK code only in the subject or does it also look in the body ? If by default it only looks in the subject is it possible for us to bodge up the code and tell it to read from the body & subject, or just the body ?
Currently, it only looks in the subject for the ack code.
You can change that. Try this patch against the hobbit-mailack.c file: Save it to a file, then run patch hobbitd/hobbit-mailack.c </tmp/ack-body.patch and re-compile with "make".
With this patch, you should be able to put a line into the message body with ack 129102 which is the ack code that is normally taken from the subject. You can also put a delay=120 to make the ack valid for 120 minutes.
The first line which does not match either of these is taken a the ack message which is displayed on the webpage.
Regards, Henrik