You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by St...@sunlife.com on 2007/01/15 14:17:51 UTC

Mailing Lists and Forward mailet

Hi Guys,

I've created several list for distributing mails to different groups. This
is working correctly. What I want to do now is to be able to all mails for
a specific list to a default user who does not have to be subscribed to the
distribution list. This means that the default user will recieve all mails
sent to the list. I've tried several ways to do this using the Forward
mailet. I've tried to match the forward mailet using "All" and
"RecipientIs=testlist@mylist.com". I've tried declaring the mailet inside
my processor and outside the processor.

Does anybody have any ideas??

Any help will do...

Thanks,

Stephen

<mailet match="CommandForListserv=testlist@mylist.com" class="ToProcessor">
      <processor>testlist</processor>
</mailet>
<mailet match="RecipientIs=testlist@mylist.com" class="ToProcessor">
      <processor>testlist</processor>
</mailet>

<processor name="testlist">
      <mailet match="All" class="ToRepository">
            <repositoryPath>db://maildb/mail/mail/</repositoryPath>
            <passThrough>true</passThrough>
      </mailet>
      <mailet match="CommandForListserv=testlist@mylist.com"
class="AvalonListservManager">
            <repositoryName>testlist</repositoryName>
      </mailet>
      <mailet match="All" class="Forward">
            <forwardTo>me@test.com</forwardTo>
            <passThrough>true</passThrough>
      </mailet>
      <mailet match="RecipientIs=testlist@mylist.com"
class="AvalonListserv">
            <repositoryName>testlist</repositoryName>
            <membersonly>false</membersonly>
            <attachmentsallowed>true</attachmentsallowed>
            <replytolist>false</replytolist>
            <subjectprefix>My Test List:</subjectprefix>
      </mailet>
</processor>

---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org