Page 3 of 9
Re: libcurl.pbi
Posted: Fri Aug 04, 2023 12:15 pm
by infratec
Look at:
Code: Select all
Procedure.i IMAP_Search(*IMAP.IMAPStructure, List MailIDList.i(), Search$="NEW", TargetFolder$="INBOX")
Especially at the option TargetFolder$
Re: libcurl.pbi
Posted: Fri Aug 04, 2023 12:56 pm
by Little John
How could I miss this thread?
Many thanks, infratec

Re: libcurl.pbi
Posted: Fri Aug 04, 2023 8:00 pm
by infratec
Added
EMailWithFileAttachment.pb
as example.
Re: libcurl.pbi
Posted: Sat Oct 28, 2023 10:49 am
by Fruity
Does it work on Linux?
Re: libcurl.pbi
Posted: Sat Oct 28, 2023 11:06 am
by jacdelad
Fruity wrote: Sat Oct 28, 2023 10:49 am
Does it work on Linux?
Only if you get the DLL to work.
Re: libcurl.pbi
Posted: Sat Oct 28, 2023 1:39 pm
by infratec
Yes, it works in linux and macOS too.
Re: libcurl.pbi
Posted: Tue Oct 31, 2023 8:09 am
by GogaII
I tried to launch the file FTPS_download.pb and received "invalid memory access (write error at address 0)" in the line curl_global_init(#CURL_GLOBAL_DEFAULT)
I compiled the file in exe, launched it as an Administrator, and set my path for #LOCAL_FILE, but it didn't help.
Could you show an example of a file download with the progress()?
I appreciate any help you can provide.
Re: libcurl.pbi
Posted: Tue Oct 31, 2023 8:24 am
by infratec
ftps is not available in the PB inbuild libcurl.
That's the reason for:
But then you need to copy the libcurl.dll beside your exe.
Re: libcurl.pbi
Posted: Fri Nov 03, 2023 9:18 am
by infratec
Updated the libcurl dll to 8.4.0
Changed the ImportC statement for linux and macOS.
Added an error message when curl_easy_perform() fails in the default example.
But ... it looks like I have a problem on macOS ARM.
Code: Select all
curl_easy_setopt_str(curl, #CURLOPT_URL, "https://www.purebasic.fr")
Does not work. On Intel mac -> no problem.
Re: libcurl.pbi
Posted: Fri Nov 17, 2023 11:51 pm
by infratec
Added a small example for pop3s
It reads the first email in the INBOX
Tested with gmx.net (you need to enable pop3 access inside gmx)
Re: libcurl.pbi
Posted: Sat Nov 18, 2023 10:39 am
by BarryG
Thanks... but I have nothing in my Inbox at the moment, and the first email it gets for me is an archived one dated 18 Apr 2013. I ran it again and got a different archived old email. I really don't think there's going to be any way to achieve what I want (just parse the Inbox), but thanks for trying! I really appreciate it.
Re: libcurl.pbi
Posted: Sat Nov 18, 2023 12:02 pm
by infratec
pop3: Added a procedure to get a list of the e-mails.
removed the file, stay tuned ...
Re: libcurl.pbi
Posted: Sat Nov 18, 2023 12:33 pm
by BarryG
Will wait for an update. Thanks for your patience and kindness!
Re: libcurl.pbi
Posted: Sat Nov 18, 2023 12:47 pm
by infratec
Added more functions to pop3
Re: libcurl.pbi
Posted: Sun Nov 19, 2023 2:11 am
by BarryG
Just woke up to a new day and your new POP3 example works! Thanks! I've also got a version from HeX0R, so I'll see which works best for me. Thank you BOTH for helping me with this.