oneano 8 Posted June 13, 2012 Report Share Posted June 13, 2012 What input does delete email expect? I have put in a variable holding a number, but that isnt working. What is going on here? Quote Link to post Share on other sites
JohnB 255 Posted June 13, 2012 Report Share Posted June 13, 2012 when you connect to email, you need to create a table (inside the connection node). The parameter for deleting emails is based on the table rows which are 0 based. So if you want to delete the first row(1st email) then the position is 0...2nd email, the position is 1, etc. John Quote Link to post Share on other sites
oneano 8 Posted June 13, 2012 Author Report Share Posted June 13, 2012 Yes this is what I have done. http://imgur.com/dSssa $table total rows is the email table.#emaildelete is the variable starting at 0 What is curious is that delete email has a dropdown, like it expects a different input. Quote Link to post Share on other sites
JohnB 255 Posted June 13, 2012 Report Share Posted June 13, 2012 Are you trying to delete all the emails, or just a specific email? (you don't need table total rows, or set variables) John Quote Link to post Share on other sites
oneano 8 Posted June 13, 2012 Author Report Share Posted June 13, 2012 So just leave it blank to delete all emails? Quote Link to post Share on other sites
JohnB 255 Posted June 13, 2012 Report Share Posted June 13, 2012 no...you add a loop, using table total rows (sorry I wasn't thinking about the loop when I answered)...then drag in a delete emails and use position 0. It will loop through the table deleting the first email until all are deleted. John 1 Quote Link to post Share on other sites
oneano 8 Posted June 13, 2012 Author Report Share Posted June 13, 2012 Ah yes...I was expecting it to work differently. I think that I have it working now. Thanks JohnB Quote Link to post Share on other sites
VaultBoss 310 Posted January 6, 2013 Report Share Posted January 6, 2013 no...you add a loop, using table total rows (sorry I wasn't thinking about the loop when I answered)...then drag in a delete emails and use position 0. It will loop through the table deleting the first email until all are deleted. John @John... so is it in fact supposed to delete only the email in position #0?... I did try to delete an email from another row in the table and it doesn't work. I see the thread is kinda old~ish but I have also seen other people having the same issue still today. So is this working or not? Anyone has some input/experience? Quote Link to post Share on other sites
webpro 31 Posted March 27, 2013 Report Share Posted March 27, 2013 Just tried this loop($table total rows(&emails)) { delete email(0) } It's not working Quote Link to post Share on other sites
VaultBoss 310 Posted March 27, 2013 Report Share Posted March 27, 2013 You have to run it from within the Connect to eMail Server Node, not outside Quote Link to post Share on other sites
webpro 31 Posted March 28, 2013 Report Share Posted March 28, 2013 Ok i just did this and it's not working. connect to mail server("IMAP With SSL", #username, #password, "imap.gmail.com", 993) { loop($list total(%emails to delete)) { delete email($next list item(%emails to delete)) } } %emails to delete populatedDebugger:(0): 2(1): 15(2): 23 Noticed that %emails to delete list, picked up exactly the emails i wish to delete but it's not deleting them.What am i missing in my setup ? ERROR:Lenght cannot be less than zero.Parameter name: lenght 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.