2 messages in net.sourceforge.lists.courier-users[courier-users] Debian Bug#261453: S...
FromSent OnAttachments
Stefan HornburgJul 26, 2004 3:50 am 
Sam VarshavchikJul 26, 2004 3:49 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Debian Bug#261453: Status header for POP3Actions...
From:Stefan Hornburg (rac@linuxia.de)
Date:Jul 26, 2004 3:50:47 am
List:net.sourceforge.lists.courier-users

Hello, Courier users !

If you like, please comment on this request.

Begin forwarded message:

Date: Mon, 26 Jul 2004 15:19:38 +1200 From: Sam Vilain <sa@vilain.net> To: Debian Bug Tracking System <sub@bugs.debian.org> Subject: Bug#261453: Does not set Status: headers

Package: courier-pop Version: 0.45.6.20040712-1 Severity: normal Tags: patch

Normally, when mail is read, a POP3 server will set the Status: RO header in the message. This is so I can use `xfaces' :-).

In fact, the courier-pop server shows messages as being present and no different to when they are new, even though they are deleted via IMAP. You need to "purge deleted messages" to get rid of them.

Maybe a nice quick hack would be something like this:

--- pop3dserver.c.orig 2004-07-26 14:39:48.000000000 +1200 +++ pop3dserver.c 2004-07-26 14:42:27.000000000 +1200 @@ -651,7 +651,13 @@ { if (inheader) { - if (c == '\n') inheader=0; + if (c == '\n') + { + if
((p=strchr(msglist_a[i]->filename, MDIRSEP[0])) != 0 && + (p[1] != '2' || p[2] != ','
|| strchr(p, 'S') != 0)) + puts("Status: RO\r"); + inheader=0; + } } else if ( (*lptr)-- == 0) break; }

I found this on http://www.expita.com/header1.html, if anyone feels inspired to implement this feature more completely: | >-

Status: Status is a non-standard RFC2822 message header added by Eudora and other e-mail clients after message delivery to indicate the status of delivery for this message when stored. Common values of this field are:

* U message is not downloaded and not deleted. * R message is read or downloaded. * O message is old but not deleted. * D to be deleted. * N new (a new message also sometimes is distinguished by not having any "Status:" header)

Combinations of these characters can occur, such as "Status: RO" to indicate that a message is downloaded but not deleted.

...

The Status: header is understood by an awful lot of existing programs out there.

-- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.5 Locale: LANG=en_NZ, LC_CTYPE=en_NZ

Versions of packages courier-pop depends on: ii courier-authdaemon 0.45.6.20040712-1 Courier Mail Server - Authenticati ii courier-base 0.45.6.20040712-1 Courier Mail Server - Base system ii exim [mail-transport-a 3.36-11 An MTA (Mail Transport Agent) ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an

-- no debconf information