SUBDIR = \
lib \
app \
+ sql \
#--------------------------------------------------------------------
#definitions globale
char *ptr;
char config[80];
- (void) strncpy(config,argv[i],sizeof(config));
+ (void) memset(config,'\000',sizeof(config));
+ (void) strncpy(config,argv[i],sizeof(config)-2);
ptr=config;
iteration=1;
proto=pro_smtp;
--- /dev/null
+#--------------------------------------------------------------------
+#Generate database for postgresql and mysql
+#--------------------------------------------------------------------
+prod \
+debug \
+ : mailleur.postg mailleur.mysql
+
+mailleur.postg \
+ : mailleur.sql
+ cpp -P -DPOSTGRESQL mailleur.sql > mailleur.postg
+
+mailleur.mysql \
+ : mailleur.sql
+ cpp -P -DMYSQL mailleur.sql > mailleur.mysql
+
+#--------------------------------------------------------------------
+clean :
+ @ rm -fr mailleur.mysql mailleur.postg
#define CRYPTED MEDIUMBLOB
#endif
+/********************************************************/
+/********************************************************/
+/* */
+/* User available email definition table */
+/* */
+/********************************************************/
+CREATE TABLE emails (
+ email TEXT, //user email
+ space INTEGER //space used by user email
+ DFLT 0,
+ mxspace INTEGER //Maximun space available
+ DFLT 20000 //to user (20 Gig).
+ );