Search Encrypted Messages - Mozilla

This is a discussion on Search Encrypted Messages - Mozilla ; Hi! Is there a way to search encrypted messages in thunderbird? (I use version 2.0.0.6 under ubuntu). I think at least it should be possible to do this in command line using a bash script (search the files where thunderbird ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: Search Encrypted Messages

  1. Search Encrypted Messages

    Hi!

    Is there a way to search encrypted messages in thunderbird? (I use
    version 2.0.0.6 under ubuntu).

    I think at least it should be possible to do this in command line
    using a bash script (search the files where thunderbird stores mail
    directly - it's mbox format, isn't is?). But I don't know how.

    thanks in advance!
    nic

  2. Re: Search Encrypted Messages


    On Apr 10, 6:01 pm, g wrote:
    > nic.d....@googlemail.com wrote:
    > > Is there a way to search encrypted messages in thunderbird? (I use
    > > version2.0.0.6under ubuntu).

    >
    > yes
    >

    But there is no thunderbird add-on that can do this?

    > > I think at least it should be possible to do this in command line
    > > using a bash script

    >
    > send yourself an encrypted message, then open it with kwrite or any
    > other plain text message to see what is there.
    >
    > once you see how email is composed and delimited, you should understand
    > how to set your script.
    >

    I think I need more help since I have no experience in bash scripting
    or programming.

    Ok, I created a folder called test in thunderbird, send some encrypted
    mail to myself (with/ without pgp/mime option, with and without
    attachment). Then I led the following script (I call it sepfiles) run
    on the corresponding file test in ~/.mozilla-thunderbird/.../Mail/
    pop.../

    sepfiles
    ------------------------------
    #!/bin/bash
    rm -r /tmp/search_DIR
    mkdir /tmp/search_DIR

    #I do not know exactly why that works!
    FILENO=0000 export FILENO

    /usr/bin/formail -d -s sh -c 'cat - >/tmp/search_DIR/Mail_$FILENO' <$1
    ------------------------


    (Mail_000 ^= without pgp/mime wihtout attachment
    Mail_001 ^= with pgp/mime without attachement
    ....)

    Then cd /tmp/search_DIR

    gpg -d Mail_001 works

    but

    gpg -d Mail_000

    gives gpg: CRC error; 655BDB - DC3655

    I don't understand this.

    Another problem is that I lose the header information:

    gpg -o Mail_0001_f -d Mail_0001

    Then Mail_0001_f contains the encrypted body from Mail_0001, but not
    the information about sender, subject etc.

  3. Re: Search Encrypted Messages

    On 17 Apr., 05:50, g wrote:
    > nic.d....@googlemail.com wrote:
    > > On Apr10,6:01pm, g wrote:
    > >> nic.d....@googlemail.com wrote:
    > >>> Is there a way to search encrypted messages in thunderbird? (I use
    > >>> version2.0.0.6under ubuntu).
    > >> yes

    >
    > > But there is no thunderbird add-on that can do this?

    >
    > before going further into this i, a question needs to be answered.
    >
    > are you wanting to search to find if there are encrypted emails or are
    > you wanting to search and read encrypted emails outside of tbird?
    >


    Basically my problem is, that I have thousands of encrypted messages
    and Shift+F (Edit->Find->Search Messages) doesn't find keywords in the
    body of them. For example if I want to find all messages in my inbox
    which contain the string s (in body) then thunderbird finds via "Shift
    +F" only those messages which are not encrypted and contain s but not
    those which *are* encrypted and contain s (in the decrypted version).
    (I think The Bat does not have this problem, but I like Thunderbird
    and Linux :-)).

    So I thought perhaps there is an extension which replaces the standard
    thunderbird "search messages" mechanism which is also capable to
    handle encrypted messages too. But I searched the web for hours and
    did not find one. Then my hope was that it should at least be possible
    to set up a bash script, which can search a string s in a mbox file
    which contains thousands of messages, some of them encrypted some of
    them not, the encrypted one perhaps with different keys, attachments
    etc., and give me those messages in an unencrypted form which contain
    s (perhaps write in a temporay folder those mails containing s; every
    mail in a single file ...). It would be great if the script also could
    highlight the occurrences of s in every mail containing s, but I think
    that's going to be more complicated ?! But it would be ok, if it only
    finds those messages which contain s and stores them in a folder in
    separate files decrypted, then I can open them with emacs or use grep
    etc...

    > --
    >
    > peace out.
    >
    > tc,hago.
    >
    > g
    > .
    >
    > ****
    > in a free world without fences, who needs gates.
    > **
    > help microsoft stamp out piracy - give linux to a friend today
    > **
    > to mess up a linux box, you need to work at it;
    > to mess up an ms windows box, you just need to *look at* it.
    > **
    > learn linux:
    > 'Rute User's Tutorial and Exposition'http://rute.2038bug.com/index.html
    > 'The Linux Documentation Project'http://www.tldp.org/
    > 'LDP HOWTO-index'http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
    > 'HowtoForge'http://howtoforge.com/
    > ****
    >
    > signature.asc
    > <1KBAnzeigenHerunterladen



  4. Re: Search Encrypted Messages

    Hi!

    I don't understand why g's suggestion solves my problem. If I follow
    him I will get a folder where all my encrypted messages are. But they
    still *are* encrypted!

    Let me be more concrete: Suppose I want do find all messages which
    contain the string say "computer", even the encrypted ones. How can I
    do this?

    Newsgroups suggestion seems to be a nice idea, but then nevertheless I
    need a method to decrypt all my encrypted messages in my email-archive
    - and I cannot do this manually because there are thousands of them.

    nic

  5. Re: Search Encrypted Messages

    On 18 Apr., 18:34, g wrote:
    > nic.d....@googlemail.com wrote:
    > > I don't understand why g's suggestion solves my problem. If I follow
    > > him I will get a folder where all my encrypted messages are. But they
    > > still *are* encrypted!

    >
    > because you did not explain in your previous post what you are now
    > stating.
    >


    I think I tried hard to explain it. But now it seems that you
    understand my problem better. It's a pity that you don't want to help
    me anymore.

    > yes, they will be still encrypted. you have to have key to decrypt them
    > and save them before you can read them or search them.
    >
    > from your post, i get impression that you are wanting others to do
    > everything for you, which is not going to happen.
    >


    No, I don't think so. I tried to set up a bash script and posted what
    went wrong. I have concrete problems which I cannot solve by myself in
    reasonable time. Yes perhaps I could figure it out completely by
    myself, if I would study it long enough, perhaps I would succeed,
    perhaps not, but I think that one can say something like this about
    almost any problem. And groups like mozilla.support.thunderbird would
    be superfluous. But as I said I am not an expert only a stupid user
    who tries to ask experts in this group to solve a problem, which he
    seriously tried to solve by himself before asking.

    By the way: If we solve my problem in this discussion, other people
    can benefit from it too.

    >
    > you need to get yourself on internet, do some googleing for what you are
    > trying to do. mainly, log sites that explain just how pgp and gpg work
    > and are used.
    >


    I tried this for days but without succession. So it seems natural to
    ask experts.

    > if you have all these thousands of encrypted messages in you email folders,
    > why have you not already read them to know what is in them?
    >


    First of all let me mention that there are other people which did have
    the same or a similar problem e.g.
    https://bugzilla.mozilla.org/show_bug.cgi?id=188988
    https://bugzilla.mozilla.org/show_bug.cgi?id=280588
    http://www.mozilla-enigmail.org/foru...73723&start=15

    And according your (perhaps rhetorical) question: In fact I did read
    (almost) every message which is saved encrypted in my inbox folder. I
    received it, decrypted it and read it. (But thunderbird didn't save it
    decrypted as you know). But some messages are five years old and I
    didn't remember the exact content of every message, as you can
    imagine. And in fact I can decrypt every of those messages if I want,
    they are encrypted with my public keys and I do know the passwords.
    Furthermore most of the messages contain discussions or more generally
    informations which are interesting today even though the mails are
    some years old. As most of the messages are encrypted the only way to
    find some old information or discussion is to search the "subject"
    fields, "sender", or "date" fields. But that is not very practicable,
    i need to search the body's too. (Sure, evidently I could do this
    manually, click on every message, type my password, read it or search
    a string and do this thousands of times to find the relevant
    information - but that would be very crazy and stupid).

    > therefore, i have come to one conclusion, these are not your emails.
    > they belong to someone else and you are trying to snoop thru them to
    > find out what is in them.
    >
    > granted, i could be wrong. but i am only going by what i am seeing in
    > your post to this tsl.
    >

    Yes you are definitely wrong! Suppose the following imaginary
    situation would work (in fact id does not, but i am exactly asking for
    a workaround): Start thunderbird, type Strg+F, the "search messages"
    window pops up, there an there is a option "search encrypted messages
    too" which you can activate. I do this which gives a prompt for my
    password(s) (which I *know*), I type it in, the password is
    temporarily stored and thunderbird can search in the bodys of all
    messages a certain string s etc.

    Then please answer the following question: Why would this enable me to
    encrypt messages for which I *don't know* the password(s)?

    > so, i can only say that until you can prove to me, and possible others,
    > that what you are trying to do is legal and involves your own encrypted
    > messages, i will no longer offer advice or help to you.
    >

    I hope i convinced you that everything is in fact legal and hope for
    further help.

    nic

  6. Re: Search Encrypted Messages

    On 19 Apr., 04:45, g wrote:
    > Nelson Bolyard wrote:
    > > It's not strange at all. He has all these encrypted messages because he

    >
    > if you wish to accept that all of the messages he has are his, then why,
    > if he is going to maintain messages, did he not maintain keys?
    >


    This question is not relevant because I do maintain the keys.

    > therefore, i question his rightful possession of messages.
    >
    > > find that you cannot, because your mozilla client searches the encrypted
    > > messages in their encrypted form, so it never finds what you're looking for.

    >
    > which is what encrypting messages is all about.
    >


    > > I don't have a ready solution to nic.d.m.1's problem, but he's by no means
    > > the only one with the problem, and its completely valid.

    >
    > anyone who deals with encrypting would be best advised to well know and
    > understand what they are dealing with. if not, they are asking for problems.
    >
    > anyone who does any reading about crypto/pgp/gpg should know after reading any
    > of the many site dealing with crypto/pgp/gpg that to read what is encrypted is
    > done with key.
    >
    > if they do not understand this, then they should not use encryption.
    >
    > all of this is forgetting one simple fact. why where messages encrypted to
    > begin with? to hide contents. plain and simple.
    >


    Yes that's true - but as you said before, there are various security
    "levels". (Some people just do not want to send emails in plain text
    through the net, it's a form of privacy... ) And I think as higher the
    security level as lower the ease of use. But even for higher security
    levels (which is not the case for me) you could think of situations
    where it would be desirable to have both:

    1) encrypted informations
    2) the ability to search in this informations

    My security level is very low - but not so low that I want to send all
    messages in plain text. Its like if you put private mail into an
    envelope and do not use postcards...

  7. Re: Search Encrypted Messages

    On 19 Apr., 03:09, Nelson Bolyard
    wrote:
    > g wrote, On2009-04-1816:47:
    >
    > > it is strange that you have had these encrypted messages on your system all
    > > this time and now for one reason and another, you want to read them.

    >
    > It's not strange at all. He has all these encrypted messages because he
    > has received all these encrypted messages, and his Mozilla-based email
    > client has NEVER offered him an option to store the messages decrypted.
    > So, every time he wants to see the message, he must decrypt it again.
    >
    > Now, that's sort-of OK when you know exactly which message you want to
    > read in advance, but when you need to find a message in your folder, that
    > you vaguely remember reading before, and you want to search for it, you
    > find that you cannot, because your mozilla client searches the encrypted
    > messages in their encrypted form, so it never finds what you're looking for.
    >


    Yes, exactly!

    >
    > > therefore, i will tell you this, if you encrypt something, remember and
    > > maintain the key.

    >
    > > if you can not, then build yourself a cray system. then, in your life time,
    > > you may be able to decrypt a message or two.

    >
    > > otherwise, delete the encrypted messages that you do not have keys for and
    > > gain disk space.

    >
    > You don't get it. He wants to search without having to indivudall decrypt
    > each and every message, one at a time.


    Yes, that's exactly my point.

+ Reply to Thread