aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:52:51 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:52:51 +0000
commitcc0f8a09d93ed7093792a23218177c141b34f0c2 (patch)
tree34ae54133584cb0d5b558bc4a5c0858ebe21209d /rcfile_y.y
parent330d0365531e63bd8fb86c3df7e96f6667748242 (diff)
downloadfetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.tar.gz
fetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.tar.bz2
fetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.zip
Add full support for --service option.
svn path=/trunk/; revision=4307
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index daff1a34..0aa9265e 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -173,6 +173,12 @@ serv_option : AKA alias_list
| SERVICE STRING {
current.server.service = $2;
}
+ | SERVICE NUMBER {
+ int port = $2;
+ char buf[10];
+ snprintf(buf, sizeof buf, "%d", port);
+ current.server.service = xstrdup(buf);
+ }
| PORT NUMBER {
int port = $2;
char buf[10];