rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | README | LICENSE

inc.h (938B)


      1 /*
      2  * Copy me if you can.
      3  * by 20h
      4  */
      5 
      6 #ifndef __INC_H__
      7 #define __INC_H__
      8 
      9 #include "llist.h"
     10 #include "txtdb.h"
     11 #include "cfg.h"
     12 #include "imap.h"
     13 
     14 #define inc_t txtdb_t
     15 
     16 #define inc_new txtdb_new
     17 #define inc_free txtdb_free
     18 #define inc_add txtdb_add
     19 #define inc_del txtdb_del
     20 #define inc_get txtdb_get
     21 #define inc_find txtdb_find
     22 #define inc_set txtdb_set
     23 #define inc_len txtdb_len
     24 #define inc_read txtdb_read
     25 #define inc_write txtdb_write
     26 
     27 inc_t *inc_init(char *cfgn);
     28 void inc_stop(inc_t *incs);
     29 llist_t *inc_getstatus(inc_t *incs, char *mailbox);
     30 char *inc_getstatuselem(inc_t *incs, char *mailbox, char *elem);
     31 char *inc_getstr(char *cfgn, char *mailbox, char *elem);
     32 void inc_setstatus(inc_t *incs, char *mailbox, char *msgs, char *unseen,
     33 		char *recent);
     34 int inc_updatefolder(imap_t *imap, char *folder, inc_t *gincs);
     35 
     36 void inc_mkunseen(imap_t *imap, char *cfgn, char *folder);
     37 
     38 int incmain(int argc, char *argv[]);
     39 
     40 #endif
     41