comparison src/masqmail.h @ 310:f10a56dc7481

reworked online_detect to the simpler online_query Only pipe is supported now. Use online_query="/bin/cat /path/to/file" instead of online_detect=file online_file=/path/to/file and online_query="/path/to/some/script foo" instead of online_detect=pipe online_pipe="/path/to/some/script foo" See man page masqmail.conf(5) and admin/config-transition.
author meillo@marmaro.de
date Sun, 24 Apr 2011 19:14:38 +0200
parents 3e3c280ca5b2
children e230bcd0f1c6
comparison
equal deleted inserted replaced
309:273f6c9eb6a2 310:f10a56dc7481
181 int (*localpartcmp) (const char *, const char *); 181 int (*localpartcmp) (const char *, const char *);
182 182
183 GList *local_net_routes; 183 GList *local_net_routes;
184 GList *connect_routes; /* list of pairs which point to lists */ 184 GList *connect_routes; /* list of pairs which point to lists */
185 185
186 gchar *online_detect; 186 gchar *online_query;
187 gchar *online_file;
188 gchar *online_pipe;
189 187
190 gchar *errmsg_file; 188 gchar *errmsg_file;
191 gchar *warnmsg_file; 189 gchar *warnmsg_file;
192 GList *warn_intervals; 190 GList *warn_intervals;
193 gint max_defer_time; 191 gint max_defer_time;
476 gboolean queue_run_online(void); 474 gboolean queue_run_online(void);
477 void queue_list(void); 475 void queue_list(void);
478 gboolean queue_delete(gchar * uid); 476 gboolean queue_delete(gchar * uid);
479 477
480 /* online.c */ 478 /* online.c */
481 gchar *detect_online(); 479 gchar *online_query();
482 void set_online_name(gchar * name);
483 480
484 /* permissions.c */ 481 /* permissions.c */
485 gboolean is_ingroup(uid_t uid, gid_t gid); 482 gboolean is_ingroup(uid_t uid, gid_t gid);
486 void set_euidgid(gint uid, gint gid, uid_t * old_uid, gid_t * old_gid); 483 void set_euidgid(gint uid, gint gid, uid_t * old_uid, gid_t * old_gid);
487 void set_identity(uid_t old_uid, gchar * task_name); 484 void set_identity(uid_t old_uid, gchar * task_name);