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

Oct 11, 2013 at 1:10pm
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
Oct 11, 2013 at 3:45pm
closed account (NUj6URfi)
Please post your full code.
Oct 11, 2013 at 4:17pm
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?
Oct 11, 2013 at 6:03pm
closed account (NUj6URfi)
If I tried compiling that one line nothing would happen.
Oct 11, 2013 at 6:18pm
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
Oct 11, 2013 at 6:38pm
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/
Oct 11, 2013 at 7:39pm
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
Oct 12, 2013 at 1:07pm
closed account (NUj6URfi)
Sorry. Thought this was c++ compile code. My mistake.
Topic archived. No new replies allowed.