C# Класс OutlookRulesExport.Program

Показать файл Открыть проект

Открытые методы

Метод Описание
CleanRuleActions ( string path, String storeName ) : string

Cleans the actions in the rule list to remove the storename and formats for Google.

GetRules ( Store s, string storeName ) : List

Gets a list of rules and associated actions from the given store Currently only working for rules defined on from addresses, will add support for other rules soon

GetStore ( string storeName ) : Store

Gets the Outlook store (mailbox) for the given string if one exists.

GetStores ( ) : void

Returns a list of stores (mailboxes and pst files) available in outlook Some or all of these stores can contain rules that can be exported

PrintCSV ( List rules ) : void

Print the rules in CSV format to the console

PrintXML ( List rules, string filename ) : void

Prints the rules to an XML file called rules.xml in the current dir. This was a real pain to get working correctly.

Приватные методы

Метод Описание
Main ( string args ) : void
ParseBody ( Rule r, MyRule mr ) : void
ParseFromAddresses ( Rule r, MyRule mr ) : void

condition from email address & move to folder mupports multiple addresses in the from

ParseLabelCopy ( Rule r, MyRule mr, string storeName ) : void

Parses a rule for the CopyToFolder action Converts the action of a GMail label but does not set the ShouldArchive option

ParseLabelMove ( Rule r, MyRule mr, string storeName ) : void

Parses a rule for MoveToFolder actions Converts this to a GMail label also sets the ShouldArchive option on the gmail filter which applies the label makes the mail skip the gmail inbox

ParseSubject ( Rule r, MyRule mr ) : void
PrintHelp ( ) : void

Описание методов

CleanRuleActions() публичный статический Метод

Cleans the actions in the rule list to remove the storename and formats for Google.
public static CleanRuleActions ( string path, String storeName ) : string
path string
storeName String
Результат string

GetRules() публичный статический Метод

Gets a list of rules and associated actions from the given store Currently only working for rules defined on from addresses, will add support for other rules soon
public static GetRules ( Store s, string storeName ) : List
s Store
storeName string
Результат List

GetStore() публичный статический Метод

Gets the Outlook store (mailbox) for the given string if one exists.
public static GetStore ( string storeName ) : Store
storeName string
Результат Store

GetStores() публичный статический Метод

Returns a list of stores (mailboxes and pst files) available in outlook Some or all of these stores can contain rules that can be exported
public static GetStores ( ) : void
Результат void

PrintCSV() публичный статический Метод

Print the rules in CSV format to the console
public static PrintCSV ( List rules ) : void
rules List
Результат void

PrintXML() публичный статический Метод

Prints the rules to an XML file called rules.xml in the current dir. This was a real pain to get working correctly.
public static PrintXML ( List rules, string filename ) : void
rules List
filename string
Результат void