Having just read Kit's blog a little more closely, does my
implementation of a ListTemplate and a ListInstance constitute a custom
list definition (I guess "yes").
 
Kit says: 
"even if I create a list definition that is simliar to a parent list
(e.g. CKS: Enhanced Wiki Edition
<http://www.codeplex.com/CKS/WorkItem/View.aspx?WorkItemId=1623> ), you
lose the incoming email feature. "
 
Bummer!  Guess that means that event though my list is a doc lib with a
couple of custom actions defined, I will have to implement my own email
event receiver...now to hunt for an example of the XML required ;)
 
Cheers,
 
Nigel Witherdin
Senior Support Analyst
Eversheds
 
Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256
 
www.eversheds.com <http://www.eversheds.com/> 
 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Noone
Sent: 01 July 2008 01:58
To: [email protected]
Subject: RE: [OzMOSS] Email Enabling a doc library installed by a
feature



This may be the solution you require.

[ Excerpt from:
http://sgdotnet.org/blogs/kitkai/archive/2007/12/28/Enabling-Incoming-Em
ail-Feature-for-other-lists.aspx ]

You can force incoming email for any custom list but you'll need to
create an Email Event Receiver and attach this to the list definition
type using features.

1.    Create a class that inherits from SPEmailEventReceiver

2.    Override EmailReceived method, and implement your own logic on how
to process the email.

3.    Create the xml that defines the event, specifying the
ListTemplateId, and the type of event (EmailReceived) to attach this
event receiver to (among other xml element you need to define)

4.    Create the feature definition.

5.    Deploy.

You should then see the incoming email link in the list settings.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: Monday, 30 June 2008 11:35 PM
To: [email protected]
Subject: [OzMOSS] Email Enabling a doc library installed by a feature

Hi All,

I have a customized document library I am installing as part of a
feature, which I need to make email enabled.  The library will have a
few custom actions, specific content types and custom views set against
it as part of the feature.  here is the elements.xml I am using (are my
problems arising from me generating this as a new template with new type
code??)

----

  <!-- Knowledge Items List Template -->
  <ListTemplate
    Name="KnowledgeItems"
    Type="380"
    BaseType="1"
    OnQuickLaunch="FALSE"
    FolderCreation="FALSE"
    SecurityBits="11"
    DisplayName="Knowledge Items"
    Description="List containing items that have been submitted as Legal
and/or Business Knowledge."
    NoCrawl="True"
    AllowDeletion="True"
    DisallowContentTypes="False"
    DisableAttachments="False"
    DontSaveInTemplate="True"
    EnableModeration="False"
    MultipleTypes="False"
    Image="/_layouts/images/itdl.gif">
  </ListTemplate>

<!-- Knowledge Items List -->
  <ListInstance
    FeatureId="{EE2458B8-4594-4bef-A9F9-29D9F3D3A632}"
    TemplateType="380"
    Id="383"
    Description="Items that have been submitted as Legal and/or Business
Knowledge."
    OnQuickLaunch="False"
    Title="Knowledge Items"
    Url="KnowledgeItemsList">
  </ListInstance>

  <!-- Release Knowledge Item action -->
  <CustomAction
      Id="{1328F7D1-C5F6-4c21-A618-3C960122A58B}"
      RegistrationType="List"
      RegistrationId="380"
      Location="EditControlBlock"
      Sequence="110" 
      Title="Release Knowledge Item">
    <UrlAction
Url="{SiteUrl}/Pages/ReleaseKnowledge.aspx?List={ListId}&amp;ID={ItemId}
"/>
  </CustomAction>

  <!-- Reject Knowledge Item action -->
  <CustomAction
      Id="{FDFF2256-51B3-4a8b-B49F-3157AE1398D3}"
      RegistrationType="List"
      RegistrationId="380"
      Location="EditControlBlock"
      Sequence="111"
      Title="Reject Knowledge Item">
    <UrlAction
Url="{SiteUrl}/Pages/RejectKnowledgeMail.aspx?List={ListId}&amp;ID={Item
Id}"/>
  </CustomAction>

----

SharePoint Solution Generator does not seem to set the "Incoming Email"
settings in the list template it generates, and the doc lib generated
off it does not have an "Incoming Email" link in the Document Library
settings anymore.  Although I can manually browse to the
EmailSettings.aspx, if I do that the page does not have the full set of
settings available on it (nothing about whether to store attachments in
subfolders etc.).

I have tried enabling email via a Feature Event Receiver with the
following code, but am having no joy:

----

web.Lists["Knowledge Items"].EnableAssignToEmail = true;

web.Lists["Knowledge Items"].EmailAlias = "KnowledgeSubmissions";

web.Lists["Knowledge Items"].Update();

----

So, anybody know how I can make a document library installed by a
feature email enabled, or at least, a way to generate the list template
being installed by the feature so that has the "Incoming Email" settings
available?

Nigel Witherdin

Senior Support Analyst

Eversheds

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

www.eversheds.com <http://www.eversheds.com/> 

********* This email is sent for and on behalf of Eversheds LLP
*********

This email is sent for and on behalf of Eversheds LLP which is a limited
liability partnership, registered in England and Wales, registered
number OC304065. Registered office One Wood Street, London, EC2V 7WS.
Registered VAT number GB820704559.  A list of the members' names and
their professional qualifications is available for inspection at the
above office. Regulated by the Solicitors Regulation Authority (see
www.sra.org.uk <http://www.sra.org.uk/> ). 

Confidentiality: This email and its attachments are intended for the
above named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or show
them to anyone; please reply to this email and highlight the error.

************* [ www.eversheds.com <http://www.eversheds.com/>  ]
************* 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

________________________________

________________________________________________________________________
____
This e-mail is intended for the use of the addressed recipient(s) only
and may contain confidential and privileged information. If you have
received this message in error, please delete the message and any
attachments and copies immediately; and notify the sender by return
e-mail.

Any views expressed in this message or any attachments are those of the
individual sender and do not necessarily represent the corporate opinion
of the Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
________________________________________________________________________
____ 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to