Changes between Version 5 and Version 6 of MuttFaq/Maildir


Ignore:
Timestamp:
Nov 30, 2014 11:16:39 PM (3 years ago)
Author:
splbio
Comment:

remove empty lines and double backslashes.

Legend:

Unmodified
Added
Removed
Modified
  • MuttFaq/Maildir

    v5 v6  
    129129This script is a simple modification of the one provided above.  The difference is that it scans one level deeper into the folder structure--it also makes the root of the maildir structure only show up once instead of twice in the list.  Note that this assumes that your maildir is "~/.maildir"
    130130{{{
    131  mailboxes + `\\
    132 
    133  for file in ~/.maildir/.*; do \\
    134 
    135    box=$(basename "$file"); \\
    136 
    137    if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = '.customflags' \\
    138 
    139        -a ! "$box" = '.subscriptions' ]; then \\
    140 
    141      echo -n "\"+$box\" "; \\
    142 
    143    fi; \\
    144 
    145 done; \\
    146 
    147  for folder in ~/.maildir/*; do \\
    148 
    149    if [ -x $folder]; then \\
    150    
    151          box=$(basename "$folder"); \\
    152 
    153          for file in ~/.maildir/$box/.*; do \\
    154 
    155                 box2=$(basename "$file"); \\
    156 
    157                 if [ ! "$box2" = '.' -a ! "$box2" = '..' -a ! "$box2" = '.customflags' \\
    158 
    159                  -a ! "$box2" = '.subscriptions' ]; then \\
    160 
    161                    echo -n "\"+$box/$box2\" "; \\
    162 
    163                 fi; \\
    164 
    165          done; \\
    166 
    167     fi; \\
    168 
     131 mailboxes + `\
     132 for file in ~/.maildir/.*; do \
     133   box=$(basename "$file"); \
     134   if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = '.customflags' \
     135       -a ! "$box" = '.subscriptions' ]; then \
     136     echo -n "\"+$box\" "; \
     137   fi; \
     138done; \
     139 for folder in ~/.maildir/*; do \
     140   if [ -x $folder]; then \
     141         box=$(basename "$folder"); \
     142         for file in ~/.maildir/$box/.*; do \
     143                box2=$(basename "$file"); \
     144                if [ ! "$box2" = '.' -a ! "$box2" = '..' -a ! "$box2" = '.customflags' \
     145                 -a ! "$box2" = '.subscriptions' ]; then \
     146                   echo -n "\"+$box/$box2\" "; \
     147                fi; \
     148         done; \
     149    fi; \
    169150  done`
    170151