g_strstrip( muttFile->path );
}
-/*
-* Register a callback function. When called, the function will be passed
-* the following arguments:
-* MuttFile object,
-* File size (long),
-* Current position (long)
-* This can be used for a progress indicator.
-*/
-void mutt_set_callback( MuttFile *muttFile, void *func ) {
- muttFile->cbProgress = func;
-}
-
/*
* Free key in table.
*/
g_free( muttFile );
}
-/*
-* Display object to specified stream.
-*/
-void mutt_print_file( MuttFile *muttFile, FILE *stream ) {
- g_return_if_fail( muttFile != NULL );
- fprintf( stream, "MUTT File:\n" );
- fprintf( stream, "file spec: '%s'\n", muttFile->path );
- fprintf( stream, " ret val: %d\n", muttFile->retVal );
-}
-
/*
* Open file for read.
* return: TRUE if file opened successfully.
}
}
-/*
- * Print data record.
- * Enter: rec Data record.
- * stream File.
- */void mutt_print_rec( Mutt_ParsedRec *rec, FILE *stream ) {
- fprintf( stream, "\taddr: %s\tname: %s\n", rec->address, rec->name );
-}
-
/*
* Parse recipient list for each address.
* Enter: rcpList Recipients extracted from file.