# HG changeset patch # User kent # Date 1226678224 -32400 # Node ID c8c579f62d998d136933e204250a05774c73cc1f # Parent 6d5c73fe5744c5813683e6d145427353268e369f add rc files that have relation with mailer. and symlink.py was modified as adding subroutin that make hardlink for fetchmailrc. diff -r 6d5c73fe5744 -r c8c579f62d99 fetchmailrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fetchmailrc Sat Nov 15 00:57:04 2008 +0900 @@ -0,0 +1,12 @@ + +defaults + protocol auto + no rewrite + mda "/usr/bin/procmail -d %T" + +poll firefly.cr.ie.u-ryukyu.ac.jp + protocol imap + user "kent" + ssl + #keep + diff -r 6d5c73fe5744 -r c8c579f62d99 hgrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgrc Sat Nov 15 00:57:04 2008 +0900 @@ -0,0 +1,4 @@ + +[ui] +username = kent + diff -r 6d5c73fe5744 -r c8c579f62d99 install.cfg --- a/install.cfg Sat Nov 15 00:32:22 2008 +0900 +++ b/install.cfg Sat Nov 15 00:57:04 2008 +0900 @@ -5,17 +5,19 @@ [InstallFiles] # rcファイル指定ができない or したくないもの -vimrc: SYM -zshenv: SYM -zshrc: SYM Xdefaults: SYM xinitrc: SYM hgrc: SYM screenrc: SYM bcrc: SYM dir_colors: SYM -fetchmailrc:SYM muttrc: SYM +procmailrc: SYM +vimrc: SYM +zshenv: SYM +zshrc: SYM + +fetchmailrc: LNK # 環境変数でファイル指定可能なもの #screenrc: ENV:SCREENRC @@ -24,7 +26,7 @@ #fetchmailrc: ENV # コマンドラインでファイル指定可能なもの (alias作るかな) -muttrc: -F +#muttrc: -F # diabled #bash_profile = .bash_profile diff -r 6d5c73fe5744 -r c8c579f62d99 muttrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/muttrc Sat Nov 15 00:57:04 2008 +0900 @@ -0,0 +1,85 @@ + + +### mutt-jp test +set charset='utf-8' +set send_charset="us-ascii:iso-2022-jp" +#set strict_mime=no +set assumed_charset="utf-8:iso-2022-jp:euc-jp:shift_jis" +set edit_headers=yes + + + + +### メールフォルダ設定 +set folder = $HOME/Mail +set mbox_type = Maildir + +### メールボックス +mailboxes =inbox +mailboxes =ie-admin +mailboxes =GCC +mailboxes =concurrency + +### 送信設定 +set from = "kent@cr.ie.u-ryukyu.ac.jp" +set realname = "kent" +set record = "$HOME/Mail/sent" +set postponed = "$HOME/Mail/postponed" +set include = yes +set smtp_url = smtp://k088511@nirai.ie.u-ryukyu.ac.jp:587/ +## 最初はmsmtpを使ってたんだけど、必要ないっぽい。smtp_urlがあればignored +#set sendmail = "/opt/local/bin/msmtp -a nirai" + +set alias_file=~/Mail/aliases +source ~/Mail/aliases +set signature = "~/.signature" + +### KeyBindings +# for Pager +bind pager j next-line +bind pager k previous-line +bind pager o exit +bind pager J next-entry +bind pager K previous-entry +bind pager \Cd half-down +bind pager \Cu half-up +bind pager < top +bind pager > bottom +# for Index +bind index \Cd half-down +bind index \Cu half-up +#bind index < top +#bind index > bottom + + +### カラー設定 +# 通常 +color search black yellow +color status yellow blue +color indicator brightyellow magenta +color tree yellow black +# bodies +color normal white black +color quoted cyan black +color quoted1 green black +color quoted2 red black +color attachment brightmagenta black +# ヘッダ +color hdrdefault black white +color header yellow black ^(From|Subject|Date|Reply-To|To|Cc): +# メッセージ +color message brightwhite black +color error red black + +#color markers brightcyan black # the + for wrapped pager lines +#color signature brightyellow black # signature (after "-- ") +#color tilde blue black # ~'s after message body +#color header brightyellow black ^(From|Subject): # Important headers +#color body cyan black "(ftp|http)://[^ ]+" +#color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+ # picks up email addresses + + +### ヘッダ非表示 +ignore * +unignore from to subject cc date reply-to + diff -r 6d5c73fe5744 -r c8c579f62d99 procmailrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/procmailrc Sat Nov 15 00:57:04 2008 +0900 @@ -0,0 +1,28 @@ + +MAILDIR=$HOME/Mail +DEFAULT=$MAILDIR/default +LOGFILE=$MAILDIR/procmail.log +LOGABSTRACT=no +#JUNK=$HOME/Mail/junk + + +# GCCメーリングリスト +:0 H +* gcc +* gnu.org +GCC/ + +# 琉大情報工adminメール +:0 H +* admin-server@ie.u-ryukyu.ac.jp +ie-admin/ + +# 河野研メーリングリスト +:0 H +* concurrency@cr.ie.u-ryukyu.ac.jp +concurrency/ + +:0 +* .* +inbox/ + diff -r 6d5c73fe5744 -r c8c579f62d99 symlink.py --- a/symlink.py Sat Nov 15 00:32:22 2008 +0900 +++ b/symlink.py Sat Nov 15 00:57:04 2008 +0900 @@ -25,6 +25,11 @@ makeSymlink(opt[0], value[1]) else: makeSymlink(opt[0]) + elif value[0] == "LNK": + if len(value) > 1: + makeHardlink(opt[0], value[1]) + else: + makeHardlink(opt[0]) ### make symbolic link dst0 relating with src0 @@ -45,8 +50,27 @@ # make symbolic link print dst+" => "+src - #os.symlink(src, dst) + os.symlink(src, dst) + +### make hardlink dst0 relating with src0 +def makeHardlink(src0, dst0=None): + # correct filename of source and destination + if dst0==None: + dst0 = "."+src0 + src = src0 + dst = home+"/"+dst0 + # check destination file + if os.path.exists(dst): + if force: + os.remove(dst) + else: + print "file "+dst+" already existed!" + return + + # make symbolic link + print dst+" => "+src + os.link(src, dst) main()