| verzia 1.10, 2001/10/27 20:32:43 |
verzia 1.11, 2001/10/30 17:24:02 |
|
|
| /* |
/* |
| * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
* Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.11 2001/10/30 17:24:02 host8 |
| |
* New implementation of http request. |
| |
* |
| * Revision 1.10 2001/10/27 20:32:43 host8 |
* Revision 1.10 2001/10/27 20:32:43 host8 |
| * mail2sms.c splited to multiple files. |
* mail2sms.c splited to multiple files. |
| * Little improvements in Makefile.in. |
* Little improvements in Makefile.in. |
|
|
| * Removed white characters in SMS message. |
* Removed white characters in SMS message. |
| * Minor bugfixies & lots of improvements. |
* Minor bugfixies & lots of improvements. |
| * Unneccessary files removed from CVS repository. |
* Unneccessary files removed from CVS repository. |
| * |
|
| * Revision 1.5 2001/09/28 16:11:25 host8 |
|
| * Test, if log message was changed good |
|
| * |
|
| */ |
*/ |
| |
|
| #ifndef _MAIL2SMS_H |
#ifndef _MAIL2SMS_H |
|
|
| #define GLOBTELNET 3 |
#define GLOBTELNET 3 |
| #define MTNSMS 4 |
#define MTNSMS 4 |
| |
|
| /* |
|
| #define USER_AGENT "User-Agent: Lynx/2.8.4dev.7 libwww-FM/2.14\r\n" |
|
| "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; DigExt)\r\n" |
|
| */ |
|
| #define USER_AGENT "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Linux) Opera 5.0 [en]\r\n" |
|
| |
|
| #define HTTP_GET 0 |
|
| #define HTTP_POST 1 |
|
| |
|
| typedef struct GLOBALS_STRUCT { |
|
| char *number; |
|
| #ifdef DEBUG |
#ifdef DEBUG |
| int debug; |
int debug; |
| #endif |
#endif |
| |
|
| |
typedef struct GLOBALS_STRUCT { |
| |
char *number; |
| char text[SMS_LEN + 1]; |
char text[SMS_LEN + 1]; |
| int is_mail:1; |
int is_mail:1; |
| int reverse:1; |
int reverse:1; |
| int skipped_header:1; |
int skipped_header:1; |
| int is_header:1; |
int is_header:1; |
| int is_forwarded:1; |
int is_forwarded:1; |
| char *goto_object_moved; |
|
| } GLOB; |
} GLOB; |
| |
|
| typedef struct WWW_STRUCT { |
|
| int method; |
|
| char *host; |
|
| char *referer; |
|
| char *cookies; |
|
| char *user_agent; |
|
| } WWW; |
|
| |
|
| typedef struct SERVER { |
typedef struct SERVER { |
| int id; |
int id; |
| char *desc; |
char *desc; |
| Riadok 85 typedef struct SERVER { |
|
| Riadok 67 typedef struct SERVER { |
|
| |
|
| extern char *message, *scratch, *keybd; |
extern char *message, *scratch, *keybd; |
| extern GLOB g; |
extern GLOB g; |
| extern WWW www; |
|
| extern SERVER servers[]; |
extern SERVER servers[]; |
| extern int id; /* index to servers[] */ |
extern int id; /* index to servers[] */ |
| |
|
| |
extern void void_read_at_exit(void); |
| |
extern void my_free(void *ptr); |
| |
|
| #endif /* #ifndef _MAIL2SMS_H */ |
#endif /* #ifndef _MAIL2SMS_H */ |
| |
|