|
|
|
@ -338,7 +338,7 @@ choose_alternative(struct message *msg, int depth)
|
|
|
|
|
blaze822_mime_action
|
|
|
|
|
reply_mime(int depth, struct message *msg, char *body, size_t bodylen)
|
|
|
|
|
{
|
|
|
|
|
(void) depth;
|
|
|
|
|
(void)depth;
|
|
|
|
|
|
|
|
|
|
char *ct = blaze822_hdr(msg, "content-type");
|
|
|
|
|
char *mt = mimetype(ct);
|
|
|
|
@ -367,7 +367,7 @@ reply_mime(int depth, struct message *msg, char *body, size_t bodylen)
|
|
|
|
|
blaze822_mime_action
|
|
|
|
|
list_mime(int depth, struct message *msg, char *body, size_t bodylen)
|
|
|
|
|
{
|
|
|
|
|
(void) body;
|
|
|
|
|
(void)body;
|
|
|
|
|
|
|
|
|
|
char *ct = blaze822_hdr(msg, "content-type");
|
|
|
|
|
if (!ct)
|
|
|
|
@ -443,7 +443,7 @@ writefile(char *name, char *buf, ssize_t len)
|
|
|
|
|
blaze822_mime_action
|
|
|
|
|
extract_mime(int depth, struct message *msg, char *body, size_t bodylen)
|
|
|
|
|
{
|
|
|
|
|
(void) depth;
|
|
|
|
|
(void)depth;
|
|
|
|
|
|
|
|
|
|
char *filename = mime_filename(msg);
|
|
|
|
|
|
|
|
|
@ -576,12 +576,12 @@ print_date_header(char *v)
|
|
|
|
|
int p = 3;
|
|
|
|
|
|
|
|
|
|
int z;
|
|
|
|
|
switch(l) {
|
|
|
|
|
switch (l) {
|
|
|
|
|
case 'y':
|
|
|
|
|
z = d / (60*60*24*7*52);
|
|
|
|
|
d = d % (60*60*24*7*52);
|
|
|
|
|
if (z > 0) {
|
|
|
|
|
printf("%d year%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d year%s", z, z > 1 ? "s" : "");
|
|
|
|
|
if (!--p) break;
|
|
|
|
|
printf(", ");
|
|
|
|
|
}
|
|
|
|
@ -590,7 +590,7 @@ print_date_header(char *v)
|
|
|
|
|
z = d / (60*60*24*7);
|
|
|
|
|
d = d % (60*60*24*7);
|
|
|
|
|
if (z > 0) {
|
|
|
|
|
printf("%d week%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d week%s", z, z > 1 ? "s" : "");
|
|
|
|
|
if (!--p) break;
|
|
|
|
|
printf(", ");
|
|
|
|
|
}
|
|
|
|
@ -599,7 +599,7 @@ print_date_header(char *v)
|
|
|
|
|
z = d / (60*60*24);
|
|
|
|
|
d = d % (60*60*24);
|
|
|
|
|
if (z > 0) {
|
|
|
|
|
printf("%d day%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d day%s", z, z > 1 ? "s" : "");
|
|
|
|
|
if (!--p) break;
|
|
|
|
|
printf(", ");
|
|
|
|
|
}
|
|
|
|
@ -608,7 +608,7 @@ print_date_header(char *v)
|
|
|
|
|
z = d / (60*60);
|
|
|
|
|
d = d % (60*60);
|
|
|
|
|
if (z > 0) {
|
|
|
|
|
printf("%d hour%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d hour%s", z, z > 1 ? "s" : "");
|
|
|
|
|
if (!--p) break;
|
|
|
|
|
printf(", ");
|
|
|
|
|
}
|
|
|
|
@ -617,14 +617,14 @@ print_date_header(char *v)
|
|
|
|
|
z = d / (60);
|
|
|
|
|
d = d % (60);
|
|
|
|
|
if (z > 0) {
|
|
|
|
|
printf("%d minute%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d minute%s", z, z > 1 ? "s" : "");
|
|
|
|
|
if (!--p) break;
|
|
|
|
|
printf(", ");
|
|
|
|
|
}
|
|
|
|
|
/* FALL THROUGH */
|
|
|
|
|
case 's':
|
|
|
|
|
z = d;
|
|
|
|
|
printf("%d second%s", z, z>1 ? "s" : "");
|
|
|
|
|
printf("%d second%s", z, z > 1 ? "s" : "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (t < now)
|
|
|
|
@ -728,7 +728,7 @@ main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
int c;
|
|
|
|
|
while ((c = getopt(argc, argv, "h:A:qrtHLNx:O:Rn")) != -1)
|
|
|
|
|
switch(c) {
|
|
|
|
|
switch (c) {
|
|
|
|
|
case 'h': hflag = optarg; break;
|
|
|
|
|
case 'A': Aflag = optarg; break;
|
|
|
|
|
case 'q': qflag = 1; break;
|
|
|
|
|