Update 2024-12-24 08:58 OpenBSD/amd64-t14
This commit is contained in:
39
.bin/update-pim-all
Executable file
39
.bin/update-pim-all
Executable file
@@ -0,0 +1,39 @@
|
||||
#/bin/sh -xe
|
||||
. ~/.bin/_config
|
||||
needs vdirsyncer-- mu-- isync-- git-- p5-iCal-Parser-- remind--
|
||||
|
||||
# snapshot
|
||||
cd /home/sdk/.reminders
|
||||
git add *
|
||||
git commit -m "Update $(date +"%Y-%m-%d %H:%M:%S")" || true
|
||||
|
||||
# copy uugrn calendard to dalek
|
||||
scp -q vorstand@vorstand.uugrn.org:private/Kalender/uugrn.rem \
|
||||
sdk@home.codevoid.de:.reminders/uugrn.rem
|
||||
|
||||
# copy all calendars from dalek to local
|
||||
scp -q sdk@home.codevoid.de:.reminders/\*.rem \
|
||||
/home/sdk/.reminders/
|
||||
|
||||
# download vcal/vcard from icloud / radical
|
||||
vdirsyncer sync
|
||||
|
||||
# create import.rem from ical events (XXX fix this mess)
|
||||
find ~/.isync -name "*.ics" -exec cat {} + \
|
||||
| ical2rem --no-todos \
|
||||
| fgrep -v "REM MSG" \
|
||||
| sed 's,\\n, ,g' \
|
||||
| tr -d '\' \
|
||||
| sed 's/ / /g' \
|
||||
> /home/sdk/.reminders/import.rem
|
||||
|
||||
# create abook addressbook
|
||||
cat /home/sdk/.isync/contacts/*.vcf \
|
||||
| abook --convert --informat vcard --outformat abook \
|
||||
> /home/sdk/.abook/addressbook
|
||||
|
||||
# sync email to offline
|
||||
mbsync -a
|
||||
|
||||
# index email
|
||||
mu index
|
||||
Reference in New Issue
Block a user