curl for message body is ok, what about message from address?

Hi all
I am trying curl command line program
I ewould like to be able to fetch email just the bodies, just the from email, just the subject.

For a specific email message body I use:

c:\>curl "imaps://imap.gmail.com:993/INBOX/;UID=1/;SECTION=TEXT" -k -u user:pwd

and I get the body of the message 1.

How I do the same but just for from field?


I read that there is BODY.PEEK but I cant use it in the command line sintaxe.

Thanks a lot

Alex
closed account (NUj6URfi)
Please post your full code.
closed account (Dy7SLyTq)
What do you think he did toad? He did post his whole code... don't try to answer questions if you don't understand them. Anyways, have you verified the adress is correct? Is it possible to use smtp with curl? Is your user and pass correct?
closed account (NUj6URfi)
If I tried compiling that one line nothing would happen.
closed account (Dy7SLyTq)
Once again you show you don't know what your talking about. Curl isnt c++ code. Curl is a program you call from the command line. No one said anything about compiling
DTSCode wrote:
Once again you show you don't know what your talking about.

I'm sure toad can be forgiven for assuming the thread topic was appropriate for the forum.

DTSCode wrote:
Curl is a program you call from the command line.

http://curl.haxx.se/libcurl/cplusplus/
Yes, I was trying in the prompt first to then use that information to use C++
Do not be affraid of that! I will use c++!

Can you help me please?

Alex
closed account (NUj6URfi)
Sorry. Thought this was c++ compile code. My mistake.
Topic archived. No new replies allowed.