# Thunderbird add on

**URL:** <https://community.ciphermail.com/t/thunderbird-add-on/498>\
**Category:** Gateway\
**Created:** [April 3, 2016, 4:56pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498 "2016-04-03T16:56:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias\_Henze](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Matthias\_Henze](https://community.ciphermail.com/u/Matthias_Henze)\
**Post date:** [April 3, 2016, 4:56pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/1 "2016-04-03T16:56:03Z")

</div>

Hi,

I've created a proof of concept Thunderbird add on (based on Display  
Mail User Agent), which indicates if a incoming mail was encrypted an/or  
signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
need to understand them better. What's all about these numbers?

&nbsp;&nbsp;&nbsp;-0-0  
&nbsp;&nbsp;&nbsp;-1-0  
&nbsp;&nbsp;&nbsp;-0-1

These are the combinations I found so far. But I found no rule when a 1  
appears and if, why. Could there be other numbers? My problem is that I  
can ask the TB API only for complete headers and not for fragments. This  
is why I need to know which combinations are possible.

Besides of these numbers I also need a good explanation what exactly  
could be derived form the headers. E.g. is it possible that a signed  
mail is verified but not trusted and vice versa.

TIA  
Matthias

> **···**
>
> --
> 
> MHC SoftWare GmbH  
> Fichtera 17  
> 96274 Itzgrund/Germany
> 
> voice: +49-(0)9533-92006-0  
> fax: +49-(0)9533-92006-6  
> e-mail: info(a)mhcsoftware.de
> 
> HR Coburg: B2242  
> Geschaeftsfuehrer: Matthias Henze

---

<div class="post-metadata">

**Author:** ![Matthias\_Henze](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Matthias\_Henze](https://community.ciphermail.com/u/Matthias_Henze)\
**Post date:** [April 3, 2016, 5:24pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/2 "2016-04-03T17:24:24Z")

</div>

For a "screenshot" see:

[https://wiki.mhcsoftware.de/ciphermail\_thunderbird\_addon](https://wiki.mhcsoftware.de/ciphermail_thunderbird_addon)

> **···**
>
> Am 03.04.2016 um 18:56 schrieb Matthias Henze:
> 
> > Hi,
> > 
> > I've created a proof of concept Thunderbird add on (based on Display  
> > Mail User Agent), which indicates if a incoming mail was encrypted an/or  
> > signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
> > need to understand them better. What's all about these numbers?
> > 
> > &nbsp;&nbsp;&nbsp;-0-0  
> > &nbsp;&nbsp;&nbsp;-1-0  
> > &nbsp;&nbsp;&nbsp;-0-1
> > 
> > These are the combinations I found so far. But I found no rule when a 1  
> > appears and if, why. Could there be other numbers? My problem is that I  
> > can ask the TB API only for complete headers and not for fragments. This  
> > is why I need to know which combinations are possible.
> > 
> > Besides of these numbers I also need a good explanation what exactly  
> > could be derived form the headers. E.g. is it possible that a signed  
> > mail is verified but not trusted and vice versa.
> > 
> > TIA  
> > Matthias
> 
> --
> 
> MHC SoftWare GmbH  
> Fichtera 17  
> 96274 Itzgrund/Germany
> 
> voice: +49-(0)9533-92006-0  
> fax: +49-(0)9533-92006-6  
> e-mail: info(a)mhcsoftware.de
> 
> HR Coburg: B2242  
> Geschaeftsfuehrer: Matthias Henze

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [April 4, 2016, 7:48am UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/3 "2016-04-04T07:48:45Z")

</div>

An S/MIME email can be encrypted and signed on multiple (CMS) levels. In  
most cases a message is first signed and then encrypted. However a  
message can for example also be signed, then encrypted and again signed.  
In principle there can be an unlimited number of levels of signing and  
encryption (although most S/MIME clients will probably not be able to  
handle the message). An message can also have multiple signers for the  
same level. So for example the message is first signed by person A \*and\*  
person B and then encrypted. Or to make it more exotic, a message if  
first signed by person A, then encrypted, then signed by the gateway.

The information about these CMS levels is stored in the headers with  
-0-0. -1-0 etc. For a brief explanation of these headers see:

[https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a](https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a)

If you need more detailed information please let me know.

Kind regards,

Martijn Brinkers

> **···**
>
> On 04/03/2016 06:56 PM, Matthias Henze wrote:
> 
> > Hi,
> > 
> > I've created a proof of concept Thunderbird add on (based on Display  
> > Mail User Agent), which indicates if a incoming mail was encrypted an/or  
> > signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
> > need to understand them better. What's all about these numbers?
> > 
> > &nbsp;&nbsp;-0-0  
> > &nbsp;&nbsp;-1-0  
> > &nbsp;&nbsp;-0-1
> > 
> > These are the combinations I found so far. But I found no rule when a 1  
> > appears and if, why. Could there be other numbers? My problem is that I  
> > can ask the TB API only for complete headers and not for fragments. This  
> > is why I need to know which combinations are possible.
> > 
> > Besides of these numbers I also need a good explanation what exactly  
> > could be derived form the headers. E.g. is it possible that a signed  
> > mail is verified but not trusted and vice versa.
> 
> --  
> CipherMail email encryption
> 
> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> secure webmail pull.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [April 4, 2016, 8:05am UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/4 "2016-04-04T08:05:30Z")

</div>

> For a "screenshot" see:
> 
> [ciphermail\_thunderbird\_addon [MHC SoftWare Wiki]](https://wiki.mhcsoftware.de/ciphermail_thunderbird_addon)

This can be helpful for TB users. It would be nice if you also see the  
signer email address if the signature was valid and trusted.

Kind regards,

Martijn

> **···**
>
> On 04/03/2016 07:24 PM, Matthias Henze wrote:
> 
> > Am 03.04.2016 um 18:56 schrieb Matthias Henze:
> > 
> > > Hi,
> > > 
> > > I've created a proof of concept Thunderbird add on (based on Display  
> > > Mail User Agent), which indicates if a incoming mail was encrypted an/or  
> > > signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
> > > need to understand them better. What's all about these numbers?
> > > 
> > > &nbsp;&nbsp;&nbsp;-0-0  
> > > &nbsp;&nbsp;&nbsp;-1-0  
> > > &nbsp;&nbsp;&nbsp;-0-1
> > > 
> > > These are the combinations I found so far. But I found no rule when a 1  
> > > appears and if, why. Could there be other numbers? My problem is that I  
> > > can ask the TB API only for complete headers and not for fragments. This  
> > > is why I need to know which combinations are possible.
> > > 
> > > Besides of these numbers I also need a good explanation what exactly  
> > > could be derived form the headers. E.g. is it possible that a signed  
> > > mail is verified but not trusted and vice versa.
> > > 
> > > TIA  
> > > Matthias
> 
> --  
> CipherMail email encryption
> 
> Email encryption with support for S/MIME, OpenPGP, PDF encryption and  
> secure webmail pull.
> 
> > **[CipherMail email encryption and digital signatures](https://www.ciphermail.com)**
> >
> > Easy to use server-side email encryption for automatic encryption and digital signing of email.
> 
> Twitter: [http://twitter.com/CipherMail](http://twitter.com/CipherMail)

---

<div class="post-metadata">

**Author:** ![Matthias\_Henze](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Matthias\_Henze](https://community.ciphermail.com/u/Matthias_Henze)\
**Post date:** [April 4, 2016, 1:25pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/5 "2016-04-04T13:25:26Z")

</div>

Interesting ... a pattern where an optional part comes before a  
mandatory part 🙂

Please let me know if I'm right. I've a mail with the following headers:

X-Djigzo-Info-Encryption-Algorithm-0: 3DES, Key size: 168  
X-Djigzo-Info-Encryption-Recipient-0-0: CN=StartCom Class 1 ....  
X-Djigzo-Info-Encryption-Recipient-1-0: CN=StartCom Class 2 ....

X-Djigzo-Info-Signer-ID-0-1: CN=StartCom Class 1 ....  
X-Djigzo-Info-Signer-Verified-0-1: True  
X-Djigzo-Info-Signer-Trusted-0-1: True  
X-Djigzo-Info-Signer-Email-0-1: name(a)doamin.net

X-Djigzo-Info-Encryption-Algorithm-0 = First action was encryption of  
the mail due to the LEVEL 0

X-Djigzo-Info-Encryption-Recipient-0-0 = First certificate used for  
encryption due to the INDEX 0 of LEVEL 0

X-Djigzo-Info-Encryption-Recipient-1-0 = Second certificate used for  
encryption due to the INDEX 1 of LEVEL 0

X-Djigzo-Info-Signer-ID-0-1 = Second action was signing the mail with  
this certificate

X-Djigzo-Info-Signer-Verified-0-1 = The mail content was not modified  
while transfer

X-Djigzo-Info-Signer-Trusted-0-1 = My local Ciphermail trusts the  
certificate used for signing

X-Djigzo-Info-Signer-Email-0-1 = The mail is signed by the user using  
this e-mail address

Further more:

If after all this the mail will be encrypted again the headers will  
start with: X-Djigzo-Info-Encryption-Algorithm-2

If after this additional encryption the message gets signed again the  
headers will start with: X-Djigzo-Info-Signer-ID-0-3

For my usage:

Every encrypted mail has \*always\* \*at least\* these \*two\* headers:

X-Djigzo-Info-Encryption-Algorithm-\*  
X-Djigzo-Info-Encryption-Recipient-\*

Every signed mail has \*always\* \*at least\* these \*four\* headers:

X-Djigzo-Info-Signer-ID-\*  
X-Djigzo-Info-Signer-Verified-\*  
X-Djigzo-Info-Signer-Trusted-\*  
X-Djigzo-Info-Signer-Email-\*

> **···**
>
> Am 04.04.2016 um 09:48 schrieb Martijn Brinkers:
> 
> > On 04/03/2016 06:56 PM, Matthias Henze wrote:
> > 
> > > Hi,
> > > 
> > > I've created a proof of concept Thunderbird add on (based on Display  
> > > Mail User Agent), which indicates if a incoming mail was encrypted an/or  
> > > signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
> > > need to understand them better. What's all about these numbers?
> > > 
> > > &nbsp;&nbsp;&nbsp;-0-0  
> > > &nbsp;&nbsp;&nbsp;-1-0  
> > > &nbsp;&nbsp;&nbsp;-0-1
> > > 
> > > These are the combinations I found so far. But I found no rule when a 1  
> > > appears and if, why. Could there be other numbers? My problem is that I  
> > > can ask the TB API only for complete headers and not for fragments. This  
> > > is why I need to know which combinations are possible.
> > > 
> > > Besides of these numbers I also need a good explanation what exactly  
> > > could be derived form the headers. E.g. is it possible that a signed  
> > > mail is verified but not trusted and vice versa.
> > 
> > An S/MIME email can be encrypted and signed on multiple (CMS) levels. In  
> > most cases a message is first signed and then encrypted. However a  
> > message can for example also be signed, then encrypted and again signed.  
> > In principle there can be an unlimited number of levels of signing and  
> > encryption (although most S/MIME clients will probably not be able to  
> > handle the message). An message can also have multiple signers for the  
> > same level. So for example the message is first signed by person A \*and\*  
> > person B and then encrypted. Or to make it more exotic, a message if  
> > first signed by person A, then encrypted, then signed by the gateway.
> > 
> > The information about these CMS levels is stored in the headers with  
> > -0-0. -1-0 etc. For a brief explanation of these headers see:
> > 
> > [https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a](https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a)
> > 
> > If you need more detailed information please let me know.
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> 
> --
> 
> MHC SoftWare GmbH  
> Fichtera 17  
> 96274 Itzgrund/Germany
> 
> voice: +49-(0)9533-92006-0  
> fax: +49-(0)9533-92006-6  
> e-mail: info(a)mhcsoftware.de
> 
> HR Coburg: B2242  
> Geschaeftsfuehrer: Matthias Henze

---

<div class="post-metadata">

**Author:** ![Matthias\_Henze](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Matthias\_Henze](https://community.ciphermail.com/u/Matthias_Henze)\
**Post date:** [April 4, 2016, 6:53pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/6 "2016-04-04T18:53:48Z")

</div>

Hi,

the first alpha release:

[https://wiki.mhcsoftware.de/ciphermail\_thunderbird\_addon](https://wiki.mhcsoftware.de/ciphermail_thunderbird_addon)

Problems, bugs, typos, suggestions? Drop me a note ...

cheers  
Matthias

> **···**
>
> --
> 
> MHC SoftWare GmbH  
> Fichtera 17  
> 96274 Itzgrund/Germany
> 
> voice: +49-(0)9533-92006-0  
> fax: +49-(0)9533-92006-6  
> e-mail: info(a)mhcsoftware.de
> 
> HR Coburg: B2242  
> Geschaeftsfuehrer: Matthias Henze

---

<div class="post-metadata">

**Author:** ![Matthias\_Henze](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Matthias\_Henze](https://community.ciphermail.com/u/Matthias_Henze)\
**Post date:** [April 6, 2016, 6:06pm UTC](https://community.ciphermail.com/t/thunderbird-add-on/498/7 "2016-04-06T18:06:14Z")

</div>

How do headers look like, when a signed mail gets modified ?

> **···**
>
> Am 04.04.2016 um 09:48 schrieb Martijn Brinkers:
> 
> > On 04/03/2016 06:56 PM, Matthias Henze wrote:
> > 
> > > Hi,
> > > 
> > > I've created a proof of concept Thunderbird add on (based on Display  
> > > Mail User Agent), which indicates if a incoming mail was encrypted an/or  
> > > signed. At the moment I'm a bit confused about the Ciphermail Headers. I  
> > > need to understand them better. What's all about these numbers?
> > > 
> > > &nbsp;&nbsp;&nbsp;-0-0  
> > > &nbsp;&nbsp;&nbsp;-1-0  
> > > &nbsp;&nbsp;&nbsp;-0-1
> > > 
> > > These are the combinations I found so far. But I found no rule when a 1  
> > > appears and if, why. Could there be other numbers? My problem is that I  
> > > can ask the TB API only for complete headers and not for fragments. This  
> > > is why I need to know which combinations are possible.
> > > 
> > > Besides of these numbers I also need a good explanation what exactly  
> > > could be derived form the headers. E.g. is it possible that a signed  
> > > mail is verified but not trusted and vice versa.
> > 
> > An S/MIME email can be encrypted and signed on multiple (CMS) levels. In  
> > most cases a message is first signed and then encrypted. However a  
> > message can for example also be signed, then encrypted and again signed.  
> > In principle there can be an unlimited number of levels of signing and  
> > encryption (although most S/MIME clients will probably not be able to  
> > handle the message). An message can also have multiple signers for the  
> > same level. So for example the message is first signed by person A \*and\*  
> > person B and then encrypted. Or to make it more exotic, a message if  
> > first signed by person A, then encrypted, then signed by the gateway.
> > 
> > The information about these CMS levels is stored in the headers with  
> > -0-0. -1-0 etc. For a brief explanation of these headers see:
> > 
> > [https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a](https://www.ciphermail.com/documents/html/smime-setup-guide/#pf2a)
> > 
> > If you need more detailed information please let me know.
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> 
> --
> 
> MHC SoftWare GmbH  
> Fichtera 17  
> 96274 Itzgrund/Germany
> 
> voice: +49-(0)9533-92006-0  
> fax: +49-(0)9533-92006-6  
> e-mail: info(a)mhcsoftware.de
> 
> HR Coburg: B2242  
> Geschaeftsfuehrer: Matthias Henze
