My question, or point of discussion, is somewhat related, but different from:
- Is it acceptable to ask other users for their contact information?
- Should we be able to send private messages to other users?
- What do I do about receiving an offensive email from another user on Stack Overflow?
- Recruiter claims to have gotten my email address from Stack Overflow
Yesterday I added a comment to this question: https://stackoverflow.com/questions/38465386/naming-multiple-pdfs-using-itext-filestream, I asked for a bit of clarification.
When I visit that question now, I get
Page Not Found
This question was voluntarily removed by its author.
So only you 10k+ users will be able to view it. But the question itself doesn't really matter.
This morning I found an email in my work mailbox, from someone I don't know, with a Yahoo address. I'm a QA Engineer, my only external email contacts are a couple of mailing lists, and notifications from services I use. So I am always surprised when I get an external "cold email".
This is the content of the email I got:
Hello Amedee, I started a port regarding the naming of my pdfs using the itext filestream, however I seem to have deleted it... (i've also added additional code)regardless, the idea is that I will be merging pdf's in the source directory based on the file prefix.So I could have 27 files, but there might only be 5 prefixes... Once I merge the 1st set of prefixes, I want to move on to the next prefix.I currently can't name my newly created pdf as I set the name 1st...so that's issue number 1. Next I can't open the 2nd PDF to do any merging because in my below code, I don't open another document....So that must be in the wrong place also. (Side bar...the below code does find the 1st set of prefixes and merges them correctly...)Thanks for any thoughts.
string outputpathPDF = "C:/here/"; var files = System.IO.Directory.GetFiles(scrDir); string prevFileName = null; int i = 1; using (FileStream stream = new FileStream(outputpathPDF + ".pdf", FileMode.Create))// <-- I'm pretty sure this is wrong... { Document pdfDoc = new Document(PageSize.A4); PdfCopy pdf = new PdfCopy(pdfDoc, stream); pdfDoc.Open(); foreach (string file in files) { string filename = Left(Path.GetFileName(file), 9); { if (prevFileName == null || filename == prevFileName) { pdf.AddDocument(new PdfReader(file)); i++; prevFileName = filename; } else { //added the else to close the open doc once we have merged all the files with the same file prefix. pdfDoc.Close(); prevFileName = null; } } } if (pdfDoc != null) pdfDoc.Close(); prevFileName = null; Console.WriteLine("Done!"); }
As you can see from the content from the mail: it's not spam, it's not abusive, and the content of this email would haven been perfectly appropriate as either a comment or an edit of the original question. He/she doesn't mention StackOverflow at all but it was clear for me from the content.
EDIT: Can the original question be restored by a SO moderator? Because from the email of the user I get the impression that it was not intentional, because they write: 'however I seem to have deleted it'.