dmc

dynamic mail client
git clone git://git.suckless.org/dmc
Log | Files | Refs | README | LICENSE

commit d8ee0065d608e00e7a47f1c5ddc0ecd2d9c3f3b4
parent 81d064290c5a4f18ce59e165ed81b82d320ac61e
Author: pancake@localhost.localdomain <unknown>
Date:   Mon, 12 Oct 2009 18:52:19 +0200

* Added FAQ and few incomplete flags in dmc script
Diffstat:
FAQ | 30++++++++++++++++++++++++++++++
dmc | 15+++++++++++----
2 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/FAQ b/FAQ @@ -0,0 +1,30 @@ +dmc - faq +========= +This document aims to be an entrypoint to resolve common +questions about the usage of dmc. + +At the same time everybody is able to propose new problems, +situations and be a guide for the TODO points. + + +* How to define the default account? + + ln -s ~/.dmc/acc.default ~/.dmc/acc/myaccount + + +* How to 'unpack' the attachment files of a mail? + + cd ~/.dmc/box/myaccount/inbox + mkdir mail-001.d + cd mail-001.d + dmc-pack -d ../mail.eml + + +* How to add attachment files to a mail? + + cat mail.txt | dmc-pack file1.zip file2.zip > mail.eml + + +* Are mbox and Maildir supported? + + No, not yet. Implementation proposals are welcome diff --git a/dmc b/dmc @@ -50,6 +50,8 @@ function print_account_template { echo "PROTOCOL='pop3,imap4'" echo "HOST=serverhost.com" echo "PORT=110" + echo "#SEND=acc-name" + echo "SEND=|msmtp" echo "USER='username'" echo "PASS='password'" } @@ -67,18 +69,23 @@ case "$1" in ;; "-e"|"--edit") if [ -n "$2" ]; then - if [ -n "`cat ~/.dmc/acc/$2`" ]; then + [ -n "`cat ~/.dmc/acc/$2`" ] && \ print_account_template "$2" > ~/.dmc/acc/$2 - fi vim ~/.dmc/acc/$2 # Remove account if empty - if [ -z "`cat ~/.dmc/acc/$2`" ]; then + [ -z "`cat ~/.dmc/acc/$2`" ] && \ rm ~/.dmc/acc/$2 - fi else echo "Usage: dmc -e [accountname]" fi ;; +"push") + ;; +"pull") + ;; +"-m"|"--mail") + TO="$2" + ;; "-a"|"--addr") if [ -n "$2" ]; then grep -e "$2" ~/.dmc/addrbook