mllm © 2004-2012, allblue #!/bin/sh MAILDIRARC=`which maildirarc` if [ $# -lt 2 ] ; then echo "USAGE: $0 maildir targetdir" echo " e.g.: $0 /home/foo/.local/share/evolution/mail/local /opt/my_mailbox_backup" exit 1; fi if [ $# -gt 0 -a -d $1 ];then cd $1 for file in .* do if [ -d "$file/cur" ];then if [ "$file" = "." ];then $MAILDIRARC -d 0 -c -m $2/Inbox $1/$file else $MAILDIRARC -d 0 -c -m $2/${file#*.} $1/$file fi fi done fi Parsed in 0.011 seconds |
|||
最新评论
1 年 17 周之前
1 年 17 周之前
1 年 17 周之前
1 年 29 周之前
1 年 29 周之前
1 年 48 周之前
2 年 8 周之前
2 年 9 周之前
2 年 37 周之前
2 年 40 周之前