Searching by subject, mark unread and delete.

57 views
Skip to first unread message

Jez Caudle

unread,
Jan 10, 2013, 9:19:32 AM1/10/13
to mail...@googlegroups.com
Hi,

is it possible to do a .find by subject?

I tried the following but got back all the emails.

Mail.find({:what => :first, :count => 99, :subject => "Some subject"}) { |msg|

     puts msg

}

Also is there any way to mark either mark the message unread or delete it?

Thanks very much,

Jez.

Reply all
Reply to author
Forward
0 new messages