~ubuntu-branches/ubuntu/karmic/alpine/karmic

« back to all changes in this revision

Viewing changes to pith/rfc2231.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2008-09-23 12:17:56 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923121756-6u4x8bwq89qlzt32
Tags: 2.00+dfsg-2
Update to package description: note that Alpine is no longer in
alpha. (Closes: #499640)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#if !defined(lint) && !defined(DOS)
2
 
static char rcsid[] = "$Id: rfc2231.c 671 2007-08-15 20:28:09Z hubert@u.washington.edu $";
 
2
static char rcsid[] = "$Id: rfc2231.c 971 2008-03-18 17:24:31Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
6
6
 * ========================================================================
7
 
 * Copyright 2006-2007 University of Washington
 
7
 * Copyright 2006-2008 University of Washington
8
8
 *
9
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
10
 * you may not use this file except in compliance with the License.
17
17
 
18
18
#include "../pith/headers.h"
19
19
#include "../pith/rfc2231.h"
 
20
#include "../pith/mimedesc.h"
20
21
#include "../pith/state.h"
21
22
#include "../pith/conf.h"
22
23
#include "../pith/store.h"
35
36
 
36
37
 
37
38
char *
38
 
rfc2231_get_param(struct mail_body_parameter *parms, char *name,
 
39
rfc2231_get_param(PARAMETER *parms, char *name,
39
40
                  char **charset, char **lang)
40
41
{
41
42
    char *buf, *p;
242
243
 
243
244
 
244
245
PARMLIST_S *
245
 
rfc2231_newparmlist(struct mail_body_parameter *params)
 
246
rfc2231_newparmlist(PARAMETER *params)
246
247
{
247
248
    PARMLIST_S *p = NULL;
248
249
 
293
294
                plist->list = pp->next;
294
295
                *ppp = mail_newbody_parameter();        /* add to seen list */
295
296
                (*ppp)->attribute = cpystr(plist->attrib);
296
 
                plist->value = rfc2231_get_param(pp,plist->attrib,NULL,NULL);
 
297
                plist->value = parameter_val(pp,plist->attrib);
297
298
                return(TRUE);
298
299
            }
299
300