/[mailutils]/mailutils/mh/mh_init.c
ViewVC logotype

Diff of /mailutils/mh/mh_init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by gray, Thu Feb 20 14:07:18 2003 UTC revision 1.33 by gray, Fri Feb 21 13:01:55 2003 UTC
# Line 544  mh_file_copy (const char *from, const ch Line 544  mh_file_copy (const char *from, const ch
544    return rc;    return rc;
545  }  }
546    
547  static int  int
548  _mh_delim (char *str)  _mh_delim (char *str)
549  {  {
550    if (str[0] == '-')    if (str[0] == '-')
# Line 679  mh_stream_to_message (stream_t instream) Line 679  mh_stream_to_message (stream_t instream)
679    struct msg_envelope *mp;    struct msg_envelope *mp;
680    envelope_t env;    envelope_t env;
681    message_t msg;    message_t msg;
682      stream_t draftstream;
683      int rc;
684        
685      if ((rc = mhdraft_stream_create (&draftstream, instream, 0)))
686        {
687          mh_error(_("cannot create draft message stream: %s"),
688                   mu_strerror (rc));
689          return NULL;
690        }
691    
692      if ((rc = stream_open (draftstream)))
693        {
694          mh_error(_("cannot open draft message stream: %s"),
695                   mu_strerror (rc));
696          stream_destroy (&draftstream, stream_get_owner (draftstream));
697          return NULL;
698        }
699    
700    restore_envelope (instream, &mp);    restore_envelope (instream, &mp);
701    
702    if (message_create (&msg, mp))    if (message_create (&msg, mp))
703      return NULL;      return NULL;
704        
705    message_set_stream (msg, instream, mp);    message_set_stream (msg, draftstream, mp);
706        
707    if (envelope_create (&env, msg))    if (envelope_create (&env, msg))
708      return NULL;      return NULL;

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26