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
104ed20e
...
104ed20e61c4461a5fe0b0136d0f3dd3c3877a4a
authored
2003-10-10 08:57:37 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use new pop3d_.*_deleted calls.
1 parent
190f7bed
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
11 deletions
pop3d/dele.c
pop3d/list.c
pop3d/quit.c
pop3d/retr.c
pop3d/rset.c
pop3d/stat.c
pop3d/top.c
pop3d/uidl.c
pop3d/dele.c
View file @
104ed20
...
...
@@ -38,7 +38,7 @@ pop3d_dele (const char *arg)
return
ERR_NO_MESG
;
message_get_attribute
(
msg
,
&
attr
);
attribute_set_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
);
pop3d_mark_deleted
(
attr
);
pop3d_outf
(
"+OK Message %d marked
\r\n
"
,
num
);
return
OK
;
}
...
...
pop3d/list.c
View file @
104ed20
...
...
@@ -43,7 +43,7 @@ pop3d_list (const char *arg)
{
mailbox_get_message
(
mbox
,
mesgno
,
&
msg
);
message_get_attribute
(
msg
,
&
attr
);
if
(
!
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
!
pop3d_is_deleted
(
attr
))
{
message_size
(
msg
,
&
size
);
message_lines
(
msg
,
&
lines
);
...
...
@@ -58,7 +58,7 @@ pop3d_list (const char *arg)
if
(
mailbox_get_message
(
mbox
,
mesgno
,
&
msg
)
!=
0
)
return
ERR_NO_MESG
;
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
pop3d_is_deleted
(
attr
))
return
ERR_MESG_DELE
;
message_size
(
msg
,
&
size
);
message_lines
(
msg
,
&
lines
);
...
...
pop3d/quit.c
View file @
104ed20
...
...
@@ -70,7 +70,7 @@ pop3d_fix_mark ()
attribute_t
attr
=
NULL
;
mailbox_get_message
(
mbox
,
i
,
&
msg
);
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
pop3d_is_deleted
(
attr
))
attribute_set_deleted
(
attr
);
}
}
...
...
pop3d/retr.c
View file @
104ed20
...
...
@@ -42,7 +42,7 @@ pop3d_retr (const char *arg)
return
ERR_NO_MESG
;
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
pop3d_is_deleted
(
attr
))
return
ERR_MESG_DELE
;
message_get_stream
(
msg
,
&
stream
);
...
...
pop3d/rset.c
View file @
104ed20
...
...
@@ -39,8 +39,7 @@ pop3d_rset (const char *arg)
attribute_t
attr
=
NULL
;
mailbox_get_message
(
mbox
,
i
,
&
msg
);
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
attribute_unset_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
);
pop3d_unset_deleted
(
attr
);
}
pop3d_outf
(
"+OK
\r\n
"
);
return
OK
;
...
...
pop3d/stat.c
View file @
104ed20
...
...
@@ -47,7 +47,7 @@ pop3d_stat (const char *arg)
message_get_attribute
(
msg
,
&
attr
);
/* rfc1939: Note that messages marked as deleted are not counted in
either total. */
if
(
!
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
!
pop3d_is_deleted
(
attr
))
{
message_size
(
msg
,
&
size
);
message_lines
(
msg
,
&
lines
);
...
...
pop3d/top.c
View file @
104ed20
...
...
@@ -55,7 +55,7 @@ pop3d_top (const char *arg)
return
ERR_NO_MESG
;
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
pop3d_is_deleted
(
attr
))
return
ERR_MESG_DELE
;
pop3d_outf
(
"+OK
\r\n
"
);
...
...
pop3d/uidl.c
View file @
104ed20
...
...
@@ -40,7 +40,7 @@ pop3d_uidl (const char *arg)
{
mailbox_get_message
(
mbox
,
mesgno
,
&
msg
);
message_get_attribute
(
msg
,
&
attr
);
if
(
!
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
!
pop3d_is_deleted
(
attr
))
{
message_get_uidl
(
msg
,
uidl
,
sizeof
(
uidl
),
NULL
);
pop3d_outf
(
"%d %s
\r\n
"
,
mesgno
,
uidl
);
...
...
@@ -54,7 +54,7 @@ pop3d_uidl (const char *arg)
if
(
mailbox_get_message
(
mbox
,
mesgno
,
&
msg
)
!=
0
)
return
ERR_NO_MESG
;
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
POP3_ATTRIBUTE_DELE
))
if
(
pop3d_is_deleted
(
attr
))
return
ERR_MESG_DELE
;
message_get_uidl
(
msg
,
uidl
,
sizeof
(
uidl
),
NULL
);
pop3d_outf
(
"+OK %d %s
\r\n
"
,
mesgno
,
uidl
);
...
...
Please
register
or
sign in
to post a comment