botmaker7 5 Posted November 11, 2013 Report Share Posted November 11, 2013 I'm having an issue getting a bot working the way I want. I connect to mail server Then create table from emails From that point I want to start breaking up the table into seperate lists. So for example all the FROM email addresses are in column 0 If I have 300 rows and want to scrape all column 0 data and add it to a list what's the best way to do that? Tried searching around and testing for an hour but no luck. Ubot 4. Thanks! Quote Link to post Share on other sites
Gogetta 263 Posted November 11, 2013 Report Share Posted November 11, 2013 Here you go try this... comment("Fill in the details to connect to your server...") clear table(&emails) connect to mail server("POP3", "", "", "", 110) { create table from emails(&emails) } clear list(%from_emails) set(#row_count, 0, "Global") loop($table total rows(&emails)) { add item to list(%from_emails, $table cell(&emails, #row_count, 0), "Delete", "Global") increment(#row_count) } Quote Link to post Share on other sites
botmaker7 5 Posted November 11, 2013 Author Report Share Posted November 11, 2013 Yes! Thanks Gogetta! I tested it and it works. Can't wait to finish the bot tomorrow when I wake up. Much appreciated!! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.