[Commits] [SCM] claws branch, master, updated. 4.3.1-84-gd15484088
paul at claws-mail.org
paul at claws-mail.org
Sun Mar 30 15:13:17 UTC 2025
The branch, master has been updated
via d1548408824ba32d1ea52957ab70698638dcc53c (commit)
from 73c5bf737783f01889898298916f6259263ee447 (commit)
Summary of changes:
src/plugins/rssyl/rssyl.h | 4 ++++
src/plugins/rssyl/rssyl_update_feed.c | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d1548408824ba32d1ea52957ab70698638dcc53c
Author: Paul <paul at claws-mail.org>
Date: Sun Mar 30 16:13:12 2025 +0100
define RSSyl UA header
diff --git a/src/plugins/rssyl/rssyl.h b/src/plugins/rssyl/rssyl.h
index 31952817a..528166b3c 100644
--- a/src/plugins/rssyl/rssyl.h
+++ b/src/plugins/rssyl/rssyl.h
@@ -21,6 +21,8 @@
#include <glib.h>
+#include <defs.h>
+#include <common/version.h>
#include <folder.h>
#include <passwordstore.h>
@@ -31,6 +33,8 @@
/* Name of directory in rcdir where RSSyl will store its data. */
#define RSSYL_DIR PLUGIN_NAME
+#define RSSYL_DEFAULT_UA "ClawsMailRSSyl/"VERSION " ("HOMEPAGE_URI")"
+
/* Folder name for a new feed, before it is parsed for the first time. */
#define RSSYL_NEW_FOLDER_NAME "NewFeed"
diff --git a/src/plugins/rssyl/rssyl_update_feed.c b/src/plugins/rssyl/rssyl_update_feed.c
index 6e6fb47ee..314bbabad 100644
--- a/src/plugins/rssyl/rssyl_update_feed.c
+++ b/src/plugins/rssyl/rssyl_update_feed.c
@@ -34,7 +34,6 @@
#include <prefs_common.h>
#include <inc.h>
#include <main.h>
-#include <defs.h>
/* Local includes */
#include "libfeed/feed.h"
@@ -83,7 +82,7 @@ gchar *rssyl_get_user_agent(RFolderItem *ritem)
/* fallback to default User-Agent */
if (user_agent == NULL)
- user_agent = g_strdup_printf("ClawsMailRSSyl/%s (%s)", (gchar *)plugin_version(), HOMEPAGE_URI);
+ user_agent = g_strdup_printf(RSSYL_DEFAULT_UA);
debug_print("RSSyl: User-Agent is %s\n", user_agent);
return user_agent;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list