Subversion Repositories Kolibri OS

Rev

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

Rev 5825 Rev 7746
Line 121... Line 121...
121
{
121
{
122
	int b_start, b_end, b_size, b_buf;
122
	int b_start, b_end, b_size, b_buf;
123
	int clean_mailstart;
123
	int clean_mailstart;
Line 124... Line 124...
124
 
124
 
125
	b_start = strstr(mailstart, "?B?");
125
	b_start = strstr(mailstart, "?B?");
126
	debug("b_size");
-
 
127
	debugi(b_start);
126
	debugval("b_size", b_start);
128
	if (b_start)
127
	if (b_start)
129
	{
128
	{
130
		b_end = strstr(b_start, "?=");
129
		b_end = strstr(b_start, "?=");
131
		debug("b_end");
-
 
132
		debugi(b_end);
130
		debugval("b_end", b_end);
133
		b_size = b_end - b_start;
131
		b_size = b_end - b_start;
134
		debug("b_size");
-
 
135
		debugi(b_size);
132
		debugval("b_size", b_size);
136
		b_buf = malloc(b_size);
133
		b_buf = malloc(b_size);
137
		strcpyb(mailstart, b_buf, "?B?", "?=");
134
		strcpyb(mailstart, b_buf, "?B?", "?=");
138
		debug("b_buf");
-
 
Line 139... Line 135...
139
		debug(b_buf);
135
		debugval("b_buf", b_buf);
140
 
136
 
141
		base64_decode stdcall (b_buf, b_buf, b_size-3);
137
		base64_decode stdcall (b_buf, b_buf, b_size-3);