/[mailutils]/mailutils/mailbox/mbx_default.c
ViewVC logotype

Diff of /mailutils/mailbox/mbx_default.c

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

revision 1.23 by gray, Thu Mar 28 17:43:16 2002 UTC revision 1.24 by gray, Sat Jul 13 09:05:08 2002 UTC
# Line 298  mailbox_create_default (mailbox_t *pmbox Line 298  mailbox_create_default (mailbox_t *pmbox
298      case '%':      case '%':
299        status = percent_expand (mail, &mbox);        status = percent_expand (mail, &mbox);
300        break;        break;
301          
302      case '~':      case '~':
303        status = tilde_expand (mail, &mbox);        status = tilde_expand (mail, &mbox);
304        break;        break;
305          
306      case '+':      case '+':
307      case '=':      case '=':
308        status = plus_expand (mail, &mbox);        status = plus_expand (mail, &mbox);
309        break;        break;
310      default:  
311        case '/':
312        mbox = strdup (mail);        mbox = strdup (mail);
313        break;        break;
314          
315        default:
316          if (!strchr (mail, ':'))
317            {
318              tmp_mbox = mu_getcwd();
319              mbox = malloc (strlen (tmp_mbox) + strlen (mail) + 2);
320              sprintf (mbox, "%s/%s", tmp_mbox, mail);
321            }
322          else
323            mbox = strdup (mail);
324          break;
325      }      }
326    
327    if (tmp_mbox)    if (tmp_mbox)

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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