Creating UDL for Emails

Dale
2013-11-29
2013-11-30
  • Dale

    Dale - 2013-11-29

    Hi,

    I was hoping to create a UDL to help make it easier to read .eml (email) files.
    Is it possible to have code folding for the Content sections within the message?
    It would also be nice to work out how to have code folding for the HTML and/or XML sections within the content sections.

    Below is what I have done so far.

    <NotepadPlus>
        <UserLang name="Email" ext="eml" udlVersion="2.1">
            <Settings>
                <Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="1" decimalSeparator="0" />
                <Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
            </Settings>
            <KeywordLists>
                <Keywords name="Comments">00 01 02 03 04</Keywords>
                <Keywords name="Numbers, prefix1"></Keywords>
                <Keywords name="Numbers, prefix2"></Keywords>
                <Keywords name="Numbers, extras1"></Keywords>
                <Keywords name="Numbers, extras2"></Keywords>
                <Keywords name="Numbers, suffix1"></Keywords>
                <Keywords name="Numbers, suffix2"></Keywords>
                <Keywords name="Numbers, range"></Keywords>
                <Keywords name="Operators1">: ; =</Keywords>
                <Keywords name="Operators2"></Keywords>
                <Keywords name="Folders in code1, open">----</Keywords>
                <Keywords name="Folders in code1, middle"></Keywords>
                <Keywords name="Folders in code1, close">----</Keywords>
                <Keywords name="Folders in code2, open"></Keywords>
                <Keywords name="Folders in code2, middle"></Keywords>
                <Keywords name="Folders in code2, close"></Keywords>
                <Keywords name="Folders in comment, open"></Keywords>
                <Keywords name="Folders in comment, middle"></Keywords>
                <Keywords name="Folders in comment, close"></Keywords>
                <Keywords name="Keywords1">Delivered-To&#x000D;&#x000A;Return-Path&#x000D;&#x000A;Received&#x000D;&#x000A;Received-SPF&#x000D;&#x000A;DKIM-Signature&#x000D;&#x000A;DomainKey-Signature&#x000D;&#x000A;</Keywords>
                <Keywords name="Keywords2">X-</Keywords>
                <Keywords name="Keywords3">List-Unsubscribe</Keywords>
                <Keywords name="Keywords4">From&#x000D;&#x000A;To&#x000D;&#x000A;CC&#x000D;&#x000A;BCC&#x000D;&#x000A;Reply-To&#x000D;&#x000A;Subject&#x000D;&#x000A;Date&#x000D;&#x000A;</Keywords>
                <Keywords name="Keywords5">Content-Type&#x000D;&#x000A;Content-Transfer-Encoding&#x000D;&#x000A;Message-Id&#x000D;&#x000A;MIME-Version</Keywords>
                <Keywords name="Keywords6"></Keywords>
                <Keywords name="Keywords7"></Keywords>
                <Keywords name="Keywords8"></Keywords>
                <Keywords name="Delimiters">00( 00[ 01 02) 02] 03&lt; 04 05&gt; 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
            </KeywordLists>
            <Styles>
                <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="COMMENTS" fgColor="008040" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="LINE COMMENTS" fgColor="008080" bgColor="FFFFFF" fontStyle="0" nesting="256" />
                <WordsStyle name="NUMBERS" fgColor="808080" bgColor="FFFFFF" fontStyle="1" nesting="0" />
                <WordsStyle name="KEYWORDS1" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS2" fgColor="FF8040" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS3" fgColor="FF0000" bgColor="FFFFFF" fontStyle="1" nesting="0" />
                <WordsStyle name="KEYWORDS4" fgColor="0000FF" bgColor="FFFFFF" fontStyle="1" nesting="0" />
                <WordsStyle name="KEYWORDS5" fgColor="00FFFF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN CODE1" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN COMMENT" fgColor="008000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontStyle="1" nesting="1" />
                <WordsStyle name="DELIMITERS2" fgColor="8080FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS3" fgColor="0080FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            </Styles>
        </UserLang>
    </NotepadPlus>
    
     
  • Loreia2

    Loreia2 - 2013-11-30

    Hi Dale,

    can you post here a content part of the text as I don't know what .eml files look like.

    BR
    Loreia

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks