|
It sounds like you need to be looking at the "In-reply-to" header of incoming messages, and comparing that to the "Message-id" of your outgoing mail. By matching the two and defining a time threshold between send and receive you should be able to detect auto-responders with reasonable accuracy.
It would fair to assume that anything that arrives back within 10-15 minutes of sending would be an auto-responder - well, either that or someone who's way too stressed out, or hopped up on stims
The only real foreseeable problem is going to be receiving mail servers that delay incoming messages for n minutes/hours (an anti-spamming technique) - if delayed enough it's going to be difficult to ascertain if it's an auto-response or a human response in code..
Google around for "email message headers" for a grounding.
modified on Tuesday, October 28, 2008 9:03 AM
|
|
|
|
|
I have a c# assembly, that will be passed to another developer to use as a dll. The other developer does not need to know the workings of the dll, so most of the classes are marked as internal. I have a few public classes that are exposed externally.
Now, i want to add some tests to the assembly (I know they should have been done first!!), but if i add another project to the solution, the test project cannot see the internal classes, so i cant write the tests. How do i get round this without making the classes public, which i dont want to do?
tia
Mark
ps, hope this is in the right forum, was not sure if it was here or vs
|
|
|
|
|
In .NET 2, you can mark assemblies as [assembly:InternalsVisibleTo("assemblyname...")], so you could use this to tell the assemblies to show internal assemblies to test application.
|
|
|
|
|
Thanks
I assume that if a developer that was using this dll, called there project "Tests" for example, they would see everthing as well. Not really a problem as I dont think they would call it Tests. Maybe I should call my test project something obscure
|
|
|
|
|
You can use the public key of your unit test assembly in there as well, so it becomes
[assembly: InternalsVisibleTo("mytestproject, PublicKey="32de3ba45e0a00a1")]
|
|
|
|
|
Just saw this on twitter. I thought you'd be interested:
HeadGeek Approving Community Credit submissions for this month. Looks like Peter O' Hanlon has just moved into the lead. http://tinyurl.com/6ce4ur[^] 25 minutes ago from web
Well done! Keep up the good work.
|
|
|
|
|
Cheers. It's been a busy couple of months blogging for me. It's helped working alongside Karl Shifflett - he's a coding/article writing machine, and has spurred me on.
|
|
|
|
|
Pete O'Hanlon wrote: It's helped working alongside Karl Shifflett
Indeed - We almost managed to get him along to Developer Day Scotland earlier this year.
|
|
|
|
|
That sounds good, How do i find out what the publicKey of my test project is
|
|
|
|
|
Use sn -Tp on the test dll. This depends on you having strong named the test project of course.
|
|
|
|
|
Thanks, I have just done some reading and am working it out. I think i need to look into strong names more, but you have given me enought to work with.
Thanks for your help, its appreciated
Mark
|
|
|
|
|
|
If only everybody were as polite as you...
Cheers,
Vıkram.
"You idiot British surprise me that your generators which grew up after Mid 50s had no brain at all." - Adnan Siddiqi.
|
|
|
|
|
I always 5 the people who take the time to offer thanks.
|
|
|
|
|
Being polite costs nothing. As a member of a number of (coding/car/RC Helicopter) forums I see no end of rudeness. When others try and help (even if they cant solve your problem), they have taken their time to try, why not be polite and say thanks
just my 2p worth
Mark
|
|
|
|
|
i've this scenario
a user fill out a form (email account request)
when user submit, it save to database, to sharepoint list then send an email to their manager for approval
when manager see the email, he/she open the file in sharepoint then decide to approve or reject
when manager submit, it send an email back to the user, update approval field in the database and of course update the sharepoint list
at the moment i'm using 1 form and 2 view (user and manager), rules
it all work fine until it need to update approval field to database, i decide to use manage code but my rules no longer run
any idea how? or maybe other approach on this scenario?
i'm using infopath 2007
PS: i'm not sure that i'm posting in the right forum..
thanks,
erick
|
|
|
|
|
Hi,
I want to convert JPEG Images into XML elements. Could you please let me know how canI do it?
Thanks in Advance,
AR Reddy
|
|
|
|
|
AR Reddy wrote: I want to convert JPEG Images into XML elements. Could you please let me know how canI do it?
Normally, JPEGs are encoded as Base64 when put in XML. There are methods in the .NET Framework to do that for you.
|
|
|
|
|
Hi All,
I've got an application that opens a csv file and save the data in the file to a Database. When the app reads the file it only reads the second column my problem is, the format of the date in the file has changed the date use to be like, 20081019 now it has changed to "October 26, 2008",.
The file is like Day,Visitors
"October 26, 2008",356 where day is the date. Now the app reads year 2008 when i want it to read the Visitors 356.
Please can you help me
Regards,
Ndeza
modified on Tuesday, October 28, 2008 4:52 AM
|
|
|
|
|
Who has the time to go through all that rubbish? Please post only "relevant" code, if required. Read the guidelines before posting a question.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Not sure I understand... but you're saying the CSV actually has the enclosing quotes? Then it is the app which fails to parse properly.
There are libraries that handle CSV files, you're better off using one of them.
Cheers,
Vıkram.
"You idiot British surprise me that your generators which grew up after Mid 50s had no brain at all." - Adnan Siddiqi.
|
|
|
|
|
Hello friends
Can Any One tell me how can I read or write a specific line from a txt file.
Suppose using StreamReader or Straemwritter.
Thank in Advance
Johnny
|
|
|
|
|
Files are not line based (or even character based). You have to read the lines before to get to the correct position in the file.
To change a line you have to write that line and rewrite all the lines that follows it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
What about using LINQ to read the specific line, writing is another story. I agree with Guffa about the writing each line again.
take the following into consideration: read all customers who live in UK.
var query =
from c in
(from line in File.ReadAllLines(filePath)
let customerRecord = line.Split(‘,’)
select new Customer()
{
Firstname = customerRecord[0],
Lastname = customerRecord[1],
JobTitle = customerRecord[2],
City = customerRecord[3],
Country = customerRecord[4]
})
where c.Country == "UK"
select c;
Regards,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|