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

« back to all changes in this revision

Viewing changes to pith/mailcmd.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: mailcmd.c 945 2008-03-05 18:56:28Z mikes@u.washington.edu $";
 
2
static char rcsid[] = "$Id: mailcmd.c 1108 2008-07-10 05:01:13Z mikes@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
1717
1717
                 || (!mc->valid && mc->searched)))
1718
1718
            set_lflag(stream, msgmap, i, MN_SLCT, 1);
1719
1719
 
1720
 
        pseudo_selected(msgmap);
 
1720
        pseudo_selected(stream, msgmap);
1721
1721
        snprintf(buf, buflen, "Moving %s read message%s to \"%s\"",
1722
1722
                comatose(searched), plural(searched), dstfldr);
1723
1723
        we_cancel = busy_cue(buf, NULL, 0);
1985
1985
 
1986
1986
  ----*/
1987
1987
long
1988
 
zoom_index(struct pine *state, MAILSTREAM *stream, MSGNO_S *msgmap)
 
1988
zoom_index(struct pine *state, MAILSTREAM *stream, MSGNO_S *msgmap, int onflag)
1989
1989
{
1990
1990
    long        i, count = 0L, first = 0L, msgno;
1991
1991
    PINETHRD_S *thrd = NULL, *topthrd = NULL, *nthrd;
1992
1992
 
1993
 
    if(any_lflagged(msgmap, MN_SLCT)){
 
1993
    if(any_lflagged(msgmap, onflag)){
1994
1994
 
1995
1995
        if(THREADING() && sp_viewing_a_thread(stream)){
1996
1996
            /* get top of current thread */
2000
2000
        }
2001
2001
 
2002
2002
        for(i = 1L; i <= mn_get_total(msgmap); i++){
2003
 
            if(!get_lflag(stream, msgmap, i, MN_SLCT)){
 
2003
            if(!get_lflag(stream, msgmap, i, onflag)){
2004
2004
                set_lflag(stream, msgmap, i, MN_HIDE, 1);
2005
2005
            }
2006
2006
            else{
2095
2095
 
2096
2096
        if(THRD_INDX()){
2097
2097
            thrd = fetch_thread(stream, mn_m2raw(msgmap, mn_get_cur(msgmap)));
2098
 
            if(count_lflags_in_thread(stream, thrd, msgmap, MN_SLCT) == 0)
 
2098
            if(count_lflags_in_thread(stream, thrd, msgmap, onflag) == 0)
2099
2099
              mn_set_cur(msgmap, first);
2100
2100
        }
2101
2101
        else if((THREADING() && sp_viewing_a_thread(stream))
2102
 
                || !get_lflag(stream, msgmap, mn_get_cur(msgmap), MN_SLCT)){
 
2102
                || !get_lflag(stream, msgmap, mn_get_cur(msgmap), onflag)){
2103
2103
            if(!first){
2104
2104
                int flags = 0;
2105
2105