Hi, im using commit: 29867 (latest as of today) compiled for .net 3.5 and while i can assign labels i cant remove them.
Im looking for an easy way to filter out emails which have already been processed by my app. ideally i would want to move them to a different folder so theyre no longer in my inbox
if i remove a label ive set myself in gmail the function returns true (but isnt actually removed) and if i try to remove the "Inbox" label it fails. However, removing the label i set in code works.
ex:
as for the inbox label failing, perhaps this can give a clue as to why http://stackoverflow.com/questions/14683726/can-not-set-delete-flag-on-gmail-inbox-using-rails-mail-gem
Im looking for an easy way to filter out emails which have already been processed by my app. ideally i would want to move them to a different folder so theyre no longer in my inbox
if i remove a label ive set myself in gmail the function returns true (but isnt actually removed) and if i try to remove the "Inbox" label it fails. However, removing the label i set in code works.
ex:
public bool setLabel(ImapX.Message msg, string label)
{
try
{
if (!msg.Labels.Add(label))
return false;
if (!msg.Labels.Remove("Inbox")) // fails
return false;
}
catch (Exception) { return false; }
return true;
}
andif (!msg.Labels.Remove("mylabel")) // returns true but label isnt removed (label is set in gmail web client)
return false;
if (!msg.Labels.Remove(label)) // works
return false;
Am i doing something wrong?as for the inbox label failing, perhaps this can give a clue as to why http://stackoverflow.com/questions/14683726/can-not-set-delete-flag-on-gmail-inbox-using-rails-mail-gem