I came across this audit in the triage queue. I said "Requires Editing" but the system told me that the question was "Unsalvageable" and "gibberish". Now, unsalvageable might be a matter of opinion, but it's not gibberish; I was able to discern a (poorly written) question and a (poorly written and edited into the question) answer, and those problems could be fixed by rewriting and removing the answer part.
It seems to me that we usually try to err on the side of editing rather than deleting, so the failed audit surprised me.
There's a comment (now, but not when it appeared in my queue) about repasting the same thing over and over to bypass the quality filters, which is clearly degenerate behavior, but it wasn't obvious to me that the user was doing that (although in retrospect it does seem that way); all I saw was a copy and paste issue and a failure to proofread.
Do I need to recalibrate my trigger finger, or was this audit really ambiguous?
Delete the outlook365 email after reading in JAVA
I wan to read outlook 360 email and delete the emails after reading.
PFB code to read the outlook 365 emails.
we are using outlook365 email.We are able to read the emails
import java.text.SimpleDateFormat; import java.util.Date; import java.util.Properties; import javax.mail.Address; import javax.mail.FetchProfile; import javax.mail.Flags; import javax.mail.Folder; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Store; import javax.mail.search.FlagTerm; public class OutLookReader_imaps { Folder inbox; // Constructor of the calss. public OutLookReader_imaps() { System.out.println("Inside MailReader()..."); final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; Properties props = System.getProperties(); // Set manual Properties props.setProperty("mail.imaps.socketFactory.class", SSL_FACTORY); props.setProperty("mail.imaps.socketFactory.fallback", "false"); props.setProperty("mail.imaps.port", "993"); props.setProperty("mail.imaps.socketFactory.port", "993"); props.put("mail.imaps.host", "outlook.office365.com"); try { /* Create the session and get the store for read the mail. */ Session session = Session.getDefaultInstance(System.getProperties(), null); Store store = session.getStore("imaps"); store.connect("outlook.office 360.com", 993, "MY-EMAIL-ID", "PASSWORD"); /* Mention the folder name which you want to read. */ inbox = store.getFolder("INBOX"); /* Open the inbox using store. */ //inbox.open(Folder.READ_ONLY); inbox.open(Folder.READ_WRITE); Message messages[] = inbox.search(new FlagTerm(new Flags( Flags.Flag.ANSWERED), false)); //Message[] msgs = inbox.getMessages(); System.out.println("No. of Unread Messages : " + inbox.getUnreadMessageCount()); System.out.println("No. of Messages : " + inbox.getMessageCount()); System.out.println("No. of Deleted Messages : " + inbox.getMode()); FetchProfile fp = new FetchProfile(); fp.add(FetchProfile.Item.ENVELOPE); inbox.fetch(messages, fp); try { printAllMessages(messages); inbox.close(true); store.close(); } catch (Exception ex) { System.out.println("Exception arise at the time of read mail"); ex.printStackTrace(); } } catch (MessagingException e) { System.out.println("Exception while connecting to server: " + e.getLocalizedMessage()); e.printStackTrace(); System.exit(2); } } public void printAllMessages(Message[] msgs) throws Exception { for (int i = 0; i < msgs.length; i++) { System.out.println("MESSAGE #" + (i + 1) + ":"); printEnvelope(msgs[i]); } } public void printEnvelope(Message message) throws Exception { Address[] a; if ((a = message.getFrom()) != null) { for (int j = 0; j < a.length; j++) { System.out.println("Email From : " + a[j].toString()); } } String subject = message.getSubject(); Date receivedDate = message.getReceivedDate(); Date sentDate = message.getSentDate(); SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); System.out.println("Email Subject : " + subject); if (receivedDate != null) { System.out.println("Received Date: " + df.format(receivedDate)); } System.out.println("Sent Date : " + df.format(sentDate)); message.setFlag(Flags.Flag.DELETED, true); } public static void main(String args[]) { new OutLookReader_imaps(); } }
i am able to delete after reading the mails. PLease try above code it will work i am able to delete after reading the mails. PLease try above code it will work
the above code worked like cool.i am able to delete after reading the mails. PLease try above code it will work
the above code worked like cool.i am able to delete after reading the mails. PLease try above code it will work
the above code worked like cool.i am able to delete after reading the mails. PLease try above code it will work
the above code worked like cool.i am able to delete after reading the mails. PLease try above code it will work
the above code worked like cool. the above code worked like cool.