<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Outlook &#8220;Send and archive&#8221;</title>
	<atom:link href="http://www.designitsimple.de/outlook-send-and-archive/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designitsimple.de</link>
	<description>if it doesn&#039;t make sense it doesn&#039;t make cents</description>
	<lastBuildDate>Wed, 21 Dec 2011 19:56:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: michael</title>
		<link>http://www.designitsimple.de/outlook-send-and-archive/comment-page-1/#comment-178415</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Fri, 04 Feb 2011 06:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.designitsimple.de/wordpress/?page_id=71#comment-178415</guid>
		<description>Hi Manuel

Thanks for your feedback and the modifications. Have to check this out the next days but sounds great. I&#039;d usually delete the original mail since my reply contains the original email. I think I have to make that also possibele ;)

Best regards
Michael</description>
		<content:encoded><![CDATA[<p>Hi Manuel</p>
<p>Thanks for your feedback and the modifications. Have to check this out the next days but sounds great. I&#8217;d usually delete the original mail since my reply contains the original email. I think I have to make that also possibele <img src='http://www.designitsimple.de/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Best regards<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manuel Chirouze</title>
		<link>http://www.designitsimple.de/outlook-send-and-archive/comment-page-1/#comment-178404</link>
		<dc:creator>Manuel Chirouze</dc:creator>
		<pubDate>Thu, 03 Feb 2011 19:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.designitsimple.de/wordpress/?page_id=71#comment-178404</guid>
		<description>Hi,

I was looking for something like this for a while and I loved your piece of code, thank you!

I made a further modification which handles the original email and stores it in the same folder given a couple rules (only when the original email is in the Inbox folder, and if the folder the email is being moved to is not the Deleted Items folder).

Best regards,
Manuel Chirouze

Dim objFolder As MAPIFolder

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
&#039;************************************
&#039; Author:           Michael Hartmann, michael@designitsimple.de
&#039; Description:      Performs various checks upon sending an email
&#039;
&#039; Version
&#039; 1.0, July 24, 2006: Creation
&#039; 1.1, June 21, 2010: Deleted check for IsInDefaultStore
&#039; 1.2  Feb 1, 2011: Further modified by Manuel Chirouze to also store the original email in the same folder
&#039;************************************

 &#039; Variable declaration
 Dim objNS As NameSpace
 Dim colKeywords As New Collection
 Dim vntRecipients As Variant
 Dim bolExternalEmail As Boolean

 &#039; Set variables
 Set objNS = Application.GetNamespace(&quot;MAPI&quot;)

 &#039; Set up list of keywords that you use when attaching files
 colKeywords.Add &quot;attachement&quot;
 colKeywords.Add &quot;Attachement&quot;
 colKeywords.Add &quot;attached&quot;
 colKeywords.Add &quot;Attached&quot;

 &#039; Check for attechment keywords and check for number of attachments
 If checkForKeywords(colKeywords, Item.Body) And (Item.Attachments.Count = 0) Then

 &#039; If attachments should be in email ask for continue
 If MsgBox(&quot;Attachement missing. Send e-mail anyway?&quot;, vbYesNo) = vbNo Then
 Cancel = True
 Exit Sub
 End If

 End If

 &#039; Check for subject
 If Item.Subject = &quot;&quot; Then
 MsgBox &quot;Please specify a subject&quot;
 Cancel = True
 Exit Sub
 End If

 &#039; Only enable actions for emails
 If Item.Class = olMail Then

 &#039; Get folder to save email
 Set objFolder = objNS.PickFolder

 &#039; Check if folder has been specified
 If TypeName(objFolder)  &quot;Nothing&quot; Then

 &#039; If folder has been specified move email
 Set Item.SaveSentMessageFolder = objFolder
 
  
 &#039;If the active item has the same ConversationTopic as the reply/forward item then do the same with in.
 &#039;Only if the message is in the inbox and the destination is not the trash
 
 If objFolder.Name  &quot;Deleted Items&quot; Then
 
 Dim myOlExp As Outlook.Explorer
 Dim myOlSel As Outlook.Selection
 Dim myMailItem As Outlook.MailItem
 Set myOlExp = Application.ActiveExplorer
 Set myOlSel = myOlExp.Selection
 
 If myOlExp.CurrentFolder = &quot;Inbox&quot; Then
 &#039;Only if there is only one item
 If myOlSel.Count = 1 Then
 &#039;Only if it is a mail item
 If myOlSel.Item(1).Class = olMail Then
 Set myMailItem = myOlSel.Item(1)
 &#039;Only if it has the same conversation topic
 If myMailItem.ConversationTopic = Item.ConversationTopic Then
 myMailItem.Move objFolder
 End If
 End If
 End If
 End If
 End If
  
 
 Else
 &#039; Otherwise do not send email and get back to email
 Cancel = True
 End If

 End If

send_message:
 &#039; Unset everything
 Set objFolder = Nothing
 Set objNS = Nothing

End Sub

Private Function checkForKeywords(colKeyWordList As Collection, strText As String) As Boolean
&#039;************************************
&#039; Author:           Michael Hartmann, michael@designitsimple.de
&#039; Last modified:    August, 8th 2006
&#039;
&#039; Description:      Checks for certain keywords from a collection in a string
&#039;************************************

 &#039; Variable declaration
 Dim varKeyword As Variant

 &#039; Set initial return variable.
 checkForKeywords = False

 For Each varKeyword In colKeyWordList
 If (InStr(1, strText, varKeyword, vbTextCompare) &gt; 0) Then
 checkForKeywords = True
 Exit Function
 End If
 Next

End Function</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was looking for something like this for a while and I loved your piece of code, thank you!</p>
<p>I made a further modification which handles the original email and stores it in the same folder given a couple rules (only when the original email is in the Inbox folder, and if the folder the email is being moved to is not the Deleted Items folder).</p>
<p>Best regards,<br />
Manuel Chirouze</p>
<p>Dim objFolder As MAPIFolder</p>
<p>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)<br />
&#8216;************************************<br />
&#8216; Author:           Michael Hartmann, <a href="mailto:michael@designitsimple.de">michael@designitsimple.de</a><br />
&#8216; Description:      Performs various checks upon sending an email<br />
&#8216;<br />
&#8216; Version<br />
&#8216; 1.0, July 24, 2006: Creation<br />
&#8216; 1.1, June 21, 2010: Deleted check for IsInDefaultStore<br />
&#8216; 1.2  Feb 1, 2011: Further modified by Manuel Chirouze to also store the original email in the same folder<br />
&#8216;************************************</p>
<p> &#8216; Variable declaration<br />
 Dim objNS As NameSpace<br />
 Dim colKeywords As New Collection<br />
 Dim vntRecipients As Variant<br />
 Dim bolExternalEmail As Boolean</p>
<p> &#8216; Set variables<br />
 Set objNS = Application.GetNamespace(&#8220;MAPI&#8221;)</p>
<p> &#8216; Set up list of keywords that you use when attaching files<br />
 colKeywords.Add &#8220;attachement&#8221;<br />
 colKeywords.Add &#8220;Attachement&#8221;<br />
 colKeywords.Add &#8220;attached&#8221;<br />
 colKeywords.Add &#8220;Attached&#8221;</p>
<p> &#8216; Check for attechment keywords and check for number of attachments<br />
 If checkForKeywords(colKeywords, Item.Body) And (Item.Attachments.Count = 0) Then</p>
<p> &#8216; If attachments should be in email ask for continue<br />
 If MsgBox(&#8220;Attachement missing. Send e-mail anyway?&#8221;, vbYesNo) = vbNo Then<br />
 Cancel = True<br />
 Exit Sub<br />
 End If</p>
<p> End If</p>
<p> &#8216; Check for subject<br />
 If Item.Subject = &#8220;&#8221; Then<br />
 MsgBox &#8220;Please specify a subject&#8221;<br />
 Cancel = True<br />
 Exit Sub<br />
 End If</p>
<p> &#8216; Only enable actions for emails<br />
 If Item.Class = olMail Then</p>
<p> &#8216; Get folder to save email<br />
 Set objFolder = objNS.PickFolder</p>
<p> &#8216; Check if folder has been specified<br />
 If TypeName(objFolder)  &#8220;Nothing&#8221; Then</p>
<p> &#8216; If folder has been specified move email<br />
 Set Item.SaveSentMessageFolder = objFolder</p>
<p> &#8216;If the active item has the same ConversationTopic as the reply/forward item then do the same with in.<br />
 &#8216;Only if the message is in the inbox and the destination is not the trash</p>
<p> If objFolder.Name  &#8220;Deleted Items&#8221; Then</p>
<p> Dim myOlExp As Outlook.Explorer<br />
 Dim myOlSel As Outlook.Selection<br />
 Dim myMailItem As Outlook.MailItem<br />
 Set myOlExp = Application.ActiveExplorer<br />
 Set myOlSel = myOlExp.Selection</p>
<p> If myOlExp.CurrentFolder = &#8220;Inbox&#8221; Then<br />
 &#8216;Only if there is only one item<br />
 If myOlSel.Count = 1 Then<br />
 &#8216;Only if it is a mail item<br />
 If myOlSel.Item(1).Class = olMail Then<br />
 Set myMailItem = myOlSel.Item(1)<br />
 &#8216;Only if it has the same conversation topic<br />
 If myMailItem.ConversationTopic = Item.ConversationTopic Then<br />
 myMailItem.Move objFolder<br />
 End If<br />
 End If<br />
 End If<br />
 End If<br />
 End If</p>
<p> Else<br />
 &#8216; Otherwise do not send email and get back to email<br />
 Cancel = True<br />
 End If</p>
<p> End If</p>
<p>send_message:<br />
 &#8216; Unset everything<br />
 Set objFolder = Nothing<br />
 Set objNS = Nothing</p>
<p>End Sub</p>
<p>Private Function checkForKeywords(colKeyWordList As Collection, strText As String) As Boolean<br />
&#8216;************************************<br />
&#8216; Author:           Michael Hartmann, <a href="mailto:michael@designitsimple.de">michael@designitsimple.de</a><br />
&#8216; Last modified:    August, 8th 2006<br />
&#8216;<br />
&#8216; Description:      Checks for certain keywords from a collection in a string<br />
&#8216;************************************</p>
<p> &#8216; Variable declaration<br />
 Dim varKeyword As Variant</p>
<p> &#8216; Set initial return variable.<br />
 checkForKeywords = False</p>
<p> For Each varKeyword In colKeyWordList<br />
 If (InStr(1, strText, varKeyword, vbTextCompare) &gt; 0) Then<br />
 checkForKeywords = True<br />
 Exit Function<br />
 End If<br />
 Next</p>
<p>End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Treasa Hilding</title>
		<link>http://www.designitsimple.de/outlook-send-and-archive/comment-page-1/#comment-178060</link>
		<dc:creator>Treasa Hilding</dc:creator>
		<pubDate>Fri, 21 Jan 2011 13:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.designitsimple.de/wordpress/?page_id=71#comment-178060</guid>
		<description>Greetings, this is a truly absorbing web weblog and I&#039;ve cherished learning lots of on the content material and posts contained on the internet website, keep up the excellent get the job done and wish to learn a good deal far more stimulating articles in the future.</description>
		<content:encoded><![CDATA[<p>Greetings, this is a truly absorbing web weblog and I&#8217;ve cherished learning lots of on the content material and posts contained on the internet website, keep up the excellent get the job done and wish to learn a good deal far more stimulating articles in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Send and archive e-mails VBA macro in Outlook at design it simple &#8211; sense</title>
		<link>http://www.designitsimple.de/outlook-send-and-archive/comment-page-1/#comment-168870</link>
		<dc:creator>Send and archive e-mails VBA macro in Outlook at design it simple &#8211; sense</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.designitsimple.de/wordpress/?page_id=71#comment-168870</guid>
		<description>[...] Outlook &#8220;Send and archive&#8221;          &#171; Don&#8217;t think business or design &#8211; think outside the box. [...]</description>
		<content:encoded><![CDATA[<p>[...] Outlook &#8220;Send and archive&#8221;          &laquo; Don&#8217;t think business or design &#8211; think outside the box. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

