1 /* 2 * $Id: qmailadmin.h,v 1.1.1.1.2.6 2006/02/05 17:07:27 tomcollins Exp $ 3 * Copyright (C) 1999-2004 Inter7 Internet Technologies, Inc. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18 */ 19 20 #include <time.h> 21 22 /* Some platforms use '.maildir' instead of 'Maildir' as the mail directory 23 * name. Furture versions of Vpopmail might define it. Until then, change 24 * it below. 25 */ 26 #ifndef MAILDIR 27 #define MAILDIR "Maildir" 28 #endif 29 30 /* max # of forwards a user can set on the Modify User screen */ 31 #define MAX_FORWARD_PER_USER 5 32 33 #define QMAILADMIN_TEMPLATEDIR "QMAILADMIN_TEMPLATEDIR" 34 35 #define SHOW_VERSION_LINK 1 36 37 #define MAX_FILE_NAME 100 38 39 #ifdef MAX_BUFF 40 #undef MAX_BUFF 41 #endif 42 #define MAX_BUFF 500 43 #define MAX_BIG_BUFF 5000 44 45 #define MAX_LANG_STR 350 46 47 #define QMAILADMIN_UNLIMITED -1 48 49 #define NO_ADMIN 0 50 51 #define DOMAIN_ADMIN 2 52 #define USER_ADMIN 3 53 54 #define NUM_SQL_OPTIONS 6 55 56 #define ACTION_MODIFY 1 57 #define ACTION_DELETE 2 58 59 void del_id_files( char *); 60 void init_globals(); 61 void quickAction (char *username, int action); 62