aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-07 21:16:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-07 21:16:32 +0000
commitb1b6ddf9079453caa64484f31887cb4273c045bc (patch)
tree1b373f96732a206faa0017de5dc82532f46a08cc /fetchmailconf
parentad27c0a72aac927955335303e6cfab5f3ee58ad0 (diff)
downloadfetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.gz
fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.bz2
fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.zip
Added LMTP support.
svn path=/trunk/; revision=2177
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf8
1 files changed, 7 insertions, 1 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 52d01c95..2a684343 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -7,7 +7,7 @@
#
# TO DO: Arrange for save and quit buttons to clean up all frames dependent
# on the current ones.
-version = "1.8"
+version = "1.9"
from Tkinter import *
from Dialog import *
@@ -188,6 +188,7 @@ class User:
self.postconnect = None # Connection wrapup
self.mda = None # Mail Delivery Agent
self.bsmtp = None # BSMTP output file
+ self.lmtp = FALSE # Use LMTP rather than SMTP?
self.antispam = "571 550 501" # Listener's spam-block code
self.keep = FALSE # Keep messages
self.flush = FALSE # Flush messages
@@ -214,6 +215,7 @@ class User:
('postconnect', 'String'),
('mda', 'String'),
('bsmtp', 'String'),
+ ('lmtp', 'Boolean'),
('antispam', 'String'),
('keep', 'Boolean'),
('flush', 'Boolean'),
@@ -298,6 +300,8 @@ class User:
for fld in ('smtpaddress', 'preconnect', 'postconnect', 'mda', 'bsmtp', 'properties'):
if getattr(self, fld):
str = str + " %s %s\n" % (fld, `getattr(self, fld)`)
+ if self.lmtp != UserDefaults.lmtp:
+ str = str + flag2str(self.lmtp, 'lmtp')
if self.antispam != UserDefaults.antispam:
str = str + " antispam " + self.antispam + "\n"
return str;
@@ -1202,6 +1206,8 @@ class UserEdit(Frame, MyWidget):
self.antispam, '26').pack(side=TOP, fill=X)
LabeledEntry(targwin, 'Pass-through properties:',
self.properties, '26').pack(side=TOP, fill=X)
+ Checkbutton(targwin, text="Use LMTP?",
+ variable=self.lmtp).pack(side=TOP, fill=X)
targwin.pack(fill=X, anchor=N)
if mode != 'novice':
background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh

# fetchmail-svn2git.sh - (C) 2009, 2010 by Matthias Andree, GNU GPL v3.

set -eu

#######################################################################
# Adjust the next three settings below:

# safe can be obtained from <git://repo.or.cz/svn-all-fast-export.git>
# and must be built before we can use it:
safe="$HOME/VCS-other/svn-all-fast-export/svn-all-fast-export"

# svn is the path to a verbatim copy of the server-side SVN repository
# obtained with rsync or with svnadmin dump and load:
svn="$HOME/VCS-mine/fetchmail.svnrepo.backup"

# git specifies where you want the converted repository to end up.
git="$HOME/fetchmail.git"

#
#######################################################################

# There should be no need to change anything below:

#######################################################################

# obtain current directory
dir="$(dirname $0)"

# obtain absolute directory
dir="$( ( cd "$dir" && pwd ) )"

# Pluck these from the same directory as this script
auth="$dir/fetchmail.authors"
rule="$dir/fetchmail.rules"

# create git repository
mkdir "$git"
cd "$git"
git init

# run svn-all-fast-export, which already imports stuff into git
"$safe" --identity-map="$auth" "$rule" "$svn"

# turn tags/ branches into tags
git branch -a \
| grep _tag_ \
| while read a ; do
	if git show-ref -q "$a" ; then
		(
		eval $(git log -1 --format="tformat:GIT_AUTHOR_NAME=\"%an\"%nGIT_AUTHOR_EMAIL=\"%ae\"%nGIT_AUTHOR_DATE=\"%ai\"%nGIT_COMMITTER_NAME=\"%cn\"%nGIT_COMMITTER_EMAIL=\"%ce\"%nGIT_COMMITTER_DATE=\"%ci\"" "$a")
		MSG=$(git log -1 --pretty="tformat:%s%n%n%b" "$a")
		export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE
		export GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE
		if test "$GIT_AUTHOR_NAME" = nobody ; then
			# cvs2svn tag => lightweight
			git tag "${a##_tag_}" "$a"
		else
			# keep message
			git tag -a -m "$MSG" "${a##_tag_}" "$a"
		fi
		git branch -D "$a"
		)
	fi
done

# clean up
git gc --aggressive