Marco Blom · Oct 7, 2016 go to post

I have tested the code above with a txt file with 3868 lines:

the file looks like this:

this is my code:

The result is only 12 lines, While line length tells the length of a line is 9??? I do not understand this.

Any suggestions or help please, Thanks in advance!

Marco Blom · Oct 4, 2016 go to post

I have tested the example with the following as result:

 

 

result/output:

What did I do wrong (I have downloaded the samplecode from Github, so no typing errors)

Marco Blom · Aug 29, 2016 go to post

Hi, I am building an Email client in Cache, and succeeded to send out emails (smpt)

On downloading emails I have tested the pop3 sample from the InterSystems documentation:

ClassMethod YPOPsAsPOP3() As %Net.POP3
{
  //Sample from InterSystems
  Set server=##class(%Net.POP3).%New()
  
  //YPOPs uses the default port
  //but let's set it anyway
  Set server.port=110
  //just in case we plan to fetch any messages
  //that have attachments
  //Set server.StoreAttachToFile=1
  //Set server.StoreInlineToFile=1
  //Set server.AttachDir="c:\DOWNLOADS\"
  
  //local host acts as the server
  Set servername="mail.xxxxxxxx.nl"
  //YPOPs works with a Yahoo email account
  Set user="marco@xxxx.nl"
  Set pass="XXXXXXXX"
  
  Set status=server.Connect(servername,user,pass)
  
  If $$$ISERR(status)
  {
    Do $System.Status.DisplayError(status)
    Quit $$$ERROR()
    }
    
    Do ##class(ZenMail.MailFunctions).ShowMailbox(server)
    Do ##class(ZenMail.MailFunctions).FetchMailbox(server)
    Do ##class(ZenMail.MailFunctions).ShowMsgInfo(1)
    
  Quit server
}

I succeed to get information out of my mailbox however with the following error(s):

and at the end:

has anybody an idea how to solve this? for me this error is a bit a flurry....

I would like to invite people to work on a working example with complete working code base rather than open answers

which do not contribute to a completed working topic.

Thanks in advance!

Marco Blom · Jun 2, 2016 go to post

Hi Timothy,

Thanks for this, works great!

However it brings me to another issue:

My dataset contains more rows than pagesize * number of paging buttons(5)

the no. of paging buttons seems to be fixed. Do you know if there is a method to change the number of paging buttons?

Thanks