Question : Capture incoming email events for a specific list on Sharepoint site

Hi All,

I have a list on SarePoint 3 site, set up with an incoming mail alias to my list, I've created a sharepoint feature: wrote an email event handler inherited from SPEmailEventReceiver. I've created feature.xml & elements.xml to subscribe to SP events. I've installed and activated my feature as

stsadm -o installfeature -filename MyFeature\feature.xml
stsadm -o activatefeature -name MyFeature -url http://mysite/lists/MyList/

My problem is, that the event handler runs on all incoming mails, and since it captures the mails, they won't be added to their lists.

Could anyone help me plase, how to set up my SPEmailEventReceiver to receive only mails sent to my specific list on a deployable way? (I've atached my elements..xml)

 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
Feature.xml:

<?xml version="1.0" encoding="utf-8"?>
<Feature Id="D88474AE-B990-4061-B329-BA1012F300E6" 
    Title="My Feature"
    Description="My feature can receiving mails"
    Scope="Web"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
        <ElementManifest Location="Elements.xml"/>
    </ElementManifests>
</Feature>


Elements.xml:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Receivers ListTemplateId="100">
    <Receiver>
      <Name>MyHandler</Name>
      <Type>EmailReceived</Type>
      <SequenceNumber>22005</SequenceNumber>
      <Assembly>
        MyLib.MyHandler, Version=1.0.0.0,
        culture=neutral,PublicKeyToken=0000000000000000
      </Assembly>
      <Class>MyHandlerClass</Class>
      <Data></Data>
      <Filter></Filter>
    </Receiver>

  </Receivers>
</Elements>


If you need any additional info, please let me know.

Thanks in advance,
gyoreg.

Answer : Capture incoming email events for a specific list on Sharepoint site

refer to the post at http://www.experts-exchange.com/Security/Software_Firewalls/Enterprise_Firewalls/Cisco_PIX_Firewall/Q_24473058.html about half way down the page there is a post from LANengineer, I checked that config the last time I needed to make changes on a PIX, it may help you get round the issues you have.
Random Solutions  
 
programming4us programming4us