The code that I sent you was in our RCPT template. This will modify the
mail that is incoming to the server. The CFX tag can specify tokens and
mods for outgoing mail. Here's how message modifications work:
Incoming mail:
Use tags in the RCPT template (although you can add tags in any template
prior to the DATA template). These tags will modify headers and add text to
the top or bottom of the email.
Outgoing mail:
The POST server uses the control file to determine if the mail needs
customization via embedded tokens. Embedded tokens in the mail are in the
form of <:TOKEN:>. The customization can be on the headers or can be added
text to the top or bottom of the mail (as well as having tokens embedded in
the mail).
So, for our list server we chose to use the first method. You can actually
use both methods if you wanted to (for example, if you want to add a special
return-path header or some other header that can be used to identify the
list member and list in case the message is bounced).
Here's a pseudo code example (shows what happens to the mail when it is
received and when it is sent to list members) :
Incoming list mail:
Add Subject prepend
Add text to bottom of message
Add Reply-to header
Change To header to list name
Outgoing list mail:
Add X-List-Member header
Add Return-Path header
Example:
Original message:
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: List test
This is a test
Incoming mods applied in RCPT template:
To: SomeList
From: [EMAIL PROTECTED]
Subject: [SomeList] List test
Reply-To: [EMAIL PROTECTED]
This is a test
------------------------------------
Leaving list instructions...
------------------------------------
In the above example we added a prepend to the subject, a Reply-to header,
and message text at the bottom. We also changed the To header.
Outgoing Mods applied with CFX tag:
To: SomeList
From: [EMAIL PROTECTED]
Subject: [SomeList] List test
Reply-To: [EMAIL PROTECTED]
X-List-Member: [EMAIL PROTECTED]
X-List: Somelist
X-List-Member-ID: 1223
X-List-ID: 12
Return-Path: [EMAIL PROTECTED]
This is a test
------------------------------------
Leaving list instructions...
------------------------------------
In the above example we added several headers that will help to weed out
bounced mail. If the mail bounces the mail will be returned to the
Return-Path address (we should also send the mail from the same address with
the SMTPFROM parameter of the CFX tag). The ListProcessor is a special
account that we set up to handle list mail bounces. It will look for either
the list member name or ID and the list name or list ID to see what account
bounced.
Anyway, that's the general idea. Please let me know if you have any other
questions...
Regards,
Howie
----- Original Message -----
From: Tac/Smokescreen Action Network <[EMAIL PROTECTED]>
To: inFusion Support List <[EMAIL PROTECTED]>
Sent: Wednesday, May 10, 2000 9:27 AM
Subject: [iMS] inset commands (again)
> Here's part of my listserv code. Does the subjectprepend command only
work
> if it's dynamic (and not using the emailfile attribute). It appears to be
> ignoring the header_Subject attribute altogether, and also ignoring the
> subjectprepend. (And the X-List headers)
>
> The header_Subject works if I use "Body=", but this is causing all sorts
of
> problems with attachments and HTML mail.
>
> I'm basing this code on the template you sent me that runs this list,
which
> appears to work with attachments, HTML and the subject prepend as well.
Has
> anything changed in that template? I've upgraded (definitely) to
> CFX_iMSMail 1.5.2, so it's not that.
>
> Tac
>
>
> <insetheader to="#listname# <#listname#@smokescreen.org>">
> <insetheader subjectprepend="[#listname#] ">
> <inSetMsgFooter text="
> ==============================================
> Archives: http://smokescreen.org/?#listname#
> Recipient: #email#
> Author: #smtpfrom#
> ==============================================
> ">
>
> <cfx_imsmail
> kickpost="yes"
> smtpto="#email#"
> smtpfrom="#listname#@smokescreen.org"
> header_To="#listname#@smokescreen.org"
> header_From="#form.Header_From#"
> header_Reply_To="#listname#@smokescreen.org"
> header_Subject="#Subject#"
> header_X_List="#listname#@smokescreen.org"
> header_X_ListMember="#email#"
> priority="3"
> emailfile="#form.emailfile#">
>
>
>
========================================================================
This list server is Powered by iMS
'The Swiss Army Knife of Mail Servers'
--------------------------------------
To leave this list please complete the form at
http://www.CoolFusion.com/iMS.htm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================