Search code examples
javaemailsmtpimap

It is possible to download signatures in IMAP?


Situation:

I need to make an imap client (using java mail api) that if, for example when synchronising with gmail would also download my signature.

So that next time i send a mail using SMTP, it would automatically include my gmail signature alongside with it.

Is that possible ?

Does IMAP support this or do i need to use another protocol ?


Solution

  • The signature is part of the mail client - it adds it automatically to the sent mails. The actual transport (SMTP/POP3/IMAP) knows nothing on the signature.

    You can parse the mails and search for the signature part in order to save it locally.