mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-06-25 23:29:34 +00:00
EMAIL: Deleted vertical white space
This commit is contained in:
parent
9a1cd8c7c6
commit
92a256935b
20
apps/email.c
20
apps/email.c
|
@ -101,7 +101,6 @@ static uint8_t reverse = 0; // 0 normal, 1 reverse order
|
||||||
static char curr_mbox[80] = "INBOX";
|
static char curr_mbox[80] = "INBOX";
|
||||||
static unsigned char buf[READSZ];
|
static unsigned char buf[READSZ];
|
||||||
|
|
||||||
|
|
||||||
#define ERR_NONFATAL 0
|
#define ERR_NONFATAL 0
|
||||||
#define ERR_FATAL 1
|
#define ERR_FATAL 1
|
||||||
|
|
||||||
|
@ -279,9 +278,6 @@ void error(uint8_t fatal, const char *fmt, ...) {
|
||||||
}
|
}
|
||||||
#pragma code-name (pop)
|
#pragma code-name (pop)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Print spaces
|
* Print spaces
|
||||||
*/
|
*/
|
||||||
|
@ -339,9 +335,6 @@ void readconfigfile(void) {
|
||||||
cfg_pop_delete, cfg_smtp_server,
|
cfg_pop_delete, cfg_smtp_server,
|
||||||
cfg_smtp_domain, cfg_instdir,
|
cfg_smtp_domain, cfg_instdir,
|
||||||
cfg_emaildir, cfg_emailaddr);
|
cfg_emaildir, cfg_emailaddr);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
#pragma code-name (pop)
|
#pragma code-name (pop)
|
||||||
|
@ -505,7 +498,6 @@ uint8_t read_email_db(uint16_t startnum, uint8_t initialize, uint8_t switchmbox)
|
||||||
if (l != EMAILHDRS_SZ_ON_DISK) {
|
if (l != EMAILHDRS_SZ_ON_DISK) {
|
||||||
free(curr);
|
free(curr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (count <= MSGS_PER_PAGE) {
|
if (count <= MSGS_PER_PAGE) {
|
||||||
if (!prev)
|
if (!prev)
|
||||||
|
@ -518,7 +510,6 @@ uint8_t read_email_db(uint16_t startnum, uint8_t initialize, uint8_t switchmbox)
|
||||||
if (!initialize) {
|
if (!initialize) {
|
||||||
free(curr);
|
free(curr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
done_visible = 1;
|
done_visible = 1;
|
||||||
}
|
}
|
||||||
|
@ -535,12 +526,9 @@ uint8_t read_email_db(uint16_t startnum, uint8_t initialize, uint8_t switchmbox)
|
||||||
pos = ftell(fp) - 2L * EMAILHDRS_SZ_ON_DISK;
|
pos = ftell(fp) - 2L * EMAILHDRS_SZ_ON_DISK;
|
||||||
if (pos == -1L * EMAILHDRS_SZ_ON_DISK)
|
if (pos == -1L * EMAILHDRS_SZ_ON_DISK)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
if (fseek(fp, pos, SEEK_SET)) {
|
if (fseek(fp, pos, SEEK_SET)) {
|
||||||
error(switchmbox ? ERR_NONFATAL : ERR_FATAL, cant_seek, filename);
|
error(switchmbox ? ERR_NONFATAL : ERR_FATAL, cant_seek, filename);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -605,15 +593,12 @@ uint16_t decode_quoted_printable(uint8_t *p) {
|
||||||
if (c == '=') {
|
if (c == '=') {
|
||||||
if (p[i + 1] == '\r') // Trailing '=' is a soft '\r'
|
if (p[i + 1] == '\r') // Trailing '=' is a soft '\r'
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
// Otherwise '=xx' where x is a hex digit
|
// Otherwise '=xx' where x is a hex digit
|
||||||
c = 16 * hexdigit(p[i + 1]) + hexdigit(p[i + 2]);
|
c = 16 * hexdigit(p[i + 1]) + hexdigit(p[i + 2]);
|
||||||
p[j++] = c;
|
p[j++] = c;
|
||||||
i += 3;
|
i += 3;
|
||||||
} else if (c == '?')
|
} else if (c == '?')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
else {
|
else {
|
||||||
p[j++] = c;
|
p[j++] = c;
|
||||||
++i;
|
++i;
|
||||||
|
@ -853,8 +838,6 @@ uint8_t word_wrap_line(FILE *fp, char **s, uint8_t cols, char mode) {
|
||||||
if (l > (ret - ss) + 1) // If '\r' is not at the end ...
|
if (l > (ret - ss) + 1) // If '\r' is not at the end ...
|
||||||
nextline = ss + (ret - ss) + 1; // Keep track of next line(s)
|
nextline = ss + (ret - ss) + 1; // Keep track of next line(s)
|
||||||
l = ret - ss;
|
l = ret - ss;
|
||||||
|
|
||||||
|
|
||||||
if ((col + l) <= cols) { // Fits on this line
|
if ((col + l) <= cols) { // Fits on this line
|
||||||
col += l;
|
col += l;
|
||||||
putline(fp, ss);
|
putline(fp, ss);
|
||||||
|
@ -974,8 +957,6 @@ void sanitize_filename(char *s) {
|
||||||
s[j] = '\0';
|
s[j] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define FROMAUX 0
|
#define FROMAUX 0
|
||||||
#define TOAUX 1
|
#define TOAUX 1
|
||||||
/*
|
/*
|
||||||
|
@ -1056,7 +1037,6 @@ uint8_t is_mime_boundary(char *p) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define ENC_7BIT 0 // 7bit
|
#define ENC_7BIT 0 // 7bit
|
||||||
#define ENC_QP 1 // Quoted-Printable
|
#define ENC_QP 1 // Quoted-Printable
|
||||||
#define ENC_B64 2 // Base64
|
#define ENC_B64 2 // Base64
|
||||||
|
|
Loading…
Reference in New Issue
Block a user