~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to sort.c

  • Committer: Bazaar Package Importer
  • Author(s): Antonio Radici
  • Date: 2009-06-14 20:53:18 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (2.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090614205318-wf0sqy1o3km636li
Tags: 1.5.20-1
* New upstream release, includes the following features:
  + Bounced messages contains From: headers (Closes: 93268)
  + Attachments displayed based on Content-Disposition (Closes: 199709)
  + fcc to a mailbox does not raise the 'new' flag (Closes: 209390)
  + '!' supported as suffix in gpg keys (Closes: 277945)
  + failed attachment saving shows an error message (Closes: 292350)
  + inline signed messages sent honouring $send_charset (Closes: 307819)
  + support for <clear-flag> and <set-flag> in the pager (Closes: 436007)
  + fcc_attach is a quad option (Closes: 478861)
  + Content-Description header not included in reply (Closes: 500766)
  + imap_sync_mailbox fix for a segfault (Closes: 516364)
  + better threading support with particular Message-ID's (Closes: 520735)
  + no crash on IMAP folder refresh (Closes: 528465)
  + undisclosed-recipients not passed in the envelope (Closes: 529090)
* debian/patches/series:
  + commented all references to upstream/*, they should be included in 1.5.20
  + removed debian-specific/529838-gnutls-autoconf.patch, ditto
  + removed misc/manpage-typos.patch, ditto 
  + modified misc/hyphen-as-minus.patch, a big part was integrated upstream
  + features/trash-folder: do not reupload messages to $trash if IMAP is used
    (Closes: #448241)
  + added misc/hg.pmdef.debugtime, see upstream #3263
* debian/control: added DM-Upload-Allowed: yes

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
if (!code) \
43
43
  code = (*((HEADER **)a))->index - (*((HEADER **)b))->index;
44
44
 
45
 
int compare_score (const void *a, const void *b)
 
45
static int compare_score (const void *a, const void *b)
46
46
{
47
47
  HEADER **pa = (HEADER **) a;
48
48
  HEADER **pb = (HEADER **) b;
51
51
  return (SORTCODE (result));
52
52
}
53
53
 
54
 
int compare_size (const void *a, const void *b)
 
54
static int compare_size (const void *a, const void *b)
55
55
{
56
56
  HEADER **pa = (HEADER **) a;
57
57
  HEADER **pb = (HEADER **) b;
60
60
  return (SORTCODE (result));
61
61
}
62
62
 
63
 
int compare_date_sent (const void *a, const void *b)
 
63
static int compare_date_sent (const void *a, const void *b)
64
64
{
65
65
  HEADER **pa = (HEADER **) a;
66
66
  HEADER **pb = (HEADER **) b;
69
69
  return (SORTCODE (result));
70
70
}
71
71
 
72
 
int compare_subject (const void *a, const void *b)
 
72
static int compare_subject (const void *a, const void *b)
73
73
{
74
74
  HEADER **pa = (HEADER **) a;
75
75
  HEADER **pb = (HEADER **) b;
107
107
  return ("");
108
108
}
109
109
 
110
 
int compare_to (const void *a, const void *b)
 
110
static int compare_to (const void *a, const void *b)
111
111
{
112
112
  HEADER **ppa = (HEADER **) a;
113
113
  HEADER **ppb = (HEADER **) b;
114
 
  const char *fa, *fb;
 
114
  char fa[SHORT_STRING];
 
115
  const char *fb;
115
116
  int result;
116
117
 
117
 
  fa = safe_strdup (mutt_get_name ((*ppa)->env->to));
 
118
  strfcpy (fa, mutt_get_name ((*ppa)->env->to), SHORT_STRING);
118
119
  fb = mutt_get_name ((*ppb)->env->to);
119
 
  result = mutt_strcasecmp (fa, fb);
120
 
  FREE(&fa);
 
120
  result = mutt_strncasecmp (fa, fb, SHORT_STRING);
121
121
  AUXSORT(result,a,b);
122
122
  return (SORTCODE (result));
123
123
}
124
124
 
125
 
int compare_from (const void *a, const void *b)
 
125
static int compare_from (const void *a, const void *b)
126
126
{
127
127
  HEADER **ppa = (HEADER **) a;
128
128
  HEADER **ppb = (HEADER **) b;
129
 
  const char *fa, *fb;
 
129
  char fa[SHORT_STRING];
 
130
  const char *fb;
130
131
  int result;
131
132
 
132
 
  fa = safe_strdup (mutt_get_name ((*ppa)->env->from));
 
133
  strfcpy (fa, mutt_get_name ((*ppa)->env->from), SHORT_STRING);
133
134
  fb = mutt_get_name ((*ppb)->env->from);
134
 
  result = mutt_strcasecmp (fa, fb);
135
 
  FREE(&fa);
 
135
  result = mutt_strncasecmp (fa, fb, SHORT_STRING);
136
136
  AUXSORT(result,a,b);
137
137
  return (SORTCODE (result));
138
138
}
139
139
 
140
 
int compare_date_received (const void *a, const void *b)
 
140
static int compare_date_received (const void *a, const void *b)
141
141
{
142
142
  HEADER **pa = (HEADER **) a;
143
143
  HEADER **pb = (HEADER **) b;
146
146
  return (SORTCODE (result));
147
147
}
148
148
 
149
 
int compare_order (const void *a, const void *b)
 
149
static int compare_order (const void *a, const void *b)
150
150
{
151
151
  HEADER **ha = (HEADER **) a;
152
152
  HEADER **hb = (HEADER **) b;
155
155
  return (SORTCODE ((*ha)->index - (*hb)->index));
156
156
}
157
157
 
158
 
int compare_spam (const void *a, const void *b)
 
158
static int compare_spam (const void *a, const void *b)
159
159
{
160
160
  HEADER **ppa = (HEADER **) a;
161
161
  HEADER **ppb = (HEADER **) b;