Click here to Skip to main content
15,883,901 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionVSTO for Outlook 2007 Pin
Felix Jongleur11-Dec-06 12:17
Felix Jongleur11-Dec-06 12:17 
QuestionVisual Studio Tools for Office version 2003 Pin
ocabrera7011-Dec-06 3:00
ocabrera7011-Dec-06 3:00 
QuestionModifying machine.config Pin
seanwright11-Dec-06 2:56
seanwright11-Dec-06 2:56 
AnswerRe: Modifying machine.config Pin
Pete O'Hanlon11-Dec-06 10:22
mvePete O'Hanlon11-Dec-06 10:22 
AnswerRe: Modifying machine.config Pin
Vasudevan Deepak Kumar12-Dec-06 3:22
Vasudevan Deepak Kumar12-Dec-06 3:22 
Questioncannot find one or more components.please reinstall the application Pin
MissionSuccess10-Dec-06 18:59
MissionSuccess10-Dec-06 18:59 
QuestionRe: System.Security.Cryptography.RSAParameters parameters Pin
edchan10-Dec-06 18:50
edchan10-Dec-06 18:50 
QuestionSMTP Event Sink ForkForRecipients Pin
Andrewiski10-Dec-06 16:18
Andrewiski10-Dec-06 16:18 
So I have written an OnMessageSubmission Event Sink using Microsoft.Exchange.Transport.EventInterop.IMailTransportSubmission. Works like a champ until I decided wouldn't it be cool to allow each user to have there own spam filter setting so per user not per server. So the idea is run through the list of recp addresses looking up each users setting and if setting matches set the spam confidence level to 6. Preaty basic and seems to be preaty easy to implement. By the way this works great until I try to ForkForRecipients.

For i As Integer = 0 To Msg.Recips.Count - 1
Msg.ForkForRecipients(RcpMsg, RcpAdd)
RcpAdd.AddSMTPRecipient(Msg.Recips.Item(i).SMTPAddress, Msg.Recips.Item(i))
RcpMsg.Rfc822MsgSubject = Msg.Recips.Item(i).SMTPAddress & " " & RcpMsg.Rfc822MsgSubject
If SetSCLList.Contains(Msg.Recips.Item(i).SMTPAddress) then
If MessageHelper.GetContentFilterSCL(RcpMsg, SCLPropIDBase) < 6 Then
MessageHelper.SetContentFilterSCL(RcpMsg.MailMsg, SCLPropIDBase, 6)
End If
End IF
RcpMsg.MessageStatus = Message.MessageStatusEnum.Success
RcpMsg.WriteList(RcpAdd)
RcpMsg.RebindAfterFork(Msg, Nothing)
RcpMsg.Commit()
Next

If there are two rcpts and I look at the SMTP queue I see the orginal message and after above message the two new messages. When the OnMessageSubmission finishes the orginal goes away and the two forked message stay in the queue. The problem is that they stay forever and never seem to get processed. Wierd thing start to happen after this point where if I am debuging and stop then IIS crashes with terminated unexpectly. The new email files in the queue folder are locked until I restart IIS. I assume its because I am missing something basic the commits he message to be processed but I am not sure what it is. If needed I am willing to post my source code. Anyone have an example where they use ForForRecipients so to customize the email for each recipient.

Thanks
Andy
email is spam @@@@@ digitalexample . com
Question[C#] Disable a 'beep'. Pin
Manaxter10-Dec-06 14:26
Manaxter10-Dec-06 14:26 
AnswerRe: [C#] Disable a 'beep'. Pin
Ravi Bhavnani10-Dec-06 14:55
professionalRavi Bhavnani10-Dec-06 14:55 
GeneralRe: [C#] Disable a 'beep'. Pin
Manaxter10-Dec-06 16:38
Manaxter10-Dec-06 16:38 
QuestionAnalysing Software design Pin
RussClarke10-Dec-06 13:20
RussClarke10-Dec-06 13:20 
AnswerRe: Analysing Software design Pin
Ravi Bhavnani10-Dec-06 14:59
professionalRavi Bhavnani10-Dec-06 14:59 
GeneralRe: Analysing Software design Pin
RussClarke10-Dec-06 21:12
RussClarke10-Dec-06 21:12 
AnswerRe: Analysing Software design Pin
Pete O'Hanlon11-Dec-06 0:58
mvePete O'Hanlon11-Dec-06 0:58 
GeneralRe: Analysing Software design Pin
RussClarke11-Dec-06 4:02
RussClarke11-Dec-06 4:02 
GeneralRe: Analysing Software design Pin
Pete O'Hanlon11-Dec-06 4:43
mvePete O'Hanlon11-Dec-06 4:43 
GeneralRe: Analysing Software design Pin
RussClarke12-Dec-06 1:00
RussClarke12-Dec-06 1:00 
QuestionConnection String Pin
Tauseef A8-Dec-06 22:53
Tauseef A8-Dec-06 22:53 
AnswerRe: Connection String Pin
Guffa9-Dec-06 8:02
Guffa9-Dec-06 8:02 
AnswerRe: Connection String Pin
Paul Conrad9-Dec-06 9:53
professionalPaul Conrad9-Dec-06 9:53 
GeneralRe: Connection String Pin
Guffa9-Dec-06 19:05
Guffa9-Dec-06 19:05 
GeneralRe: Connection String Pin
S Douglas9-Dec-06 19:58
professionalS Douglas9-Dec-06 19:58 
Questionimage file Pin
Tauseef A8-Dec-06 18:42
Tauseef A8-Dec-06 18:42 
AnswerRe: image file Pin
Guffa9-Dec-06 8:04
Guffa9-Dec-06 8:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.