1 | #include <stdarg.h> 2 | #include <stdio.h> 3 | #include <strings.h> 4 | #include <unistd.h> 5 | #include <stdlib.h> 6 | #include <glib.h> 7 | #include "UP_util.h" 8 | 9 | extern int tracing; 10 | extern int reading_from_mail; 11 | /* global config variables */ 12 | extern char *tmpdir; 13 | extern char *notitxt; 14 | extern char *fwtxt; 15 | extern char *humailbox; 16 | extern char *notimailtxt; 17 | extern char *fwmailtxt; 18 | 19 | char * NT_ntfy_filename_generate( const char * tmpdir, const char * e_mail); 20 | 21 | char * NT_forwd_filename_generate( const char * tmpdir, const char * e_mail); 22 | 23 | char * NT_crossntfy_filename_generate( const char * tmpdir, const char * e_mail); 24 | 25 | void NT_add_to_ntfy( char * filename, char * fmt, ... ); 26 | 27 | void NT_send_ntfy( const char * filename, const char * to_address, const char * mailercommand); 28 | 29 | void NT_log_ntfy( const char * filename, const char * logfilename); 30 | 31 | void NT_delete_ntfy( const char * filename); 32 | 33 | void NT_send_ntfy_list( GHashTable * filehash, char * mailercommand); 34 | 35 | void NT_log_ntfy_list( GHashTable * filehash, char * log_file); 36 | 37 | void NT_delete_ntfy_list( GHashTable * filehash); 38 | 39 | GSList * NT_gather_ntfy_addresses( const char * old_object, const char * new_object); 40 | 41 | void NT_write_all_ntfs(char * old_object, char * new_object, /*const char * notif_log, 42 | const char * forw_log, const char * cross_log,*/ const char * tempdir, 43 | GHashTable * ntfy_hash, GHashTable * forwd_hash, GHashTable * cross_hash, 44 | const char * from_address); 45 | 46 | void NT_write_all_frwds(char * old_object, char * new_object, /*const char * notif_log, 47 | const char * forw_log, const char * cross_log,*/ const char * tempdir, 48 | GHashTable * ntfy_hash, GHashTable * forwd_hash, GHashTable * cross_hash, 49 | const char * from_address); 50 |