https://github.com/nu7hatch/gmail
我在移动到文件夹中的文件夹时遇到了一些麻烦。
在我的Gmail帐户上,我有不同的“标签”或文件夹。
school # this is a folder
Class 1 # this is a folder within the school folder
work # this is a folder
Client 1 # this is a folder within the work folder
现在使用ruby gem gmail,我可以进入第一个文件夹,但不能进入另一个文件夹。
gmail.label("school")
#returns a true statement, i could add to the code above and manipulate emails
#but if i run something like
gmail.label("school").label("Class 1")
#this returns an error.
我的目标是导航到“Class 1”目录来操作电子邮件
答案 0 :(得分:0)
gmail.label('school/Class 1') #this will get you into the directory