Commits

Arno Hautala committed e60d61d

rewrote archive() to use inbox/archiveMessage/, similar to message deletion

Comments (0)

Files changed (3)

googlevoice/settings.py

 DEFAULT_FORWARD = BASE + 'settings/editDefaultForwarding/'
 FORWARD = BASE + 'settings/editForwarding/'
 DELETE = BASE + 'inbox/deleteMessages/'
-ARCHIVE = BASE + 'm/archive/'
+ARCHIVE = BASE + 'inbox/archiveMessages/'
 MARK = BASE + 'inbox/mark/'
 STAR = BASE + 'inbox/star/'
 SMS = BASE + 'sms/send/'

googlevoice/util.py

         """
         Archive this message by removing it from the Inbox.
         """
-        self.folder.voice.archive(self.id)
+        self.folder.voice.__messages_post('archive', self.id, archive=archive)
 
     def delete(self, trash=1):
         """

googlevoice/voice.py

         if isinstance(msg, Message):
             msg = msg.id
         assert is_sha1(msg), 'Message id not a SHA1 hash'
-        self.__do_special_page('archive', terms={ 'id':msg })
+        self.__messages_post('archive', msg, archive=1)
 
     def download(self, msg, adir=None, filename=None):
         """