Subversion Repositories Kolibri OS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4164
Line 35... Line 35...
35
	SEND_NLIST,
35
	SEND_NLIST,
36
	GET_ANSWER_NLIST,
36
	GET_ANSWER_NLIST,
37
	SEND_NSTAT,
37
	SEND_NSTAT,
38
	GET_ANSWER_NSTAT,
38
	GET_ANSWER_NSTAT,
39
	SEND_RETR,
39
	SEND_RETR,
40
	GET_ANSWER_RETR,
40
	GET_ANSWER_RETR
41
	FAILED
-
 
42
};
41
};
Line 43... Line 42...
43
 
42
 
44
//WindowDefinitions
43
//WindowDefinitions
45
#define WIN_W         600
44
#define WIN_W         600
Line 73... Line 72...
73
int aim;
72
int aim;
74
int ticks;
73
int ticks;
Line 75... Line 74...
75
 
74
 
Line -... Line 75...
-
 
75
char immbuffer[BUFFERSIZE];
-
 
76
 
-
 
77
llist mail_list;
76
char immbuffer[BUFFERSIZE];
78
llist letter_view;
77
 
79
 
-
 
80
#include "settings.c"
78
#include "settings.c"
81
#include "login.c"
79
#include "login.c"
82
#include "letter_attr.c"
Line 80... Line 83...
80
#include "mail_box.c"
83
#include "mail_box.c"
Line 112... Line 115...
112
{
115
{
113
	char read_data[512], pass_b64[256];
116
	char read_data[512], pass_b64[256];
114
	ReadFile(0, 512, #read_data, "/sys/network/mail.dat");
117
	ReadFile(0, 512, #read_data, "/sys/network/mail.dat");
115
	if (!read_data)
118
	if (!read_data)
116
	{
119
	{
-
 
120
		strcpy(#email_text, "testliza@ya.ru"); //temporarily, for testing
117
		strcpy(#email_text, "example@mail.com");
121
		strcpy(#pass_text, "kolibri");
118
	}
122
	}
119
	else
123
	else
120
	{
124
	{
121
		strcpy(#pass_b64, #read_data+strchr(#read_data, '\n')+1);
125
		strcpy(#pass_b64, #read_data+strchr(#read_data, '\n')+1);
122
		base64_decode stdcall (#pass_b64, #pass_text, strlen(#pass_b64));
126
		base64_decode stdcall (#pass_b64, #pass_text, strlen(#pass_b64));