experimental MHC

213 views
Skip to first unread message

Yoshinari Nomura

unread,
May 8, 2014, 4:32:18 AM5/8/14
to mhc-...@googlegroups.com
おひさしぶりです.乃村です.

僕自身は,毎日使っている mhc ですが,
コードがかなり古くなって人にすすめにくいので,
書き直しました.まだごちゃごちゃしてますが,
ひとまず動くようになりました.

https://github.com/yoshinari-nomura/mhc

主に Ruby のコードを変更しました.
主な変更点:

* Use Ruby gems framework. check README.org for install
* Require current Mew, Ruby 2.1.1
* Change file name format from [0-9]+ to {RECORD-ID}.mhc
for updating the format it would help you:
https://gist.github.com/yoshinari-nomura/bb9a197e0e01ad81c883#file-update-uuid-sh
* Move ~/Mail/.schedule to /Users/nom/Mail/schedule/anniversaries.mhcc
You can use DOT.schedule.sample.jp
* Add new command framework to support ``mhc SUBCOMMAND'' style like:
$ mhc scan thismonth --search 'category:holiday & subject:party'
$ mhc scan thismonth --format=icalendar > myschedule.ics
$ mhc scan nextmonth --search "!category:private" --format=icalendar > myschedule.ics
$ mhc server # => supposed to act as backend of mhc.el
# find-file mhc-process.el and eval-current-buffer
# C-c.. will use the backend.
* ~/.mhc/config.xml for sync with Google calendar (actually mirror for now)
See samples/DOT.mhc-config.yml for details
* Allow YYYYMMDD-YYYYMMDD style in X-SC-Day header

現状,

X-SC-Day: 20140501-20140502

のような記述を受け付けて,2日のイベントとして mhc (Ruby) は認識しているの
ですが,(iCalendar に変換するときにちゃんと変換できます) うまく emacs の中で
縦に layout する方法が思い付かない状態です.

--
nom

Yoshinari Nomura

unread,
May 8, 2014, 6:40:32 AM5/8/14
to mhc-...@googlegroups.com
のむらです.

Q1. Google Calendar に持って行くと と 9時間ずれる

すみません.忘れてました.

export MHC_TZINFO="Asia/Tokyo"

で,デフォルトのタイムゾーンが日本になります.
設定全般は ごちゃごちゃしているので,そのうち
~/.mhc/ にまとめられるようにします.

Q2. -14日 から +30日しか同期しないの?

ごめんなさい.これも configurable になってないです.
lib/mhc/calendar.rb:53: scan((Date.today - 14)..(Date.today + 30))
あたりを書換えるとなります.

Q2. 同期範囲-14日から外れても Google カレンダから消さないでほしい.

現状は,-14日 から +30日の予定を常に Google カレンダに mirror します.
範囲から外れると,Google カレンダ上から消えます.ちょっと考えます.

--
nom
> --
> You received this message because you are subscribed to the Google Groups "mhc-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mhc-talk+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages