30 Dec
2010
30 Dec
'10
1:58 p.m.
On Tue, 2010-12-21 at 15:56 +0330, Behrooz Afghahi wrote:
Hello,
I'm customizing squirrelmail and I want to print a line from the message in front of the subject in mailbox listing (like gmail). the problem is, when I use 'FETCH {SOME_ID} BODY[]' the message gets marked as seen. How can I fetch without setting the senn flag ?
Get first 100 characters from the message body / first mime part:
FETCH n BODY.PEEK[1]<0.100>
This of course hopes that [1] MIME part contains something usable. You should probably also fetch BODY.PEEK[1.MIME] to see what it contains. (Interestingly enough Dovecot happens to return message headers as 1.MIME when there are no MIME parts, but this won't work for other servers.)