Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
7af90e80
...
7af90e80ddc3985f09f375870ee717360c0c0e4b
authored
2001-07-03 11:46:30 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implemented inc[orporate] command.
1 parent
f21fd984
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
mail/inc.c
mail/mail.h
mail/table.c
mail/inc.c
0 → 100644
View file @
7af90e8
/* GNU mailutils - a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "mail.h"
/*
* inc[orporate]
*/
int
mail_inc
(
int
argc
,
char
**
argv
)
{
if
(
!
mailbox_is_updated
(
mbox
))
{
mailbox_messages_count
(
mbox
,
&
total
);
fprintf
(
ofile
,
"New mail has arrived
\n
"
);
}
else
fprintf
(
ofile
,
"No new mail for %s
\n
"
,
mail_whoami
());
return
0
;
}
mail/mail.h
View file @
7af90e8
...
...
@@ -138,6 +138,7 @@ int mail_headers __P((int argc, char **argv));
int
mail_hold
__P
((
int
argc
,
char
**
argv
));
int
mail_help
__P
((
int
argc
,
char
**
argv
));
int
mail_if
__P
((
int
argc
,
char
**
argv
));
int
mail_inc
__P
((
int
argc
,
char
**
argv
));
int
mail_list
__P
((
int
argc
,
char
**
argv
));
int
mail_send
__P
((
int
argc
,
char
**
argv
));
/* command mail */
int
mail_mbox
__P
((
int
argc
,
char
**
argv
));
...
...
mail/table.c
View file @
7af90e8
...
...
@@ -48,6 +48,7 @@ const struct mail_command_entry mail_command_table[] = {
{
"ho"
,
"hold"
,
0
,
mail_hold
,
"ho[ld] [msglist]"
},
{
"i"
,
"if"
,
EF_FLOW
,
mail_if
,
"i[f] s|r|t"
},
{
"ig"
,
"ignore"
,
0
,
mail_discard
,
"ig[nore] [header-field...]"
},
{
"inc"
,
"incorporate"
,
0
,
mail_inc
,
"inc[orporate]"
},
{
"l"
,
"list"
,
0
,
mail_list
,
"l[ist]"
},
{
"m"
,
"mail"
,
EF_SEND
,
mail_send
,
"m[ail] [address...]"
},
{
"mb"
,
"mbox"
,
0
,
mail_mbox
,
"mb[ox] [msglist]"
},
...
...
Please
register
or
sign in
to post a comment