1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/mail/courier/files/extra-patch-maildrop__maildir.C
Dmitry Marakasov 01c612a64d - Update to 0.61.1
PR:		132228
Submitted by:	Milan Obuch <bsd at dino dot sk> (maintainer)
2009-03-07 16:08:32 +00:00

34 lines
579 B
C

--- maildrop/maildir.C.orig Thu Jan 15 04:12:13 2004
+++ maildrop/maildir.C Thu Jul 5 00:09:38 2007
@@ -137,7 +137,6 @@
tmpname=createInfo.tmpname;
newname=createInfo.newname;
tmpname += '\0';
- newname += '\0';
maildir_tmpcreate_free(&createInfo);
file.fd(f);
@@ -181,6 +180,22 @@
{
if (is_open)
{
+ Buffer b;
+
+ b="MFLAGS";
+
+ const char *f=GetVarStr(b);
+
+ if (f && strlen(f) > 0)
+ {
+ newname += ':';
+ newname += '2';
+ newname += ',';
+ newname += f;
+ }
+
+ newname += '\0';
+
Buffer keywords;
keywords="KEYWORDS";