diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 10:52:51 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 10:52:51 +0000 |
commit | cc0f8a09d93ed7093792a23218177c141b34f0c2 (patch) | |
tree | 34ae54133584cb0d5b558bc4a5c0858ebe21209d /rcfile_y.y | |
parent | 330d0365531e63bd8fb86c3df7e96f6667748242 (diff) | |
download | fetchmail-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.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]; |