diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-04-14 14:56:58 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-04-14 14:56:58 +0000 |
commit | 1c12d8039c7f961249070e7ffc1d85a83d3d98b7 (patch) | |
tree | 7a7852a2a25f34a4420c0ad983ed1a8856419f3a /mail/cyrus-imapd24/files | |
parent | 03e1a4e6bd8b51eac421c2378a95cac475417fa3 (diff) | |
download | ports-1c12d8039c7f961249070e7ffc1d85a83d3d98b7.tar.gz ports-1c12d8039c7f961249070e7ffc1d85a83d3d98b7.zip |
Notes
Diffstat (limited to 'mail/cyrus-imapd24/files')
-rw-r--r-- | mail/cyrus-imapd24/files/patch-imap::fetchnews.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mail/cyrus-imapd24/files/patch-imap::fetchnews.c b/mail/cyrus-imapd24/files/patch-imap::fetchnews.c new file mode 100644 index 000000000000..4156a1e2eec6 --- /dev/null +++ b/mail/cyrus-imapd24/files/patch-imap::fetchnews.c @@ -0,0 +1,37 @@ +Index: imap/fetchnews.c +diff -u -p imap/fetchnews.c.orig imap/fetchnews.c +--- imap/fetchnews.c.orig Wed Mar 23 09:40:11 2005 ++++ imap/fetchnews.c Fri Apr 14 23:36:14 2006 +@@ -60,6 +60,7 @@ + #include "cyrusdb.h" + #include "exitcodes.h" + #include "global.h" ++#include "gmtoff.h" + #include "lock.h" + #include "prot.h" + #include "xmalloc.h" +@@ -388,6 +389,7 @@ int main(int argc, char *argv[]) + &ctime.tm_hour, &ctime.tm_min, &ctime.tm_sec); + ctime.tm_year -= 1900; + ctime.tm_mon--; ++ ctime.tm_isdst = -1; + + /* read the previous timestamp */ + if (!sfile[0]) { +@@ -417,6 +419,7 @@ int main(int argc, char *argv[]) + /* ask for new articles */ + if (stamp) stamp -= 180; /* adjust back 3 minutes */ + ptime = gmtime(&stamp); ++ ptime->tm_isdst = -1; + strftime(buf, sizeof(buf), datefmt, ptime); + prot_printf(pout, "NEWNEWS %s %s GMT\r\n", wildmat, buf); + +@@ -433,7 +436,7 @@ int main(int argc, char *argv[]) + We can't change this, otherwise we'd be incompatible + with an old localtime timestamp. + */ +- stamp -= timezone; ++ stamp += gmtoff_of(&ctime, stamp); + } + + if (!newnews) { |