Software Information |
|
Removing Incoming Email in MS Exchange, C# Example
The purpose of one of our projects was MS Exchange handler for processing incoming email. The basic source of knowledge was this article "Developing Managed Event Sinks/Hooks for Exchange Server Store using C#" by Logu Krishnan, published to the address http://www.codeproject.com/csharp/CsManagedEventSinksHooks.asp, and also examples from Microsoft Exchange SDK. We utilized Synchronous Events and created the handler, which fires on OnSyncSave event. The handler creates activity record in Microsoft CRM and then removes the message in the Exchange database before the commitment: public void OnSyncSave(IExStoreEventInfo pEventInfo, string bstrURLItem, int IFlags) { try { if (IFlags == ((int)EVT_SINK_FLAGS.EVT_SYNC_COMMITTED + (int)EVT_SINK_FLAGS.EVT_IS_DELIVERED)) { ProcessMessage(pEventInfo, bstrURLItem, IFlags); } } catch (Exception ex) { log.Debug(ex.Message + " " + ex.StackTrace); } finally { LogManager.Shutdown(); } } For Exchange handlers debugging - it is the extremely convenient to use system log4net in RollingLogFileAppender or RemoteAppender modes (for multiple instance of COM + objects). You can read more on this subject here http://logging.apache.org/log4net/ To allow the handler incoming mail removal, it is necessary to give proper rights to the user, under which account the COM+ application runs the handler. These are rights on change of the information in user's boxes for whom it is registered (Windows 2003 Server: Active Directory Users and Computer -> Users -> Properties (for COM+ application account) -> Exchange Advanced -> Mailbox Rights). And now the code: private void DeleteMessage(string bstrURLItem) { try { ADODB.Connection oCn = new ADODB.Connection(); oCn.Provider = "exoledb.datasource"; oCn.Open(bstrURLItem, "", "", -1); if(oCn.State == 1) { log.Debug("Good Connection"); } else { log.Debug("Bad Connection"); } ADODB.Record rec = new ADODB.Record(); rec.Open(bstrURLItem, oCn, ADODB.ConnectModeEnum.adModeReadWrite, ADODB.RecordCreateOptionsEnum.adFailIfNotExists, ADODB.RecordOpenOptionsEnum.adOpenSource, "", ""); rec.DeleteRecord(bstrURLItem, false); rec.Close(); oCn.Close(); rec = null; oCn = null; } catch (Exception ex) { log.Debug(ex.Message + " " + ex.StackTrace); } } Happy customizing! Boris Makushkin Boris Makushkin is Software Engineer in Alba Spectrum Technologies - USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, Boston, San Francisco, San Diego, Los Angeles, Houston, Atlanta, New York, and Miami and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, VB/C#.Net, Crystal Reports and Microsoft CRM SDK developer.
MORE RESOURCES: 2024.14 Official Tesla Release Notes - Software Updates Not a Tesla App Redwood Software Receives 2024 SAP® Pinnacle Award in the New Partner Application Category USA - English ... PR Newswire Will Constellation Software Announce a Stock Split? 24/7 Wall St. Viavi joins OpenAirInterface Software Alliance RCR Wireless News Software Firm Zuora Explores Options, Including Sale Yahoo Finance Amsterdam's Rodeo Software rocked by allegations of fraud; major backer PSG Equity seizes €67M from founder Silicon Canals NAB 2024: Spectra Logic Introduces LumOS Library Management Software with Two New Libraries Sports Video Group The IRS's new tax software: Rave reviews, but low turnout The Washington Post F-35 JPO and Lockheed Martin agreement on FIAB software - Airforce Technology Airforce Technology Risk analytics software: should your RIA firm have one? InvestmentNews Absolute Software Is Now Absolute Security Yahoo Finance Condoit Secures $4.25M to Build Better Software for Electricians Bluefield Daily Telegraph Ableton Live 12 music production software review Jazzwise magazine Royal Navy Selects SEA for Sonar Software Development The Defense Post H&R Block 'desktop software' e-filing tax-deadline issue fixed Monday afternoon KSHB 41 Kansas City News BrightNight Unveils PowerAlpha® Artificial Intelligence Software Platform at the "AI: Powering the New Energy Era ... StreetInsider.com Hstoday Open Source Groups Say More Software Projects May Have Been Targeted for Sabotage - HS Today HSToday ELFF's Economic Outlook Update Forecasts 2.2% Expansion in Equipment and Software Investment, 2.3% GDP Growth Monitor Daily 7 Top-Rated Affordable CRM Software Software Advice Software-based motor control 'boosts efficiency by up to 3%' - Drives and Controls Magazine Drives & Controls Are American Software, Inc.'s (NASDAQ:AMSW.A) Mixed Financials The Reason For Its Gloomy Performance on The Stock Market? Simply Wall St System Infrastructure Software Market to Reach USD 309.36 billion by 2031 ,Fueled by Growing Complexity of IT ... StreetInsider.com Zoloz enters the war on deepfakes with biometric detection software Biometric Update Outsight recognised for spatial AI software Airports International Magazine Further weakness as Asure Software (NASDAQ:ASUR) drops 11% this week, taking one-year losses to 58% Simply Wall St Omdia: Generative AI software revenue in Asia and Oceania to exceed $18 billion by 2028 StreetInsider.com Army has burned the software development bridges behind them Federal News Network The first OpenWrt One WiFi 6 router board samples are ready, some will be auctioned at OpenWrt Summit on May 18-19 CNX Software Beacon Announces Strategic Partnership with Jobber to Enhance Software Solutions for Home Services Industries StreetInsider.com FPT Software Attains Gold Stevie® at 2024 Asia-Pacific Stevie® Awards for Innovation - Business Wire What Software Engineers Need to Know About AI Jobs IEEE Spectrum Honeywell introduces AI-enabled software solution for aerospace Arabian Aerospace Sequoia Financial Advisors LLC Purchases 1462 Shares of Take-Two Interactive Software, Inc. (NASDAQ:TTWO) Defense World Unity Software Plans to Exit Office Space in Bellevue’s Lincoln Square South The Registry Seattle Tesla Announces Big Software Update Coming This Spring The Car Guide Bull of the Day: CyberArk Software (CYBR) Zacks Investment Research Pharmacy procurement software saves University Hospitals millions Healthcare IT News SG Americas Securities LLC Has $142000 Stake in American Software, Inc. (NASDAQ:AMSWA) Defense World Kansas City’s H&R Block reports software outages on Tax Day Kansas City Star New software advances warp drive design potential KillerStartups Axway Software: Disclosure of Transactions in Own Shares Business Wire Alantra Partners Leads Growth Deal for Energy AI-Software Maker GridBeyond - The Wall Street Journal Alantra Partners Leads Growth Deal for Energy AI-Software Maker GridBeyond The Wall Street Journal CyberArk Software Ltd. (NASDAQ:CYBR) Stock Position Lowered by Raymond James Financial Services Advisors Inc. Defense World Arcadea Group invests in Railroad Software | News Railway Gazette Stratos Wealth Partners LTD. Invests $212000 in Check Point Software Technologies Ltd. (NASDAQ:CHKP) Defense World Zarf: Open-source continuous software delivery on disconnected networks Help Net Security Saudi Arabia's Penny Software raises pre-Series A funding Edge Middle East The best free or discounted software packages for charities Charity Digital News Conquest Planning and Desjardins Financial Security Investments Bring Intuitive Financial Planning Software to Nearly ... FinTech Futures ODROID-H4 - A Compact Alder Lake N-Series SBC with up to dual 2.5GbE and four SATA III ports CNX Software Pleora Brings GigE Vision Software Connectivity to Wider Range of Devices Novus Light Technologies Today Tesla Prepares Massive 'Spring Release' Software Update, but Not Everyone Will Benefit autoevolution Koal Software (SHSE:603232) shareholders have lost 44% over 1 year, earnings decline likely the culprit Simply Wall St Fiery releases new SignLab software Printweek Latest Trends in Resource Management Software for 2024 BOSS Magazine |
RELATED ARTICLES
Managing Stress in the Computer Industry - Five Steps to a Stress-free Life It would be easy to think, like most people apparently do, that stress and the computing (and especially programming) industry were unlikely bedfellows. The habitual image of long-haired young "geek" programmers churning out 'software' from their teenage bedrooms is one that many still associate with mainstream programmers. Information Products: A Business Owners Best Friend We live in a post-industrial age where information is the coin of the realm. Knowledge is the most valuable asset that a business owns. Industry Experts Answer the One Million-dollar Question - Why Genie Backup Manager? Many reasons made GBM a unanimous choice for experts, one of them is the fact that with the set of features it offers, it's definitely the easiest to use."Genie Backup Manager Professional has a clear, simple interface which lets you manage the application without problems and in just a few minutes," the UK's Personal Computer World (PCW) stated in its Feb 2005 review of GBM, in which it selected the application for its Highly Recommended award. Beware of The Pirated Software E-Mail Scams! You have gotten those E_Mails buy software at deep discounts. It is very tempting to save 85% to 95% on your favorite Software Titles. How To Create A Data Capture Procedure Checklist For Your Small Business CRM Software Fortunately one of the most common reasons cited for the high failure rate of CRM systems - poor data quality - is also one of the easiest to avoid. Your CRM software is only as good as the information it contains. String in Java Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic character strings. Review on QuarkXpress 6.0 After almost two decades of existence, Quark has become the basic building block of any print designer's toolkit. It has deservedly gained a reputation for reliable printing, offering consistent and dependable output that prevents costly mistakes. Outlook... Not Just for Email! Using Your Outlook Calendar Microsoft Outlook is one of the most widely used software programs for email, but if you're only using it for email, you're missing out on a great productivity tool! This month's column looks at a few ways you can use the Outlook calendar to make scheduling easier.* Add public holidays to your calendar automatically. Microsoft Great Plains as ERP and Microsoft CRM as CRM If you have Microsoft Great Plains and support it for your company then you need to know some technical details about Great Plains version upgrade and what is going on behind the scenes, which options do you have in case of Dexterity, VBA, SQL customization, additional complexity comes with migration from ctree/Pervasive to MS SQL/MSDE.What is upgrade in the language of technology? Upgrade has server and client sides. 5 Time-Saving Tips in Microsoft Word Whether you have used Microsoft Word for years, have just switched from WordPerfect or are new to word processing, try these easy steps to save time and simplify your work in Word:Turn off Personalized Menus and ToolbarsAlthough it is a default, Personalized Menus and Toolbars is a terrible "feature" which limits your initial view to select toolbar buttons and menu commands. Do you only have one row of toolbars at the top of the screen? When you click on a menu, does it expand only after a few seconds? If so, you will save yourself a lot of frustration by turning off this personalized display:1. Benefits of Shareware Shareware has been fighting the stigma of being misunderstood for decades. While corporate software giants can no longer ignore the marketing potential of a trial version, small software startups are struggling with new listings and bandwidth costs. Anti-Virus Software Anti-virus software is used to find, remove or fix files that are infected with computer viruses. Most anti-virus companies release weekly updates of their databases to help keep you safe. Crystal Reports - Microsoft SQL Server Microsoft SQL Server is the leader for inexpensive and middle size SQL solutions. Plus it is now capable to serve large enterprise on Microsoft Windows platform. Best Practices In Choosing Network Monitoring Software Blue Cross and Blue Shield of Hawaii (HMSA) found itself with a rapidly expanding network and data center. Our network devices, servers, and software were all growing in complexity and we knew that we would have to leverage technology to gain better control of our IT systems and network. OEComplete - A Personal Information Manager OEComplete is a utility for managing the personal information of the user. It is designed to be flexible and affordable even for the home user. Most Dangerous Types of Spyware are on the Rise: How to Choose the Weapon Bad News - the Threat is Bigger than it SeemedHow recently it was - when even many journalists thought that spyware gathers mostly information to be used for targeted advertising. Definitions like "spyware, a. MCP Market News: Microsoft SQL Server & SQL Reporting Services Are you ready? SQL Server 2005, the next-generation data management and analysis software from Microsoft, will deliver increased scalability, availability, and security to enterprise data and analytical applications. SQL Server 2000 Reporting Services is a comprehensive, server-based reporting solution that can author, manage, and deliver both paper-oriented and interactive, Web-based reports. Software Process Improvement -A Successful Journey Background: For many organizations like ours, the interim target of achieving ISO 9001 or CMM levels is a daunting task. Discipline is no fun -Organizations readily acknowledge that striving to address projects according to ISO 9001 or CMM guidelines requires the creation of new procedures. Is Your Computer Sick? Viruses and spyware usually show up on your computer one of two ways.Either they invade your system with a frontal assault like the Huns attacking the Romans, or they sneak in a back door like a cat burglar. What to Do if All Screensavers Fun is Grayed Out? Finally, you have some time to personalize your desktop with an interesting screensaver. But wait. |
home | site map |
© 2006 |