/[mailutils]/mailutils/mail/hold.c
ViewVC logotype

Diff of /mailutils/mail/hold.c

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

revision 1.9 by polak, Mon Dec 23 22:01:34 2002 UTC revision 1.10 by gray, Sun Dec 29 13:37:43 2002 UTC
# Line 22  Line 22 
22   * pre[serve] [msglist]   * pre[serve] [msglist]
23   */   */
24    
25  int  static int
26  mail_hold (int argc, char **argv)  hold0 (msgset_t *mspec, message_t msg, void *data)
27  {  {
   message_t msg;  
28    attribute_t attr;    attribute_t attr;
29    
30    if (argc > 1)    message_get_attribute (msg, &attr);
31      return util_msglist_command (mail_hold, argc, argv, 1);    attribute_unset_userflag (attr, MAIL_ATTRIBUTE_MBOXED);
   else  
     {  
       if (util_get_message (mbox, cursor, &msg, MSG_ALL))  
         return 1;  
32    
33        message_get_attribute (msg, &attr);    cursor = mspec->msg_part[0];
34        attribute_unset_userflag (attr, MAIL_ATTRIBUTE_MBOXED);    
     }  
35    return 0;    return 0;
36  }  }
37    
38    int
39    mail_hold (int argc, char **argv)
40    {
41      return util_foreach_msg (argc, argv, MSG_ALL, hold0, NULL);
42    }
43    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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