Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Delete SMS/Voicemail/Calls Permanantly #20

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 8 comments
Open

Feature: Delete SMS/Voicemail/Calls Permanantly #20

GoogleCodeExporter opened this issue Apr 11, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

Currently calling the deleteMessage() method in the Voice class deletes the 
message from the google voice inbox.  It does not entirely remove it from the 
server.  These messages can still be accesses in the trash folder.

If we want to delete a message from google voice entirely, we need another way 
to do that.

This could be a security issue, as a complete record of all communications are 
stored by google, and must be manually deleted through the browser interface.  
If someone is negligent and their account is compromised, that could be a trove 
of contact information in the wrong hands.  If we can automate complete 
deletion, this risk will be reduced.

Original issue reported on code.google.com by walt.jav...@gmail.com on 4 Mar 2011 at 11:29

@GoogleCodeExporter
Copy link
Author

Would you like to write this feature and be added as a committer?

Original comment by malone.j...@gmail.com on 6 Mar 2011 at 3:08

@GoogleCodeExporter
Copy link
Author

Sure.  I can figure it out.

Original comment by walt.jav...@gmail.com on 6 Mar 2011 at 3:11

@GoogleCodeExporter
Copy link
Author

OK, you should be added now

Original comment by malone.j...@gmail.com on 6 Mar 2011 at 10:38

@GoogleCodeExporter
Copy link
Author

Original comment by walt.jav...@gmail.com on 22 Mar 2011 at 6:13

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by walt.jav...@gmail.com on 22 Mar 2011 at 6:24

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Hi Walt, maybe you already fixed this issue, but I wanted to ask.  Any progress?

Original comment by malone.j...@gmail.com on 3 Feb 2012 at 3:29

@GoogleCodeExporter
Copy link
Author

    // /voice/inbox/deleteForeverMessages/
    public String deleteForever(String[] messagIds) throws IOException {
        String out = "";
        String smsdata = "";
        for (String _mid : messagIds) {
            smsdata += "&" + URLEncoder.encode("messages", enc) + "=" + _mid;
        }
        smsdata += "&_rnr_se=";
        smsdata += URLEncoder.encode(rnrSEE, enc);

        System.out.println("smsdata: " + smsdata);

        URL deleteurl = new URL("https://www.google.com/voice/inbox/deleteForeverMessages/");

        URLConnection smsconn = deleteurl.openConnection();
        smsconn.setRequestProperty("Authorization", "GoogleLogin auth=" + authToken);
        smsconn.setRequestProperty("User-agent", USER_AGENT);

        smsconn.setDoOutput(true);
        OutputStreamWriter callwr = new OutputStreamWriter(smsconn.getOutputStream());
        callwr.write(smsdata);
        callwr.flush();

        BufferedReader callrd = new BufferedReader(new InputStreamReader(smsconn.getInputStream()));

        String line;
        while ((line = callrd.readLine()) != null) {
            out += line + "\n\r";

        }

        callwr.close();
        callrd.close();

        if (out.equals("")) {
            throw new IOException("No Response Data Received.");
        }

        return out;
    }

Original comment by gherty.h...@gmail.com on 22 Apr 2014 at 11:53

@GoogleCodeExporter
Copy link
Author

I think you must put message in trash with deleteMessage first.  then delete 
forever

Original comment by gherty.h...@gmail.com on 22 Apr 2014 at 11:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant