Show
Ignore:
Timestamp:
1999-07-29 02:13:03 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Brendan Cully's latest IMAP patches.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • browser.c

    r1135 r1169  
    497497      state.imap_browse = 1; 
    498498      imap_init_browse (f, &state); 
    499       strfcpy (LastDir, f, sizeof (LastDir)); 
     499      strfcpy (LastDir, state.folder, sizeof (LastDir)); 
    500500    } 
    501501    else 
     
    605605          else if (state.imap_browse) 
    606606          { 
    607             strfcpy (buf, state.entry[menu->current].name, sizeof (buf)); 
     607            strfcpy (buf, state.entry[menu->current].name, sizeof (buf)); 
    608608          } 
    609609#endif 
     
    650650            else if (state.imap_browse) 
    651651            { 
    652               strfcpy (LastDir, state.entry[menu->current].name,  
    653                   sizeof (LastDir)); 
     652              strfcpy (LastDir, state.entry[menu->current].name, 
     653                sizeof (LastDir)); 
    654654            } 
    655655#endif 
     
    699699#ifdef USE_IMAP 
    700700        else if (state.imap_browse) 
    701         { 
    702           strfcpy (f, state.entry[menu->current].name, flen); 
    703         } 
     701          strfcpy (f, state.entry[menu->current].name, flen); 
    704702#endif 
    705703        else 
     
    872870 
    873871            destroy_state (&state); 
     872#ifdef USE_IMAP 
     873            if (state.imap_browse) 
     874            { 
     875              init_state (&state, NULL); 
     876              state.imap_browse = 1; 
     877              imap_init_browse (LastDir, &state); 
     878              menu->data = state.entry; 
     879              init_menu (&state, menu, title, sizeof (title), buffy); 
     880            } 
     881            else 
     882#endif 
    874883            if (examine_directory (menu, &state, LastDir, NULL) == 0) 
    875884              init_menu (&state, menu, title, sizeof (title), buffy);