Bug 1019528 - alpine inbox-path variable doesnt work, missing /etc/pine.conf
Summary: alpine inbox-path variable doesnt work, missing /etc/pine.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: alpine
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joshua Daniel Franklin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-16 00:39 UTC by Simon A. Erat
Modified: 2013-10-23 13:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-23 13:32:30 UTC
Type: Bug


Attachments (Terms of Use)
screenshot of bugfix attempt (19.40 KB, image/jpeg)
2013-10-16 00:39 UTC, Simon A. Erat
no flags Details

Description Simon A. Erat 2013-10-16 00:39:07 UTC
Created attachment 812717 [details]
screenshot of bugfix attempt

Description of problem:
Alpine keeps creating ~/mail, regardless i had changed that in ~/.pinerc
Issue probably is: cant change default as /etc/pine.conf doesnt exist.


Version-Release number of selected component (if applicable):
Alpine 2.03 (LFD 1266 2009-07-14) built Wed Feb 13 20:56:29 UTC 2013 on buildvm-11.phx2.fedoraproject.org


How reproducible:
rm -r ~/mail
alpine

Steps to Reproduce:
1. delete ~/mail
2. start alpine
3. folder gets created, eventhough .pinerc's inbox-path is set to $HOME/other/path

Actual results:
~/mail gets created, but should not

Expected results:
$HOME/other/path should be used as defined in ~/.pinerc
OR -- in the MISSING (how did the rpm compile successfully???)
/etc/pine.conf[.fixed]

Additional info: (see screenshot i
-----------------------------------
:) ~ $ alpine -conf|grep -i /pine
#      /etc/pine.conf -- system wide pine configuration
+ ~ $ alpine -conf|grep -i inbox-
inbox-path=
+ ~ $ grep inbox- .pinerc 
inbox-path=$HOME/other/path
+ ~ $ rpm -ql alpine|grep pine.c
/etc/pine.conf
/etc/pine.conf.fixed
✔ ~ $ ls /etc/pin*
/etc/pinforc
✔ ~ $

Comment 1 Joshua Daniel Franklin 2013-10-23 13:32:30 UTC
Hi,

/etc/pine.conf and /etc/pine.conf.fixed are "ghost" files in the RPM SPEC:

%ghost %config(noreplace) %{_sysconfdir}/pine.conf
%ghost %config(noreplace) %{_sysconfdir}/pine.conf.fixed

This means it's normal to be missing, but if there is a system defined pine.conf it won't be replaced.


In any case, it sounds like you want to set both the INBOX and local mail directory paths in /etc/pine.conf which would be something like this:

inbox-path=~/otherinbox
mail-directory=~/mydir/
folder-collections=local ~/mydir/[], ... {IMAP etc...}

Please read over the alpine docs regarding the subtle differences between each.

I also recommend trying alpine-2.10 which was recently packaged for F20:
http://koji.fedoraproject.org/koji/buildinfo?buildID=441044

The RPM installs and works on F19 in my testing, e.g:

yum localinstall alpine-2.10-3.fc20.x86_64.rpm 

Alternatively you can build from src (also downloadable from koji).


Note You need to log in before you can comment on or make changes to this bug.