Bugs: Browse | Submit New | Admin

[#7477] delete_spam() does not work

Date:
2006-12-28 07:33
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
delete_spam() does not work

Detailed description
Hi,

delete_spam() returns true but does not delete the spam.

Logging in and retrieving messages works fine, through. I'm using version 0.1.14. 

Cheers,
Michael

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-01-07 06:00
Sender: Park Heesob 

Hi,

The library doesn't produce log messages.
Please send me the output after removing 
# of all 
# np.set_debug_output($stderr) 
in gmailer.rb source code.


Regards, 
Park Heesob
Date: 2007-01-07 02:40
Sender: Michael Schubart

Hi Park,

I've tried your code: Even though it does change all spam messages
from "unread" to "read", it does not delete
them.

Is there anything I can do to help debugging this? Does the library
produce a log file somewhere that I could attach?

Thanks,
Michael
Date: 2007-01-06 01:38
Sender: Park Heesob 

Hi,
You may have tried delete_spam with wrong message id.

Here is the code to delete all spams.

   GMailer.connect(name, pwd) do |g|
     g.messages(:standard=>'spam').each_msg {|msg|
        g.delete_spam(msg.id)
     }
   end

Regards,
Park Heesob

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item