<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5128010728566605598</id><updated>2012-02-16T17:03:35.397-08:00</updated><title type='text'>Manitos de Plata</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.davgar.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5128010728566605598/posts/default'/><link rel='alternate' type='text/html' href='http://www.davgar.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dave</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5128010728566605598.post-7318632613377663762</id><published>2012-02-06T18:31:00.000-08:00</published><updated>2012-02-07T06:35:36.423-08:00</updated><title type='text'>The rules explained</title><content type='html'>&lt;br /&gt;&lt;div align="center" class="MsoNormal" style="line-height: normal; text-align: center;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;span style="font-size: 16pt;"&gt;OutlookRules Creator&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;Have you ever had to deal withfar too many emails, all unsorted? Is your inbox filled will all sorts ofimportant messages, but they are so disorganized you will never catch up? Haveyou ever wished there was a quick and easy way to programmatically create Outlookrules and folders in one fell swoop? If you now find yourself lookingfor a way to run a single script that will create your rules and folders on the Exchange server—which will then continue filtering your emails everydayas it would if you had manually added each individual rule—you have stumbledupon the right website, my friend. Please read on.&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Why did I create this script?&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;The reason I created these rulesis that in my current job, I have noticed my co-workers experience issues withmail rules. The end result was always missing emails due to the wrong rulecatching them and moving them to the wrong folder. Email rules are no easytask; they are a pseudo programming language which processes the rulessequentially from top to bottom. Outlook does have a Rule Wizard, but it iscumbersome when it comes to sharing the rules with someone else. The biggestissue I found with the Wizard is that it does not create the folders needed,and the rules are not very easy to maintain.&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;In what situation would this script be most useful?&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;The current revision of the rules(v1.24b) is designed for use in an environment in which a pre-determined set ofkeywords is already established and widely used.&amp;nbsp; For example, take any new employee with noprogramming experience in a company with multiple product lines specialized tothe client. The new employees usually are overwhelmed with hundreds of emailsthat flow in unsorted; once rules are in place, the process is simplified.Creating each rule manually, as I have explained, takes time to build and evenlonger to perfect. Using the script I wrote, an experienced employee within thedepartment who knows the keywords to use in the filters can fill in the columnson the spreadsheet and immediately create the filters and folders for the newemployee to use. &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;b&gt;How fast are the rules created?&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; text-align: left;"&gt;Using this method, creating about60 folders and 120 rules on the Exchange server took between three and 15minutes, depending on the computer and its location. I am not sure of thefactors at play when it comes to speed. The fastest time I measured was on a “cloud”remote desktop computer, and the longest (15 minutes), was on a not verypowerful desktop computer. Compared to the traditional method of adding rulesand folders as you go, which in my experience takes the employee several months,I would call this method a success. &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;How do the rules work?&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;It would be best that anexperienced employee, in the same department, who knows most of the keywords onewould need, fill in the Excel spreadsheet. The Excel file contains columns for:the name of the rule, key word or words to seek out, domain from which emails aresent, and words excluded from the subject line filter. In my company, we findit necessary to sort our emails into folders based on which client the emailpertains to. Thus, we benefit from rules that filter email messages thatmention the client in the subject line, and from rules that filter emailscoming from the client’s domain (e.g., if one of the clients is XYZ Industries,emails coming from anything@xyz.com).&amp;nbsp; Ifrules must be created to filter by anything other than subject key words orsender domain, the basic concept here can be expanded, but these are thefilters needed at my company.&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;There are two rules that arecreated when the Outlook script is run: one is seeking words in the subjectline and the other, in the domain of the email’s sender. In other words, theprogram creates a “subject” rule and a “people” rule for each line that isentered onto the spreadsheet in Excel. Note that there must be two rulescreated per line because if we combined them into a single rule, both conditionswould have to be true in order for a message to be filtered. Outlook does notallow for rules that sort based on a match in the subject OR a match in thesender.&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;A few examples are listed as theywould appear in the columns of the Excel spreadsheet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; width: 100.0%;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0;"&gt;&lt;td style="background: black; border: solid black 1.0pt; mso-pattern: solid black; mso-shading: black; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;span style="color: white;"&gt;Name of Rule&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: black; border-left: none; border: solid black 1.0pt; mso-border-left-alt: solid black 1.0pt; mso-pattern: solid black; mso-shading: black; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;span style="color: white;"&gt;Words in Subject&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: black; border-left: none; border: solid black 1.0pt; mso-border-left-alt: solid black 1.0pt; mso-pattern: solid black; mso-shading: black; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;span style="color: white;"&gt;Domain From&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: black; border-left: none; border: solid black 1.0pt; mso-border-left-alt: solid black 1.0pt; mso-pattern: solid black; mso-shading: black; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;span style="color: white;"&gt;Exclude the following words&lt;/span&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 1;"&gt;  &lt;td style="background: gray; border-top: none; border: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid gray; mso-shading: gray; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;Intel&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: gray; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid gray; mso-shading: gray; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;pentium xeon intel&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: gray; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid gray; mso-shading: gray; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;intel.com&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: gray; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid gray; mso-shading: gray; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr style="mso-yfti-irow: 2; mso-yfti-lastrow: yes;"&gt;  &lt;td style="background: silver; border-top: none; border: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid silver; mso-shading: silver; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;Mercedes Benz&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: silver; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid silver; mso-shading: silver; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;mercedes benz&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: silver; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid silver; mso-shading: silver; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;mbusa.com&lt;/div&gt;&lt;/td&gt;  &lt;td style="background: silver; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black 1.0pt; mso-border-top-alt: solid black 1.0pt; mso-pattern: solid silver; mso-shading: silver; padding: 0in 5.4pt 0in 5.4pt;" valign="top"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;Benzene&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0W6nhF44sX8/TzB1NuRHizI/AAAAAAAAAQI/OeM_sY5kqwA/s1600/Sample_Rules_Img2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="226" src="http://2.bp.blogspot.com/-0W6nhF44sX8/TzB1NuRHizI/AAAAAAAAAQI/OeM_sY5kqwA/s400/Sample_Rules_Img2.png" width="400" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;The above view displays the final product of the example rule mentionedpreviously. The script adds an underscore plus a “p” or an “s” for people orsubject, respectively.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;What if the rules do not sort as intended? &lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;Once created, the same file canbe modified and tweaked as needed and shared again and again as new employeesare set up with email access. Each new employee is thus receiving theup-to-date version of a department-wide or company-wide email filtering system.If a new set of rules was to be implemented then the current rules could bedeleted and the script re-run. The folders will not be re-created, only therules. &lt;/div&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;Limitations and final comments&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;By design, the rules run in the order listed on the Excel spreadsheet. Ielected to sort them alphabetically for readability and ease of troubleshooting.There is a known size limitation on rules in Outlook* of 32kB, but this can beincreased to 256kB in Exchange 2007 and higher. One way to minimize the size ofrules is number rather than name the rules.&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;When running these rules for the first time, I would recommend setting upan alternate profile in Outlook on which you set up a “test” pop account. Thebenefits of this are clear: rules are created in a separate environment andthere is no lag time associated with updating the exchange server. Once yourrules are confirmed successful, run them on your regular account. I have usedthis script to create folders and filters successfully in Exchange 2007 usingOutlook 2007 and Outlook 2010 clients. I hope it serves you well.&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"&gt;&amp;nbsp;*Per Microsoft KB886616&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5128010728566605598-7318632613377663762?l=www.davgar.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.davgar.com/feeds/7318632613377663762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.davgar.com/2012/02/programatically-create-rules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5128010728566605598/posts/default/7318632613377663762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5128010728566605598/posts/default/7318632613377663762'/><link rel='alternate' type='text/html' href='http://www.davgar.com/2012/02/programatically-create-rules.html' title='The rules explained'/><author><name>Dave</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0W6nhF44sX8/TzB1NuRHizI/AAAAAAAAAQI/OeM_sY5kqwA/s72-c/Sample_Rules_Img2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5128010728566605598.post-6523601787081345584</id><published>2012-01-23T18:51:00.000-08:00</published><updated>2012-02-07T07:53:56.441-08:00</updated><title type='text'>Automated outlook rules</title><content type='html'>The attached file (see download link provided) can be used for creating rules in MS Outlook by filling in the information in the chart, which will filter your emails based on key words in the subject line OR the sender's email domain (@yahoo.com, @davgar.com, etc), and makes exceptions for keywords you want to avoid being filtered. To use this file, follow the steps below.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;In Outlook, enable macros. Click Tools &amp;gt; Macro &amp;gt; Security &amp;gt; Warnings for all macros (radio button) and OK. *Note: These steps will be slightly different if you are using Outlook 2010.&lt;/li&gt;&lt;li&gt;In Outlook, open the Visual Basic Editor via Tools &amp;gt; Macro &amp;gt; Visual Basic Editor or ALT+F11.&lt;/li&gt;&lt;li&gt;Once in the Editor go to Tools &amp;gt; References and select Microsoft Excel 12 Object Library (office 2007 &lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;"&gt;–&lt;/span&gt; It will be Microsoft Excel 14 Object Library if you are using MS Outlook 2010). Click OK.&lt;/li&gt;&lt;li&gt;Close the Editor and Outlook.&lt;/li&gt;&lt;li&gt;Open Outlook again, go back into the Editor. Right-click Project 1, select Create Module (if module is not already there).&amp;nbsp; Copy and paste all the code inside the module.&amp;nbsp; You will find the code you need below.&lt;/li&gt;&lt;li&gt;Make sure the .xls file is in C:/Outlook/ folder. If folder is not present, then create it.&lt;/li&gt;&lt;li&gt;In the Editor, go to Run &amp;gt; Run Sub/User form or Click on F5 to run code.&lt;/li&gt;&lt;/ol&gt;Thank you JPSoftware for folder creation code taken from &lt;a href="http://www.jpsoftwaretech.com/look-for-and-create-folders-programmatically-in-outlook/" target="_blank"&gt;here.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This code can be downloaded from the &lt;a href="http://code.google.com/p/programatic-creation-of-outlook-rules/downloads/list" target="_blank"&gt;project &lt;/a&gt;page.&lt;br /&gt;&lt;br /&gt;Microsoft Library bb206765 &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre{ font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #a31515; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em;}.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;div class="csharpcode"&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   1:  &lt;/span&gt;&lt;span class="rem"&gt;'Code written by David Gardner ------- davgar@gmail.com&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   2:  &lt;/span&gt;&lt;span class="rem"&gt;'v1.24b 01/23/2012&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   3:  &lt;/span&gt;&lt;span class="rem"&gt;'&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   4:  &lt;/span&gt;&lt;span class="rem"&gt;'It is recommended that you backup your existing rules by using the export rules feature&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   5:  &lt;/span&gt;&lt;span class="rem"&gt;'&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   6:  &lt;/span&gt;&lt;span class="rem"&gt;' In order for this code to work you must:&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   7:  &lt;/span&gt;&lt;span class="rem"&gt;' 1)In Outlook, enable macros. Click Tools &amp;gt; Macro &amp;gt; Security &amp;gt; Warnings for all macros (radio button) and OK.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   8:  &lt;/span&gt;&lt;span class="rem"&gt;' *Note: These steps will be slightly different if you are using Outlook 2010.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;   9:  &lt;/span&gt;&lt;span class="rem"&gt;' 2) In Outlook, open the Visual Basic Editor via Tools &amp;gt; Macro &amp;gt; Visual Basic Editor or ALT+F11.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  10:  &lt;/span&gt;&lt;span class="rem"&gt;' 3) Once in the Editor go to Tools &amp;gt; References and select Microsoft Excel 12 Object Library&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  11:  &lt;/span&gt;&lt;span class="rem"&gt;' (office 2007 – It will be Microsoft Excel 14 Object Library if you are using MS Outlook 2010). &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  12:  &lt;/span&gt;&lt;span class="rem"&gt;' Click OK.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  13:  &lt;/span&gt;&lt;span class="rem"&gt;' 4) Close the Editor and Outlook.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  14:  &lt;/span&gt;&lt;span class="rem"&gt;' 5) Open Outlook again, go back into the Editor. Right-click Project 1, select Create Module &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  15:  &lt;/span&gt; &lt;span class="rem"&gt;' (if module is not already there).  Copy and paste all the code inside the module.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  16:  &lt;/span&gt;&lt;span class="rem"&gt;' 6) Make sure the .xls file is in C:/Outlook/ folder. If folder is not present, then create it.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  17:  &lt;/span&gt;&lt;span class="rem"&gt;' 7) In the Editor, go to Run &amp;gt; Run Sub/User form or Click on F5 to run code.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  18:  &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  19:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  20:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  21:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  22:  &lt;/span&gt;&lt;span class="kwrd"&gt;Sub&lt;/span&gt; Main()&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  23:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  24:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; arrData &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Variant&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  25:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; xlApp &lt;span class="kwrd"&gt;As&lt;/span&gt; Excel.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  26:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; xlWorkbook &lt;span class="kwrd"&gt;As&lt;/span&gt; Excel.Workbook&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  27:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  28:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; x &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Integer&lt;/span&gt;        &lt;span class="rem"&gt;'Used to cycle trough the rows of the spreadsheet&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  29:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  30:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; colRules &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Rules&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  31:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oRule &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Rule&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  32:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; colRuleActions &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.RuleActions&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  33:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oMoveRuleAction &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.MoveOrCopyRuleAction&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  34:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oExceptSubject &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.TextRuleCondition&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  35:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oIncludeSubject &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.TextRuleCondition&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  36:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oSendersAddress &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.AddressRuleCondition&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  37:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  38:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oInbox &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Folder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  39:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; oMoveTarget &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Folder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  40:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; arrSubject() &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;String&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  41:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; arrSendersAddress() &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;String&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  42:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; arrExeptions() &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;String&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  43:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  44:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  45:  &lt;/span&gt;    &lt;span class="rem"&gt;' Open up Excel but do not show it&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  46:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; xlApp = &lt;span class="kwrd"&gt;New&lt;/span&gt; Excel.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  47:  &lt;/span&gt;    xlApp.Visible = &lt;span class="kwrd"&gt;False&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  48:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  49:  &lt;/span&gt;    &lt;span class="rem"&gt;' load the spreadsheet from the following location&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  50:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; xlWorkbook = xlApp.Workbooks.Open(&lt;span class="str"&gt;"c:\Outlook\rules.xls"&lt;/span&gt;, &lt;span class="kwrd"&gt;ReadOnly&lt;/span&gt; = &lt;span class="kwrd"&gt;True&lt;/span&gt;)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  51:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  52:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify the data range to be used&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  53:  &lt;/span&gt;    arrData = xlApp.Sheets(&lt;span class="str"&gt;"Sheet1"&lt;/span&gt;).Range(&lt;span class="str"&gt;"A6"&lt;/span&gt;).CurrentRegion.Value&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  54:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  55:  &lt;/span&gt;    &lt;span class="rem"&gt;'Dereference variables and Quit Excel&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  56:  &lt;/span&gt;    xlApp.Quit&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  57:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; xlWorkbook = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  58:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; xlApp = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  59:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  60:  &lt;/span&gt;&lt;span class="rem"&gt;'Start from high to low so that alphabetical order is preserved&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  61:  &lt;/span&gt;&lt;span class="kwrd"&gt;For&lt;/span&gt; x = UBound(arrData) &lt;span class="kwrd"&gt;To&lt;/span&gt; LBound(arrData) +1 &lt;span class="kwrd"&gt;Step&lt;/span&gt; -1&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  62:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  63:  &lt;/span&gt;    &lt;span class="rem"&gt;'remove any spaces from the beginning or the end of the string&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  64:  &lt;/span&gt;    arrData(x, 1) = Trim(arrData(x, 1))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  65:  &lt;/span&gt;    arrData(x, 2) = Trim(arrData(x, 2))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  66:  &lt;/span&gt;    arrData(x, 3) = Trim(arrData(x, 3))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  67:  &lt;/span&gt;    arrData(x, 4) = Trim(arrData(x, 4))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  68:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  69:  &lt;/span&gt;    &lt;span class="rem"&gt;'If folder doesn't exist create it and continue&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  70:  &lt;/span&gt;    &lt;span class="kwrd"&gt;If&lt;/span&gt; CheckForFolder(arrData(x, 1)) = &lt;span class="kwrd"&gt;False&lt;/span&gt; &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  71:  &lt;/span&gt;        &lt;span class="kwrd"&gt;Set&lt;/span&gt; MyFolder = CreateSubFolder(arrData(x, 1))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  72:  &lt;/span&gt;    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  73:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  74:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify target folder for rule move action&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  75:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oInbox = Application.Session.GetDefaultFolder(olFolderInbox)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  76:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  77:  &lt;/span&gt;    &lt;span class="rem"&gt;'Set the target folder for the rule&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  78:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oMoveTarget = oInbox.Folders(arrData(x, 1))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  79:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  80:  &lt;/span&gt;   &lt;span class="rem"&gt;'Get Rules from Session.DefaultStore object&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  81:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; colRules = Application.Session.DefaultStore.GetRules()&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  82:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  83:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  84:  &lt;/span&gt;   &lt;span class="rem"&gt;'***********************************************&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  85:  &lt;/span&gt;   &lt;span class="rem"&gt;'Create the Subjects Rule if both fields are not empty&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  86:  &lt;/span&gt;&lt;span class="kwrd"&gt;If&lt;/span&gt; Len(arrData(x, 1)) &amp;gt; 0 &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  87:  &lt;/span&gt;&lt;span class="kwrd"&gt;If&lt;/span&gt; Len(arrData(x, 2)) &amp;gt; 0 &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  88:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  89:  &lt;/span&gt;   &lt;span class="kwrd"&gt;Set&lt;/span&gt; oRule = colRules.Create(arrData(x, 1) &amp;amp; &lt;span class="str"&gt;"_S"&lt;/span&gt;, olRuleReceive)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  90:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  91:  &lt;/span&gt;   &lt;span class="rem"&gt;'Specify condition of containing words in subject&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  92:  &lt;/span&gt;   &lt;span class="rem"&gt;'Obtain data in the second column of the spreadsheet and parse it&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  93:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oIncludeSubject = oRule.Conditions.Subject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  94:  &lt;/span&gt;    &lt;span class="kwrd"&gt;With&lt;/span&gt; oIncludeSubject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  95:  &lt;/span&gt;        .Enabled = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  96:  &lt;/span&gt;        arrSubject = Split(arrData(x, 2))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  97:  &lt;/span&gt;        .Text = arrSubject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  98:  &lt;/span&gt;    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;With&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt;  99:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 100:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify the action in a MoveOrCopyRuleAction object&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 101:  &lt;/span&gt;    &lt;span class="rem"&gt;'Action is to move the message to the target folder&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 102:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oMoveRuleAction = oRule.Actions.MoveToFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 103:  &lt;/span&gt;    &lt;span class="kwrd"&gt;With&lt;/span&gt; oMoveRuleAction&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 104:  &lt;/span&gt;        .Enabled = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 105:  &lt;/span&gt;        .Folder = oMoveTarget&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 106:  &lt;/span&gt;    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;With&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 107:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 108:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify the exception condition for the subject in a TextRuleCondition object&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 109:  &lt;/span&gt;    &lt;span class="rem"&gt;'If the data in column 4 is not empty then parse words into the exeption field&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 110:  &lt;/span&gt;    &lt;span class="kwrd"&gt;If&lt;/span&gt; Len(arrData(x, 4)) &amp;gt; 0 &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 111:  &lt;/span&gt;        &lt;span class="kwrd"&gt;Set&lt;/span&gt; oExceptSubject = oRule.Exceptions.Subject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 112:  &lt;/span&gt;        &lt;span class="kwrd"&gt;With&lt;/span&gt; oExceptSubject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 113:  &lt;/span&gt;            .Enabled = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 114:  &lt;/span&gt;            arrExeptions = Split(arrData(x, 4))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 115:  &lt;/span&gt;            .Text = arrExeptions&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 116:  &lt;/span&gt;        &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;With&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 117:  &lt;/span&gt;    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 118:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 119:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 120:  &lt;/span&gt;    &lt;span class="rem"&gt;'********************************************************&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 121:  &lt;/span&gt;    &lt;span class="rem"&gt;'Create the People rules if sendersAddress if present&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 122:  &lt;/span&gt;&lt;span class="kwrd"&gt;If&lt;/span&gt; Len(arrData(x, 1)) &amp;gt; 0 &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 123:  &lt;/span&gt;&lt;span class="kwrd"&gt;If&lt;/span&gt; Len(arrData(x, 3)) &amp;gt; 0 &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 124:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oRule = colRules.Create(arrData(x, 1) &amp;amp; &lt;span class="str"&gt;"_P"&lt;/span&gt;, olRuleReceive)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 125:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 126:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify the condition in a ToOrFromRuleCondition object&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 127:  &lt;/span&gt;    &lt;span class="rem"&gt;'Condition is if the message is from "Dan Wilson"&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 128:  &lt;/span&gt;        &lt;span class="kwrd"&gt;Set&lt;/span&gt; oSendersAddress = oRule.Conditions.SenderAddress&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 129:  &lt;/span&gt;        &lt;span class="kwrd"&gt;With&lt;/span&gt; oSendersAddress&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 130:  &lt;/span&gt;            .Enabled = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 131:  &lt;/span&gt;            arrSendersAddress = Split(arrData(x, 3))&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 132:  &lt;/span&gt;            .Address = arrSendersAddress&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 133:  &lt;/span&gt;        &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;With&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 134:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 135:  &lt;/span&gt;    &lt;span class="rem"&gt;'Specify the action in a MoveOrCopyRuleAction object&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 136:  &lt;/span&gt;    &lt;span class="rem"&gt;'Action is to move the message to the target folder&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 137:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oMoveRuleAction = oRule.Actions.MoveToFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 138:  &lt;/span&gt;    &lt;span class="kwrd"&gt;With&lt;/span&gt; oMoveRuleAction&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 139:  &lt;/span&gt;        .Enabled = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 140:  &lt;/span&gt;        .Folder = oMoveTarget&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 141:  &lt;/span&gt;    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;With&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 142:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 143:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 144:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 145:  &lt;/span&gt;   &lt;span class="rem"&gt;'Update the server rules&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 146:  &lt;/span&gt;    colRules.Save&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 147:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 148:  &lt;/span&gt;    &lt;span class="rem"&gt;'Dereference the rest of the variables&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 149:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oInbox = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 150:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oMoveTarget = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 151:  &lt;/span&gt;    &lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 152:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; colRules = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 153:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oRule = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 154:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oIncludeSubject = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 155:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oMoveRuleAction = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 156:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oExceptSubject = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 157:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Set&lt;/span&gt; oSendersAddress = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 158:  &lt;/span&gt;    &lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 159:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Erase&lt;/span&gt; arrSubject&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 160:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Erase&lt;/span&gt; arrSendersAddress&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 161:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 162:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Next&lt;/span&gt; x&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 163:  &lt;/span&gt;    &lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 164:  &lt;/span&gt;    &lt;span class="kwrd"&gt;Erase&lt;/span&gt; arrData&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 165:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 166:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 167:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;Sub&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 168:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 169:  &lt;/span&gt;&lt;span class="kwrd"&gt;Function&lt;/span&gt; CheckForFolder(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; strFolder &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;String&lt;/span&gt;) &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Boolean&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 170:  &lt;/span&gt;&lt;span class="rem"&gt;' looks for subfolder of specified folder, returns TRUE if folder exists.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 171:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olApp &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 172:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olNS &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.&lt;span class="kwrd"&gt;NameSpace&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 173:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olInbox &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.MAPIFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 174:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; FolderToCheck &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.MAPIFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 175:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 176:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olApp = Outlook.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 177:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olNS = olApp.GetNamespace(&lt;span class="str"&gt;"MAPI"&lt;/span&gt;)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 178:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olInbox = olNS.GetDefaultFolder(olFolderInbox)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 179:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 180:  &lt;/span&gt;&lt;span class="rem"&gt;' try to set an object reference to specified folder&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 181:  &lt;/span&gt;&lt;span class="kwrd"&gt;On&lt;/span&gt; &lt;span class="kwrd"&gt;Error&lt;/span&gt; &lt;span class="kwrd"&gt;Resume&lt;/span&gt; &lt;span class="kwrd"&gt;Next&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 182:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; FolderToCheck = olInbox.Folders(strFolder)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 183:  &lt;/span&gt;&lt;span class="kwrd"&gt;On&lt;/span&gt; &lt;span class="kwrd"&gt;Error&lt;/span&gt; &lt;span class="kwrd"&gt;GoTo&lt;/span&gt; 0&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 184:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 185:  &lt;/span&gt;&lt;span class="kwrd"&gt;If&lt;/span&gt; &lt;span class="kwrd"&gt;Not&lt;/span&gt; FolderToCheck &lt;span class="kwrd"&gt;Is&lt;/span&gt; &lt;span class="kwrd"&gt;Nothing&lt;/span&gt; &lt;span class="kwrd"&gt;Then&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 186:  &lt;/span&gt;  CheckForFolder = &lt;span class="kwrd"&gt;True&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 187:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 188:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 189:  &lt;/span&gt;ExitProc:&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 190:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; FolderToCheck = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 191:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olInbox = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 192:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olNS = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 193:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olApp = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 194:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;Function&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 195:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 196:  &lt;/span&gt;&lt;span class="kwrd"&gt;Function&lt;/span&gt; CreateSubFolder(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; strFolder &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;String&lt;/span&gt;) &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.MAPIFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 197:  &lt;/span&gt;&lt;span class="rem"&gt;' assumes folder doesn't exist, so only call if calling sub knows that&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 198:  &lt;/span&gt;&lt;span class="rem"&gt;' the folder doesn't exist; returns a folder object to calling sub&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 199:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olApp &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 200:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olNS &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.&lt;span class="kwrd"&gt;NameSpace&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 201:  &lt;/span&gt;&lt;span class="kwrd"&gt;Dim&lt;/span&gt; olInbox &lt;span class="kwrd"&gt;As&lt;/span&gt; Outlook.MAPIFolder&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 202:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 203:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olApp = Outlook.Application&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 204:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olNS = olApp.GetNamespace(&lt;span class="str"&gt;"MAPI"&lt;/span&gt;)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 205:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olInbox = olNS.GetDefaultFolder(olFolderInbox)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 206:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 207:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; CreateSubFolder = olInbox.Folders.Add(strFolder)&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 208:  &lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 209:  &lt;/span&gt;ExitProc:&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 210:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olInbox = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 211:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olNS = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 212:  &lt;/span&gt;&lt;span class="kwrd"&gt;Set&lt;/span&gt; olApp = &lt;span class="kwrd"&gt;Nothing&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="lnum"&gt; 213:  &lt;/span&gt;&lt;span class="kwrd"&gt;End&lt;/span&gt; Function&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5128010728566605598-6523601787081345584?l=www.davgar.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.davgar.com/feeds/6523601787081345584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.davgar.com/2012/01/automated-outlook-rules.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5128010728566605598/posts/default/6523601787081345584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5128010728566605598/posts/default/6523601787081345584'/><link rel='alternate' type='text/html' href='http://www.davgar.com/2012/01/automated-outlook-rules.html' title='Automated outlook rules'/><author><name>Dave</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
