GithubHelp home page GithubHelp logo

m4gen / nautaclear Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 144 KB

Obtén la cantidad de correos nauta en las carpetas de Recibido, Enviados y eliminados, para luego eliminarlos del servidor.

License: GNU General Public License v3.0

Java 100.00%
etecsa etecsa-services java mail nauta delete-mail-nauta

nautaclear's Introduction

NautaClear

Librería para obtener la cantidad de correos en el servidor nauta y eliminarlos.

Agregar

  1. Agrega a la raíz de su proyecto
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
}
  1. Agregar la dependencia a su proyecto
buildTypes {
    release {
      isMinifyEnabled = false
   }
}

dependencies {
   implementation 'com.github.applifycu:nautaclear:1.0.0'
}

Uso

En su MainActivity.class agregue

NautaMail nauta = new NautaMail(this);

// obtener cantidad de correos
mail.obtainsEmail(email,password,new EmailsCallback() {
    @Override
    public void updateUI(MailCount count) {
    String inbox = count.inboxCount;
    String trash = count.trashCount;
    
    System.out.printIn(inbox);
    System.out.printIn(trash);
}
  @Override
  public void handleException(Exception e) {
    System.out.printIn("Error: "+ e);
    }
});
 
 
 // eliminar correos 
mail.deleteEmails(email,password,new EmailsCallback() {
    @Override
    public void updateUI(MailCount count) {
    
    String inbox = count.inboxCount;
    String trash = count.trashCount;
                                        
}
@Override
public void handleException(Exception e) {
    System.out.printIn("Error: "+ e);
    }
});

Su AndroidManifest

<uses-permission android:name="android.permission.INTERNET" />

Como funciona

La librería tiene dos funciones obtainsEmail y deleteEmails

Esta librería ha sido desarrollada con el propósito de facilitar la obtención de correos electrónicos y mostrar al usuario la cantidad de mensajes que tiene en las carpetas "Recibidos", "Enviados" y "Eliminados". Además, proporciona la funcionalidad para eliminar dichos correos del servidor. Sin embargo, es importante destacar que no es necesario obtener la cantidad de correos antes de eliminarlos del servidor. Puedes utilizar esta librería para implementar tu propia lógica de eliminación de correos sin necesidad de obtener previamente la cantidad. La librería simplemente proporciona una forma conveniente de obtener esa información si lo deseas.

Contacto

Para dudas o sugerencias puede ponerse en contacto con nosotros en:

[email protected]

License

Copyright (C) 2023  Applify

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

nautaclear's People

Contributors

renovate[bot] avatar

Stargazers

RayManD avatar lesclaz avatar

nautaclear's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.