LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2014, 03:27 PM   #1
linuxbawks
Member
 
Registered: Apr 2013
Distribution: Snuckware
Posts: 240

Rep: Reputation: 17
Offlineimap: Reading Mutt password files


I was wondering if there was a straightforward way to translate my Mutt password files for use with Offlineimap?

Mutt uses password files defined using custom Bash variables as in:

Code:
my_user = 'passwordstring'
Offlineimap uses various other formats to invoke password/user authentication data, none of which are compatible with the native Mutt approach
 
Old 02-05-2014, 08:28 AM   #2
linuxbawks
Member
 
Registered: Apr 2013
Distribution: Snuckware
Posts: 240

Original Poster
Rep: Reputation: 17
No there is not. You have to create yet another Python script as follows:

Code:
#!/usr/bin/env python

import re

def pwd(account):
	stream = open("text file containing data", "r")
	account = '(.*)' + account + '(.*)'

	for line in stream:
		if re.match(str(account), line):
			return line.strip().split(" = ")[1][1:-1]
Then call the function pwd('xxx') internally via offlineimaprc via passeval.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mutt command and body message reading stephsanol Linux - Software 2 08-09-2013 11:06 AM
Configuration samples for Gmail of Offlineimap + mbsmtp + Mutt? Xeratul Linux - General 0 02-04-2013 10:44 PM
Mutt + Offlineimap: how to limit fetching to 10 last emails only Xeratul Linux - General 1 01-23-2013 02:35 PM
Msmtp+Mutt password prompt pete1234 Linux - General 0 07-17-2006 10:24 AM
reading password-encrypted powerpoint files? JustinHoMi Linux - Software 2 02-22-2005 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration