Daniel Urstöger wrote:
> Hello people,
> 
> I am currently developing a web interface for accessing emails
> within dbmail directly through that web site, something like Horde or
> Roundcube but specifically for dbmail.
> Reading access is handled directly via SQL and changing stuff I mainly
> handle via IMAP.

Mmm, please consider that storage models can and will change. The IMAP protocol
and it's RFC extensions are cast in solid rock.

> 
> Two questions have came up though:
> 
> 1). how can I see if a email has been forwarded? There is a flag
> for answered but forwarded doesn´t seem to be there.

That's correct. Forwarded is not a supported flag (yet).

> 
> 2). is there an easy way to determine if an email has an attachment or
> not? I could use a simple check of size but this is not 100% accurate
> and parsing through all emails and check the mime structure becomes
> quite time consuming.

For now:  use IMAP's "FETCH n (BODYSTRUCTURE)"

2.3.0 (coming to you later this month) will support arbitrary labels. Whether a
message will then be flagged when forwarded depends on the client. 2.3 will also
use a radically different storage model for messages that will make it
non-trivial (read near impossible) to reconstruct messages through simple sql
without doing mime-reconstruction.


> 
> Well, thanks for your help!
> 
> Kind regards,
> Daniel
> _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to