... | ... |
@@ -186,7 +186,7 @@ typedef struct mbox_ctx { |
186 | 186 |
#define UNLOCKFILE(fp) |
187 | 187 |
#endif |
188 | 188 |
|
189 |
-static int cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx); |
|
189 |
+static int cli_parse_mbox(const char *dir, cli_ctx *ctx); |
|
190 | 190 |
static message *parseEmailFile(fmap_t *map, size_t *at, const table_t *rfc821Table, const char *firstLine, const char *dir); |
191 | 191 |
static message *parseEmailHeaders(message *m, const table_t *rfc821Table); |
192 | 192 |
static int parseEmailHeader(message *m, const char *line, const table_t *rfc821Table); |
... | ... |
@@ -302,13 +302,13 @@ static pthread_mutex_t tables_mutex = PTHREAD_MUTEX_INITIALIZER; |
302 | 302 |
#endif |
303 | 303 |
|
304 | 304 |
int |
305 |
-cli_mbox(const char *dir, int desc, cli_ctx *ctx) |
|
305 |
+cli_mbox(const char *dir, cli_ctx *ctx) |
|
306 | 306 |
{ |
307 | 307 |
if(dir == NULL) { |
308 | 308 |
cli_dbgmsg("cli_mbox called with NULL dir\n"); |
309 | 309 |
return CL_ENULLARG; |
310 | 310 |
} |
311 |
- return cli_parse_mbox(dir, desc, ctx); |
|
311 |
+ return cli_parse_mbox(dir, ctx); |
|
312 | 312 |
} |
313 | 313 |
|
314 | 314 |
/* |
... | ... |
@@ -327,7 +327,7 @@ cli_mbox(const char *dir, int desc, cli_ctx *ctx) |
327 | 327 |
* e.g. \0Content-Type: application/binary; |
328 | 328 |
*/ |
329 | 329 |
static int |
330 |
-cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx) |
|
330 |
+cli_parse_mbox(const char *dir, cli_ctx *ctx) |
|
331 | 331 |
{ |
332 | 332 |
int retcode; |
333 | 333 |
message *body; |
... | ... |
@@ -1531,7 +1531,7 @@ static int cli_scanuuencoded(cli_ctx *ctx) |
1531 | 1531 |
return ret; |
1532 | 1532 |
} |
1533 | 1533 |
|
1534 |
-static int cli_scanmail(int desc, cli_ctx *ctx) |
|
1534 |
+static int cli_scanmail(cli_ctx *ctx) |
|
1535 | 1535 |
{ |
1536 | 1536 |
char *dir; |
1537 | 1537 |
int ret; |
... | ... |
@@ -1552,7 +1552,7 @@ static int cli_scanmail(int desc, cli_ctx *ctx) |
1552 | 1552 |
/* |
1553 | 1553 |
* Extract the attachments into the temporary directory |
1554 | 1554 |
*/ |
1555 |
- if((ret = cli_mbox(dir, desc, ctx))) { |
|
1555 |
+ if((ret = cli_mbox(dir, ctx))) { |
|
1556 | 1556 |
if(!ctx->engine->keeptmp) |
1557 | 1557 |
cli_rmdirs(dir); |
1558 | 1558 |
free(dir); |
... | ... |
@@ -2022,7 +2022,7 @@ static int cli_scanraw(cli_ctx *ctx, cli_file_t type, uint8_t typercg, cli_file_ |
2022 | 2022 |
ctx->container_size = map->len; |
2023 | 2023 |
if(SCAN_MAIL && type == CL_TYPE_TEXT_ASCII && (DCONF_MAIL & MAIL_CONF_MBOX)) { |
2024 | 2024 |
*dettype = CL_TYPE_MAIL; |
2025 |
- nret = cli_scanmail(map->fd, ctx); |
|
2025 |
+ nret = cli_scanmail(ctx); |
|
2026 | 2026 |
} |
2027 | 2027 |
ctx->container_type = current_container_type; |
2028 | 2028 |
ctx->container_size = current_container_size; |
... | ... |
@@ -2341,7 +2341,7 @@ static int magic_scandesc(int desc, cli_ctx *ctx, cli_file_t type) |
2341 | 2341 |
ctx->container_type = CL_TYPE_MAIL; |
2342 | 2342 |
ctx->container_size = sb.st_size; |
2343 | 2343 |
if(SCAN_MAIL && (DCONF_MAIL & MAIL_CONF_MBOX)) |
2344 |
- ret = cli_scanmail(desc, ctx); |
|
2344 |
+ ret = cli_scanmail(ctx); |
|
2345 | 2345 |
break; |
2346 | 2346 |
|
2347 | 2347 |
case CL_TYPE_TNEF: |