PurePOP3 library : POP3 functions

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: A request.

Post by gnozal »

Fangbeast wrote:Because your manual says that PurePOP3_GetMessageInfo() Must be used after PurePOP3_RetrieveMessage() and by that time, the message has been saved already.
It's not saved if you don't specify a filename.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: A request.

Post by Fangbeast »

gnozal wrote:
Fangbeast wrote:Because your manual says that PurePOP3_GetMessageInfo() Must be used after PurePOP3_RetrieveMessage() and by that time, the message has been saved already.
It's not saved if you don't specify a filename.
Yes, I understand that but how do I do it afterwards, manually? I can do that but your command is more convenient:):):):)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: A request.

Post by gnozal »

Fangbeast wrote:Yes, I understand that but how do I do it afterwards, manually?
Like this :

Code: Select all

  *MessageBuffer = PurePOP3_GetMessageBufferAddress()
  MessageBufferLen = MemoryStringLength(*MessageBuffer)
  Stream = CreateFile(#PB_Any, "MyMailFile.txt")
  If Stream
    WriteData(Stream, *MessageBuffer, MessageBufferLen)
    CloseFile(Stream)
  EndIf
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: A request.

Post by Fangbeast »

gnozal wrote:
Fangbeast wrote:Yes, I understand that but how do I do it afterwards, manually?
Like this :

Code: Select all

  *MessageBuffer = PurePOP3_GetMessageBufferAddress()
  MessageBufferLen = MemoryStringLength(*MessageBuffer)
  Stream = CreateFile(#PB_Any, "MyMailFile.txt")
  If Stream
    WriteData(Stream, *MessageBuffer, MessageBufferLen)
    CloseFile(Stream)
  EndIf
You are a genius. What great a great help too, I can't thank you enough!
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Gnozal, thanks for this great lib. It works like a charm. :wink:

I'd like to make a sugestion though:

To being able to set the string of e-mails you're sending your message to with variable separation characters like:

"mike@hotmail.com;john@something.com"

or

"mike@hotmail.com,john@something.com"

because I've noticed that some messages are NOT showing the full list of e-mails I've send it to. Some servers work with commas, some don't.

Thanks again and keep up the good work.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

byo wrote:To being able to set the string of e-mails you're sending your message to with variable separation characters like:
"mike@hotmail.com;john@something.com"
or
"mike@hotmail.com,john@something.com"
because I've noticed that some messages are NOT showing the full list of e-mails I've send it to. Some servers work with commas, some don't.
I don't understand what you mean. For sending mail, it's PureSMTP and not PurePOP3 ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
bender-rulez
User
User
Posts: 49
Joined: Mon Mar 14, 2005 11:30 am

Post by bender-rulez »

Is there a Linux version??
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

bender-rulez wrote:Is there a Linux version??
Sorry, no. All my libs/apps are windows only.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
bender-rulez
User
User
Posts: 49
Joined: Mon Mar 14, 2005 11:30 am

Post by bender-rulez »

is there a lot of Win API in them?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

bender-rulez wrote:is there a lot of Win API in them?
Usually yes.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

gnozal wrote:I don't understand what you mean. For sending mail, it's PureSMTP and not PurePOP3 ?
Hmm... you're right. I was with both internet explorer windows opened and I messed up. I'll post my sugestion where it should be and I'll try to explain it better than I did.

Thanks. :D
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PurePOP3 library : POP3 functions

Post by gnozal »

Update (both libs)

- Some fixes
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

(SOLVED) Just updated both libs and::::

Post by Fangbeast »

Now getting this error trying to compile.

POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: fatal error: 1 unresolved external(s)

**EDIT** I had the old version of the PureVision libs in the correct directory but when I installed the new PureVision libs, it created its' own directories because there appears not to be a standard for creating the correctly named subsystem dirs and different authors put them in a couple of different places and I didn't know.

Sorry about the confusion Gnozal. I'll do a clean re-install of PB and see what the susbsystem dirs are actually called and then install all my used libs to see which is the offender (the ones that put them in the non pb created dirs)
Last edited by Fangbeast on Wed Sep 05, 2007 3:37 pm, edited 1 time in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You're using the wrong version of the library fangles. Sounds like you're using the threadsafe version of the library, but not compiling for threadsafe etc.

Check the subsytems.
I may look like a mule, but I'm not a complete ass.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

srod wrote:You're using the wrong version of the library fangles. Sounds like you're using the threadsafe version of the library, but not compiling for threadsafe etc.

Check the subsytems.
I'm afraid that you are wrong on both counts. And the only thing I did to get this error was to update to the latest version of these libs from his site and install them.

/me removes the title of "Wizard, first class, from the former mighty s of rod, gives him a dunces cap, paints him green from head to toe, covers him in cotton candy, mounts him on a stick and parades him at the local fairy floss stand as a prime example of the product.
Post Reply