Tags:
create new tag
, view all tags

Question

When I configure a mailbox using the MailInContrib installer where are the configuration setting stored? Can I add more mailboxes directly or do I have to run the MailInContrib_installer script every time I want to add a mailbox?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora 5
Web server: Apache
Perl version: 5.8
Client OS: Windows XP
Web Browser: Firefox
Categories: Installation

-- AlokNarula - 01 Nov 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I figured out that the mailbox configuration is stored in LocalSite.cfg. Here is my mailbox configuration for getting TWiki mails stored in my Microsoft Exchange mailbox inbox/twiki.

$TWiki::cfg{MailInContrib} = [
 {
   defaultWeb => 'Sandbox',
   folder => 'imap://anarula:XYZ@mail.beceem.com/inbox/twiki',
   onError => 'reply',
   onNoTopic => 'spam',
   onSuccess => 'reply',
   spambox => 'Sandbox.DummyTopic',
   topicPath => 'subject',
   user => 'anarula',
 },

When I run the mailincron tool, I get this error. Can anybody tell me what is the problem and how should I get mailincontrib working.

../tools/mailincron debug=0
Process IMAP folder imap://anarula:XYZ@mail.beceem.com/inbox/twiki
Scanning imap://anarula:XYZ@mail.beceem.com/inbox/twiki
[Thu Nov  2 14:30:16 2006] mailincron: Use of uninitialized value in split at /usr/lib/perl5/site_perl/5.8.8/Email/Folder/IMAP.pm line 27.
[Thu Nov  2 14:30:16 2006] mailincron: substr outside of string at /usr/lib/perl5/site_perl/5.8.8/Email/Folder/IMAP.pm line 31.
Can't call method "get" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Email/Folder/IMAP.pm line 40.

-- AlokNarula - 02 Nov 2006

That appears to be a problem in the depths of the CPAN IMAP module. It sometimes complains like that if the syntax of the mailbox path isn;t exactly right. Try putting a / on the end, or even removing the 'twiki' bit.

-- CrawfordCurrie - 28 Nov 2006

CLosing as answered, as there has been no further comment.

-- CrawfordCurrie - 05 Jan 2007

 
Change status to:
Topic revision: r6 - 05 Jan 2007 - 21:39:55 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback