dmc

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

FAQ (1823B)


      1 dmc - faq
      2 =========
      3 This document aims to be an entrypoint to resolve common
      4 questions about the usage of dmc.
      5 
      6 At the same time everybody is able to propose new problems,
      7 situations and be a guide for the TODO points.
      8 
      9      #
     10      #
     11   ###############
     12   #  #   #   #
     13   ####   #   ####
     14 
     15 
     16 * How to define the default account?
     17 
     18   ln -s ~/.dmc/acc.default ~/.dmc/acc/myaccount
     19 
     20 * How to 'unpack' the attachment files of a mail?
     21 
     22   cd ~/.dmc/box/myaccount/inbox
     23   mkdir mail-001.d
     24   cd mail-001.d
     25   dmc-pack -d ../mail.eml
     26 
     27 * How to send emails using msmtp?
     28 
     29   The current implementation of dmc only supports msmtp for sending emails.
     30   To use this method run 'dmc -e accountname' and change the SEND variable
     31   to be '!msmtp'. Remember to have your ~/.msmtprc in 0600 perms with:
     32 
     33     defaults
     34     
     35     account radare
     36     user pancake
     37     auth login
     38     from pancake@radare.org
     39     password popisapop
     40     host radare.org
     41 
     42     account default : radare
     43 
     44 * How can I get a pop3/imap4 shell?
     45 
     46   $ dmc-imap4 fifo | openssl s_client -quiet -host yourhost -port 993 > fifo
     47 
     48   $ dmc-pop3 fifo | nc yourhost -port 110 > fifo
     49 
     50 * How to add attachment files to a mail?
     51 
     52   cat mail.txt | dmc-pack file1.zip file2.zip > mail.eml
     53 
     54 * Are mbox and Maildir supported?
     55 
     56   No, not yet. Implementation proposals are welcome
     57 
     58 * How can I get the headers of a mail?
     59 
     60   dmc -c cat 1
     61 
     62 * And the body?
     63 
     64   TODO: 
     65 
     66 * What about mailcap?
     67 
     68   cat .mailcap
     69   text/html; w3m -dump -I %{charset} -T text/html %s; needsterminal; copiousoutput
     70   application/pdf; evince %s
     71   image/jpeg; feh %s
     72   image/jpg; feh %s
     73   image/gif; feh %s
     74 
     75 * Is there a way to hook actions?
     76 
     77   Actually no. But there are plans to do it in ~/.dmc/hook/
     78 
     79 * Where is the file to setup a signature?
     80 
     81   ~/.dmc/signature
     82 
     83   if ~/.dmc/box/$NAME}/signature exists rules before the global one