C# 클래스 OutlookRulesExport.Program

파일 보기 프로젝트 열기: bcleary/outlook-gmail-rules-export

공개 메소드들

메소드 설명
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