Skip to content

Instantly share code, notes, and snippets.

View kesavanm's full-sized avatar
🏠
Working from home

Kesavan Muthuvel kesavanm

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
set -e
main() {
previous_file="$1"
file_to_edit=`select_file $previous_file`
if [ -n "$file_to_edit" ] ; then
"$EDITOR" "$file_to_edit"
main "$file_to_edit"
@vsajip
vsajip / migmail.py
Last active November 17, 2020 18:53
Python 3.6+ scripts for synchronizing IMAP mailboxes using mbsync and imapsync
#
# Copyright (C) 2020 Red Dove Consultants Limited
#
# License: GPL v2
#
#
# This script uses imapsync to synchronize IMAP mailboxes. It uses as input a CSV file
# with columns oldhost,olduser,oldpwd,newhost,newuser,newpwd,migrate. The first line
# is expected to be those column names. oldXXX columns refer to the source mailbox
# information and newXXX columns refer to the target mailbox information. The migrate