mailfilter is set to recieve 0 lines along with the
header (TOP 21 0). It would be very useful to be able
to set it to a small number to recieve some additional
information. An example: I am using mmm3.sf.net to scan
for SWEN-virus emails, to do this I fetch 25 lines
along with the header to be able to filter the content
of the fake HTML-mails and the mimetype of the fake
returned email.
Logged In: NO
Here's how; but you'll have to recompile yourself. It
works, in that mailfilter grabs the extra lines. There
may be nasty side effects when trying to match the body
rather than just the header; I haven't tested it much.
I can't see _how_ there might be nasty side effects,
but you don't want to lose all your mail, do you? So
test carefully...
For version 0.6.2
1) change line 251 in config.h to:
#define PREVIEW_COMMAND "TOP %d %d\r\n"
2) add a new line following, for (eg 5 extra lines)
#define PREVIEW_PK_EXTRA 5
3) change line 150 in PopAccount.cc, to:
snprintf(cmd, sizeof(cmd), PREVIEW_COMMAND, i + 1, PREVIEW_PK_EXTRA);
OR the much simpler vesion, which I haven't tested, ...
just change line 251 in config.h to:
#define PREVIEW_COMMAND "TOP %d 5\r\n"