changeset 1:c8c579f62d99

add rc files that have relation with mailer. and symlink.py was modified as adding subroutin that make hardlink for fetchmailrc.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Sat, 15 Nov 2008 00:57:04 +0900
parents 6d5c73fe5744
children 0b76aa764126 8812f32e6124
files fetchmailrc hgrc install.cfg muttrc procmailrc symlink.py
diffstat 6 files changed, 161 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- /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
+
--- /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 <kent@cr.ie.u-ryukyu.ac.jp>
+
--- 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
--- /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
+
--- /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/
+
--- 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()