I'm not looking to hire anyone. I just want to know the following:
1. Is my goal achievable/feasible?
2. I know how to get the email address (via my php script). I've got
this recipe working:
:0
| /usr/local/bin/php $HOME/getAndSend.php; \
cat > /dev/null
But, as you can see, the email is basically terminated by procmail. I
have my php script actually recreating an email after parsing through
the data. I know this is not the best solution. I'm looking for a way
to let the email go through but after I get the data I need. I think I
can do this with a recipe like this:
:0
CUSTOM_DATA = | /usr/local/bin/php $HOME/getCustomBodyPrependData.php
Once I have this data (might be html) in the CUSTOM_DATA variable, all I
need to do is prepend it to the body. This is where it gets tricky and
where I need you guys' help.
3. Is there a solid way to prepend the email body regardless of format
and still preserve the email structure and components?
* Sokol, Ryan - 244 <ryans(_at_)ha(_dot_)com> [05-30-07 14:07]:
Thanks for your reply. I have looked at those posts, but they don't
address what I'm trying to accomplish. Let me be more specific.
Here is the goal:
My company would like it so that anytime any of our customers email
any of our employees, we prepend the body of the email with some
specific customer information (their customer #, address, phone
number, etc.). This information will be looked up as the email comes
in based on the customer's email address provided in the headers of
the email.
So you are looking for someone to hire with this knowledge to provide
you a recipe you can present your company that accomplishes a
particular task?
If not, Nick gave you the first step. You do need to determine the
customer's email address?
If you plan on writting the recipe with some guidance here, you will
need to do piece by piece and reading the fine manual and several
sites (google will provide several good references). One step at a
time.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail