Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsMsgSend.h File Reference
#include "nsIMsgSend.h"
#include "msgCore.h"
#include "prprf.h"
#include "nsFileStream.h"
#include "nsMsgMessageFlags.h"
#include "nsIURL.h"
#include "nsMsgAttachmentHandler.h"
#include "nsMsgCompFields.h"
#include "nsIMsgSendListener.h"
#include "nsIDOMNode.h"
#include "nsIEditor.h"
#include "nsIUrlListener.h"
#include "nsIMsgStatusFeedback.h"
#include "nsIMsgStringService.h"
#include "nsIMsgIdentity.h"
#include "nsIMsgHdr.h"
#include "nsWeakReference.h"
#include "nsIDOMWindowInternal.h"
#include "nsIMsgComposeSecure.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsMsgComposeAndSend

Defines

#define EMIT_NAME_IN_CONTENT_TYPE
#define SAVE_BCC_IN_FCC_FILE
#define GENERATE_CONTENT_BASE
#define TEN_K   10240
#define MIME_BUFFER_SIZE   4096
#define PUSH_STRING(S)   do { PL_strcpy (buffer_tail, S); buffer_tail += PL_strlen (S); } while(0)
#define PUSH_STRINGN(S, N)   do { memcpy(buffer_tail, (S), (N)); buffer_tail += (N); } while(0)
#define PUSH_NEWLINE()   do { *buffer_tail++ = nsCRT::CR; *buffer_tail++ = nsCRT::LF; *buffer_tail = '\0'; } while(0)

Functions

nsresult mime_write_message_body (nsIMsgSend *state, char *buf, PRInt32 size)
char * mime_get_stream_write_buffer (void)
nsresult PR_CALLBACK mime_encoder_output_fn (const char *buf, PRInt32 size, void *closure)
PRBool UseQuotedPrintable (void)

Define Documentation

Definition at line 109 of file nsMsgSend.h.

Definition at line 135 of file nsMsgSend.h.

Definition at line 167 of file nsMsgSend.h.

#define PUSH_NEWLINE ( )    do { *buffer_tail++ = nsCRT::CR; *buffer_tail++ = nsCRT::LF; *buffer_tail = '\0'; } while(0)

Definition at line 177 of file nsMsgSend.h.

#define PUSH_STRING (   S)    do { PL_strcpy (buffer_tail, S); buffer_tail += PL_strlen (S); } while(0)

Definition at line 173 of file nsMsgSend.h.

#define PUSH_STRINGN (   S,
  N 
)    do { memcpy(buffer_tail, (S), (N)); buffer_tail += (N); } while(0)

Definition at line 175 of file nsMsgSend.h.

Definition at line 114 of file nsMsgSend.h.

#define TEN_K   10240

Definition at line 166 of file nsMsgSend.h.


Function Documentation

nsresult PR_CALLBACK mime_encoder_output_fn ( const char *  buf,
PRInt32  size,
void closure 
)

Definition at line 1432 of file nsMsgSend.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 519 of file nsMsgSend.cpp.

Here is the caller graph for this function:

nsresult mime_write_message_body ( nsIMsgSend state,
char *  buf,
PRInt32  size 
)

Definition at line 1404 of file nsMsgSend.cpp.

{
  NS_ENSURE_ARG_POINTER(state);

  nsOutputFileStream * output;
  nsCOMPtr<nsIMsgComposeSecure> crypto_closure;

  state->GetOutputStream(&output);
  if (!output || CHECK_SIMULATED_ERROR(SIMULATED_SEND_ERROR_9))
    return NS_MSG_ERROR_WRITING_FILE;

  state->GetCryptoclosure(getter_AddRefs(crypto_closure));
  if (crypto_closure)
  {
         return crypto_closure->MimeCryptoWriteBlock (buf, size);
       }

  if (PRInt32(output->write(buf, size)) < size) 
  {
    return NS_MSG_ERROR_WRITING_FILE;
  } 
  else 
  {
    return NS_OK;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 160 of file nsMsgSend.cpp.

Here is the caller graph for this function: