Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinsock Programming Pin
Steven M Hunt30-Nov-02 14:22
Steven M Hunt30-Nov-02 14:22 
GeneralRe: Winsock Programming Pin
valikac30-Nov-02 14:40
valikac30-Nov-02 14:40 
GeneralRe: Winsock Programming Pin
valikac30-Nov-02 15:15
valikac30-Nov-02 15:15 
GeneralRe: Winsock Programming Pin
Steven M Hunt1-Dec-02 14:17
Steven M Hunt1-Dec-02 14:17 
GeneralExtracting attachments from email Pin
AlexMarbus30-Nov-02 13:42
AlexMarbus30-Nov-02 13:42 
GeneralRe: Extracting attachments from email Pin
Ravi Bhavnani30-Nov-02 14:42
professionalRavi Bhavnani30-Nov-02 14:42 
GeneralRe: Extracting attachments from email Pin
AlexMarbus30-Nov-02 14:48
AlexMarbus30-Nov-02 14:48 
GeneralRe: Extracting attachments from email Pin
Rohit  Sinha30-Nov-02 18:45
Rohit  Sinha30-Nov-02 18:45 
I'm afraid you will have to write your own code for this, unless you decide to use something which is already out there. MAPI, while OK for client side stuff, won't scale well in a server environment. You won't have to take care of too many suported encoding types, just understand MIME. Go to http://www.imc.org/rfcs.html#mime[^] for more information on MIME. Don't let the number of RFCs there scare you away, it's not for the faint of heart anyway ( Wink | ;) ).

Although I'm sure you could find a lot of open source stuff out there to help you get started.

AlexMarbus wrote:
The case:
I receive an email from the server, as 'raw data'.


Wait a minute now. Are you saying the mail server will mail you the emails that it gets so that you can then extract the attachments and do your stuff with it? This can be horribly slow, and can bog the server down. Imagine what it'd be like, the same email travelling on the network twice. Or did I get it wrong and you meant something else? In any case, my suggestion would be to install your dll as a proxy for the server. It can then process the emails before they get to the email server itself, and will have done its processing (stripping the attachments, scanning for virii, whatever). Let the filter and the server communicate via the computer memory, don't use files or the network for it. You can't imagine how slow it will make everything if it's a busy site.


  Regards,

  Rohit Sinha

GeneralRe: Extracting attachments from email Pin
AlexMarbus6-Dec-02 12:48
AlexMarbus6-Dec-02 12:48 
GeneralMFC program crashes under Win XP Pin
Romik30-Nov-02 12:52
Romik30-Nov-02 12:52 
GeneralRe: MFC program crashes under Win XP Pin
Gary R. Wheeler1-Dec-02 6:27
Gary R. Wheeler1-Dec-02 6:27 
GeneralRe: MFC program crashes under Win XP Pin
Romik1-Dec-02 7:00
Romik1-Dec-02 7:00 
GeneralPrinting JPEG in Visual C++ Pin
gaumi30-Nov-02 12:21
gaumi30-Nov-02 12:21 
GeneralRe: Printing JPEG in Visual C++ Pin
Christian Graus30-Nov-02 12:47
protectorChristian Graus30-Nov-02 12:47 
General.txt-File Pin
Lucky200230-Nov-02 11:56
Lucky200230-Nov-02 11:56 
GeneralRe: .txt-File Pin
PJ Arends30-Nov-02 12:11
professionalPJ Arends30-Nov-02 12:11 
GeneralRe: .txt-File Pin
Lucky200230-Nov-02 12:23
Lucky200230-Nov-02 12:23 
GeneralRe: .txt-File Pin
PJ Arends30-Nov-02 14:46
professionalPJ Arends30-Nov-02 14:46 
GeneralRe: .txt-File Pin
Lucky20021-Dec-02 12:11
Lucky20021-Dec-02 12:11 
GeneralRe: .txt-File Pin
Christian Graus30-Nov-02 12:44
protectorChristian Graus30-Nov-02 12:44 
GeneralRe: .txt-File Pin
Lucky200230-Nov-02 13:02
Lucky200230-Nov-02 13:02 
GeneralRe: .txt-File Pin
Christian Graus30-Nov-02 13:08
protectorChristian Graus30-Nov-02 13:08 
GeneralRe: .txt-File Pin
Lucky200230-Nov-02 13:18
Lucky200230-Nov-02 13:18 
GeneralRe: .txt-File Pin
Nick Parker30-Nov-02 18:28
protectorNick Parker30-Nov-02 18:28 
GeneralRe: .txt-File Pin
Christian Graus30-Nov-02 21:50
protectorChristian Graus30-Nov-02 21:50 

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.